aspose file tools*
The moose likes Tomcat and the fly likes Problem accessing Tomcat from outside my LAN ! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problem accessing Tomcat from outside my LAN !" Watch "Problem accessing Tomcat from outside my LAN !" New topic
Author

Problem accessing Tomcat from outside my LAN !

Ami Jay
Greenhorn

Joined: Nov 02, 2004
Posts: 3
Hi,
I am trying to access Tomcat from a network outside my LAN. It works fine within my LAN but doesn't work outside it. When I type ipconfig on my server machine, i get the following lines

Connection-specific DNS Suffix . : wiu.edu
IP Address. . . . . . . . . . . . : 207.246.188.244
Subnet Mask . . . . . . . . . . . : 255.255.254.0
Default Gateway . . . . . . . . . : 207.246.188.1

I use the IP address shown above along with port number 7000 to access my Tomcat server.

I chose port number as 7000 because I have some oracle stuff running on ports 80 and 8080.


Can anyone tell me where I am going wrong or what should i do to access Tomcat outside my LAN ???

Thanks !!!
Ray Stojonic
Ranch Hand

Joined: Aug 08, 2003
Posts: 326
The information from ipconfig is LAN info, not internet info. Go to whatsmyip.org from that machine to easily determine the internet IP.

If the server is hooked up to a router, traffic on port 7000 will probably need to be redirected to that machine's LAN IP with the router.
Ami Jay
Greenhorn

Joined: Nov 02, 2004
Posts: 3
Hello Sir,
Thank you for your reply. As u said i went to http://www.whatsmyip.org/ and checked my ip address there. Actually, it matched with the one shown by ipconfig.

If possible, can u please explain in more detail about

"If the server is hooked up to a router, traffic on port 7000 will probably need to be redirected to that machine's LAN IP with the router."

Actually, I am not the admin of my LAN but i can talk to my admin regarding whatevere u say.

Thank you,
Amith
Ray Stojonic
Ranch Hand

Joined: Aug 08, 2003
Posts: 326
Interesting that your IP from ipconfig and whatsmyip.org are the same, which means I'm already out of my element.

Here's my setup at home:

Tomcat and Apache running on machine connected to router, connected to cable modem. Router directs internet traffic from port 80 and 8080 to that machine's LAN IP. I can access Tomcat, directly, from anywhere.

You mentioned that you have something on port 8080, if you can access that from outside the LAN, have the systems person set things up the same way for port 7000.
[ November 03, 2004: Message edited by: Ray Stojonic ]
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12803
    
    5
I chose port number as 7000 because I have some oracle stuff running on ports 80 and 8080.

Any LAN admin worth his/her pay is going to have a firewall in place that blocks connections to all ports except those specifically allowed. Opening all ports to the outside world is asking for trouble.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem accessing Tomcat from outside my LAN !