Meaningless Drivel is fun!*
The moose likes Tomcat and the fly likes Tomcat not allowing other machine clients Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat not allowing other machine clients" Watch "Tomcat not allowing other machine clients" New topic

Tomcat not allowing other machine clients

Ankur Gargg
Ranch Hand

Joined: Sep 11, 2011
Posts: 55

Hi Ranchers

I deployed an application succesfully on Tomcat6.
I am able to access it using http://localhost//first/index.html

Howevere when I atry to access from other machines using URL this is my ip on which tomcat server is started)
I get operation timed out.
Can anyone tell me what I need to change and where?

Ankur Garg

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12671
The first thing to suspect is a firewall on your server machine.


Java Resources at
Ankur Gargg
Ranch Hand

Joined: Sep 11, 2011
Posts: 55

I allowed incoming requests on port 80 on server.

I read somewhere some changes in server.xml.

But somehow not able to reach to the changes that need to be done..
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15627

As it comes from the factory, Tomcat doesn't listen on port 80, it listens on port 8080. And yes, that is set in the server.xml file.

However, you cannot just change server.xml. On many OS's, port 80 (all ports < 4096) is a privileged port and the only applications that can use it have to have root privileges. Since Tomcat cannot jail itself, that means that a Tomcat running on port 80 is a serious security risk.

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: Tomcat not allowing other machine clients
Similar Threads
Regarding relative path
HTTP Status 404 error.. Help required.
404 error
Problem getting Servlets to work correctly with Tomcat
can't access tomcat-docs webapp