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:
>
> 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]
>
>
>
-----
Michael Sparer
http://talk-on-tech.blogspot.com
--
View this message in context:
http://www.nabble.com/How-to-get-the-remote-address-%28IP%29-tp18709448p18710838.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]