Re: Getting hold of an IP address

2010-12-08 Thread Lyallex
On 8 December 2010 10:04, Konstantin Kolinko  wrote:

> ServletRequest.getRemoteAddr()
>
> (In a Filter.  There is no request in HttpSessionListener).
>
> Best regards,
> Konstantin Kolinko
>
ahem ... yes, well that was easy wasn't it
In my (weak) defense it's been a long while since I did any coding

Thank you

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Getting hold of an IP address

2010-12-08 Thread Konstantin Kolinko
2010/12/8 Lyallex :
> My application contains instances of
> javax.servlet.http.HttpSessionListener
> and
> javax.servlet.Filter
> (among other classes of course)
>
> My question is, is it possible to obtain the originating IP address of
> a request from either of these classes
>

ServletRequest.getRemoteAddr()

(In a Filter.  There is no request in HttpSessionListener).

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Getting hold of an IP address

2010-12-08 Thread Lyallex
Hi

apache-tomcat-6.0.16
jdk1.6.0_03

My application contains instances of
javax.servlet.http.HttpSessionListener
and
javax.servlet.Filter
(among other classes of course)

My question is, is it possible to obtain the originating IP address of
a request from either of these classes
I've had a good look around with no luck so far.

Thanks

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org