• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Accessing Tomcat 6.0 using an ipaddress

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
add the website name to the hosts file mapping it to the static IP it is running on.
 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic