Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat working in local IP but not working in public IP

 
Loojah Bajracharya
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am new to linux. Resently I am configuring a linux (CentOS 5) with tomcat and mysql. The system has two network cards one with local ip "192.168.0.27" and another is public ip "202.51.93.42". The Tomcat configure is working fine with in the local network any computer in local network can browse the site hosted in the tomcat server but when i tried to browse same using my public ip it is not working. The status in the browser say connecting to 202.51.93.42 and at last it displays the timeout page with message "The server at 202.51.93.42 is taking too long to respond". what should i do to solve this problem is there any more configuration needed in the tomcat?

And one more thing my tomcat is running in port 80.

thank....

Loojah
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to ensure that your firewall (iptables) permits the tomcat port to be accessed via the NIC that presents the public IP address.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic