• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Problem accessing Tomcat from outside my LAN !

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 !!!
 
Ranch Hand
Posts: 326
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 326
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Are you here to take over the surface world? Because this tiny ad will stop you!
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic