How to get the remote address (IP)

2008-07-29 Thread Kaspar Fischer
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

RE: How to get the remote address (IP)

2008-07-29 Thread Hoover, William
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: users@wicket.apache.org Subject: How to get the remote address (IP) I try

Re: How to get the remote address (IP)

2008-07-29 Thread Kaspar Fischer
On 29.07.2008, at 12:53, Hoover, William wrote: did you try getRequestCycleSettings().setGatherExtendedBrowserInfo(true); in your WebApplication? William, thanks for your answer. I indeed did not set this in my application. But if I do, I still obtain the same result. However, isn't there a

Re: How to get the remote address (IP)

2008-07-29 Thread Jonas
Is your browser running on the same machine as the webserver? If so, you might want to read this: http://en.wikipedia.org/wiki/IPv6#Special_addresses On Tue, Jul 29, 2008 at 1:48 PM, Kaspar Fischer [EMAIL PROTECTED] wrote: On 29.07.2008, at 12:53, Hoover, William wrote: did you try

Re: How to get the remote address (IP)

2008-07-29 Thread Michael Sparer
try: final ServletWebRequest req = (ServletWebRequest) RequestCycle.get().getRequest(); final String remoteAddr = req.getHttpServletRequest().getRemoteAddr(); regards, Michael hbf wrote: I try to obtain the client's remote address from the session: