Not really… I think I wasn't clear the first time.
I'll try to be more precise :
I have a custom action in the document library, which goal is to automatically download a document in a shared folder on the client computer. My action calls a (repo) java backed webscript to process the document downloading. To build the remote path of the shared folder, I need the client local IP (I work on an internal network). I tried to get the remote address returned by the webscript request but, as the webscript is called from Share, it always returns the server address (localhost).
So I think the only way to get the client IP in my repo webscript, is to get it from Share, and pass it to my webscript as a parameter. The problem is : how to get it from Share ?
An ajax call to an external "get my ip" webscript returns the public IP address of my network, which is not what I want. Like I said before, I managed to get it in the site-index.jsp beacause I have access to the request in this JSP, but I still don't know how to get it in the document library context…
Maybe I miss something or maybe that is not possible… but as said lpgc, I think it makes sense to be able to get the IP of the current user…