Am Dienstag, den 30.11.2004, 17:42 -0500 schrieb James Russo:
> Jochen,
> 
>     I think my original question was not clear. I want the server to be 
> able to obtain the IP address of the client calling the RPC method. I 
> want to be able to get this information from within the RPC method 
> itself. Right now, I don't think it is possible with the current way 
> things are implemented. Other then userpassword (via 
> AuthenticatedXmlRpcHandler, or ContextXmlRpcHandler) no information 
> about the underlying transport is available at the RpcMethod layer.
> 

When it comes to HTTP - and XMLRPC works on top of HTTP -
beware of the proxies. The IP you see at server level
isnt garantied the IP of the client box of the user.
And it might even be not constant over subsequent 
requests from the same user.

Best bet if you need some informations about the request
patch the server so you get all the (cgi) variables like
REMOTE_HOST, HTTP_X_FORWARDED_FOR, ... whatnot.

Regards
Tino

Reply via email to