• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat not allowing other machine clients

 
Ranch Hand
Posts: 55
jQuery Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The first thing to suspect is a firewall on your server machine.

Bill
 
Ankur Gargg
Ranch Hand
Posts: 55
jQuery Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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..
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic