This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing Tomcat 6.0 using an ipaddress

 
Mazhar Ismail
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am running tomcat 6.0 on windows machine on 8080 port. I can access the server using http://localhost:8080 but when I am not able to access it when I use my computers ip-address in place of localhost (http://ipaddress:8080).

I have gone through some of the forums online where they are asking to remove the firewall.

Can anyone tell me how do we do this or is there any other way by which I can start browsing the webserver with the ipaddress.

Thanks,
Mazhar
 
mark walter
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
add the website name to the hosts file mapping it to the static IP it is running on.
 
Mark Williams
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mazhar Ismail
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Aditi Gandy
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much.

Even i had same problem. But after following your solution step by step, i could invoke the server residing in my system from another machine.

Thank you very much.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic