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 "18.104.22.168". 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 22.214.171.124 and at last it displays the timeout page with message "The server at 126.96.36.199 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.