• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat as a Web Server

 
M Jay
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have Tomcat installed on my local machine, with a web application deployed to it. From within my machine, I can access my web application.

However, when I want to access the application from a remote machine, it fails, I am not sure what is the reason for this.

I have my windows firewall disabled.

Do I need to install Apache to front Tomcat? or is there some setting I can do to Tomcat to make it accessible from a remote machine?

Many Thanks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there some setting I can do to Tomcat to make it accessible from a remote machine?

No, Tomcat just sits on your machine listening to the port you specify.
A remote machine needs to have the IP address of your system in order to address it, and any firewall/NAT router etc. needs to be configured to let the request through.
How is your local machine connected to the Internet?
Bill
 
M Jay
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi and Thanks for your reply,

When I try accessing http://myipaddress:8080 it doesnt work from a remote machine, while localhost works fine.

My machine is connected to the internet through a broadband wireless router. Could this be the problem? and if so how could I fix it?

Many Thanks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My machine is connected to the internet through a broadband wireless router. Could this be the problem? and if so how could I fix it?


It is certainly possible that your router is blocking the request - there is no general API for routers, you will have to read the manual.

How did you determine what to use for "myipaddress"?
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic