aspose file tools*
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
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat not allowing other machine clients" Watch "Tomcat not allowing other machine clients" New topic
Author

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
http://169.144.15.4/first/index.html(where 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?

Thanks
Ankur Garg



William Brogden
Author and all-around good cowpoke
Rancher

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

Bill
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: 16065
    
  21

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: http://aspose.com/file-tools
 
subject: Tomcat not allowing other machine clients