did you try
getRequestCycleSettings().setGatherExtendedBrowserInfo(true); in your
WebApplication? 

-----Original Message-----
From: Kaspar Fischer [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 29, 2008 6:35 AM
To: [email protected]
Subject: How to get the remote address (IP)

I try to obtain the client's remote address from the session:

   WebClientInfo info = (WebClientInfo) session.getClientInfo();
   final String remoteAddress = info.getProperties().getRemoteAddress();

This results in "0:0:0:0:0:0:0:1%0". Any idea what might be wrong?
Thanks a lot, Kaspar

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to