In a servlet, request.getLocalAddr() will return the server's IP address.
--
Len
On 10/9/06, Daniel Blumenthal <[EMAIL PROTECTED]> wrote:
Hopefully, a pretty easy question: how do you determine the IP address of
the server a servlet is running on?
Thanks!
Daniel
-
Hello Dan-
take a look at obtaining host information via the AccessValve
for specifics on how to implement AccessValve I invite you to look at
http://tomcat.apache.org/tomcat-4.0-doc/config/valve.html#Access%20Log%20Valve
Anyone else?
Martin --
This e-mail communication and any attachments may c