"Natalie Forood" <[email protected]> wrote in message 
news:[email protected]...
> Hello,
>
> Can you tell me how I can get the IP address of the interface that is 
> running Tomcat?  I can't use localhost, I need the IP of the physical 
> interface.
>

request.getLocalAddr() returns the IP address that the request was recieved 
on.  Note that if you are using AJP/1.3 than this is the IP address that 
Apache recieved the request on.

> Thanks,
> Natalie 




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to