Look at the servlet api docs; it appears that you can get the ip address; have
look at javax.servlet.ServletRequest.getLocalAddr().
http://java.sun.com/j2ee/1.4/docs/api/index.html
Natalie Forood wrote:
Thanka, but if I have multiple interfaces on the server, how do I know which
interface to you from the ifconfig output?
Natalie
________________________________
From: Steve <[email protected]>
To: Tomcat Users List <[email protected]>
Sent: Thursday, February 19, 2009 4:36:43 PM
Subject: Re: Getting the tomcat server IP
Natalie Forood wrote:
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.
Thanks,
Natalie
ifconfig (linux/unix/mac osx)
ipconfig (windows cmd line)
-- eats the blues for breakfast,
does unix for rent,
plays harp for food,
will play the flute for kicks
rides for the freedom
scrapes for the challenge
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]