aspose file tools*
The moose likes Servlets and the fly likes Question about obtaining IP of tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Question about obtaining IP of tomcat" Watch "Question about obtaining IP of tomcat" New topic

Question about obtaining IP of tomcat

Benny Tang

Joined: Aug 03, 2003
Posts: 26
Hi All,
Since I want to find out the IP of the machine which is running tomcat, I know that it can be obtained by using the class InetAddress. But is there any other ways that can obtain the same information like using class ServletContext, HttpServletRequest.....
Thanks for your kind attention.
ib idris

Joined: Aug 02, 2003
Posts: 29
gives you the name of the host or ip address.
I agree. Here's the link:
subject: Question about obtaining IP of tomcat
Similar Threads
Abybody try install Tomcat and IIS in same machine?
how to get IP address in linux
From which IP application deployed
Unable to access tomcat via public ip
why localhost:8080 doesn't work?