aspose file tools*
The moose likes Tomcat and the fly likes Tomcat as a Web Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat as a Web Server" Watch "Tomcat as a Web Server" New topic
Author

Tomcat as a Web Server

M Jay
Ranch Hand

Joined: Sep 21, 2004
Posts: 66
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


SCJP J2SE 1.4<br />SCBCD J2EE 1.3
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12789
    
    5
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

Joined: Sep 21, 2004
Posts: 66
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

Joined: Mar 22, 2000
Posts: 12789
    
    5
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
 
Don't get me started about those stupid light bulbs.
 
subject: Tomcat as a Web Server