my dog learned polymorphism
The moose likes Tomcat and the fly likes Accessing Tomcat 6.0 using an ipaddress Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Accessing Tomcat 6.0 using an ipaddress" Watch "Accessing Tomcat 6.0 using an ipaddress" New topic

Accessing Tomcat 6.0 using an ipaddress

Mazhar Ismail

Joined: Sep 10, 2008
Posts: 11

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.

mark walter

Joined: Jun 20, 2008
Posts: 15
add the website name to the hosts file mapping it to the static IP it is running on.
Mark Williams
Ranch Hand

Joined: Aug 01, 2008
Posts: 66
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

Joined: Sep 10, 2008
Posts: 11
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

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

Joined: Apr 23, 2008
Posts: 37
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.

Thanks & Regards,
I agree. Here's the link:
subject: Accessing Tomcat 6.0 using an ipaddress
It's not a secret anymore!