I am not sure how setting anything in the hosts file will help the problem...
Are you trying to connect to your server from another machine? If that is the case, it probably is a firewall configuration issue. You need to allow incoming connections on port 8080. How you actually do that depends on the firewall software you are using.
Joined: Sep 10, 2008
Thanks for the advice. Got the solution. Posting the solution for people who may come across similar issue.
All we have to do is to go to windows firewall settings and add tomcat exe file under execpetions
Steps: 1. Click on start button and then on control panel. 2. Double Click the windows firewall icon from the list. 3. Click on the Exceptions tab. 4. Click on Add Program and select tomcat exe file from the bin directory (tomcat6.exe in case of Tomcat6.0). If the file is not found on the list open it using the browse button.
Now you can access the tomcat webserver from any computer in the network