This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 12761
    
    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: 12761
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat as a Web Server
 
Similar Threads
Cannot Find Server; Page Cannot be Displayed
File System Access.
how to access this remote EJB server
Tomcat JNDI lookup on Weblogic
call a remote server method in java