This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Connecting to Tomcat from a different Computer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Connecting to Tomcat from a different Computer" Watch "Connecting to Tomcat from a different Computer" New topic

Connecting to Tomcat from a different Computer

Maha Hassan
Ranch Hand

Joined: Aug 02, 2005
Posts: 133
Dear All,

I want to log to Tomcat from a different PC. How can I do that? For example, my computer name is "homePC" and the url on it is "http://localhost:8080/project" how can i open this URL from a different computer.

Thanks a lot

Balasubramanian Krishnaswamy

Joined: Jun 26, 2007
Posts: 24
http://homepc:8080/project should work.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

If they are both on the same windows network, that might work.
If not, find out the ip of your machine by opening a command prompt and typing :

and use

To connect from the internet, you will need to find out the IP of your network, and configure your router to forward port 8080 from outside requests to your specific machine. (This, of course, assumes you're using a router and are not connected directly to the internet).

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Allahbaksh Asadullah

Joined: Aug 30, 2007
Posts: 9
Apart from router config check out Windows Firewall setting. In Exception Tab add Tomcat and Add port.
I agree. Here's the link:
subject: Connecting to Tomcat from a different Computer
It's not a secret anymore!