aspose file tools*
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
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Connecting to Tomcat from a different Computer" Watch "Connecting to Tomcat from a different Computer" New topic
Author

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

Maha
Balasubramanian Krishnaswamy
Greenhorn

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

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
http://YOUR_IP:8080/project


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
Greenhorn

Joined: Aug 30, 2007
Posts: 9
Hi,
Apart from router config check out Windows Firewall setting. In Exception Tab add Tomcat and Add port.
Regards,
Allahbaksh
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Connecting to Tomcat from a different Computer