• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem access to Tomcat in internet and intranet at the same time

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys!
I'm a new member of javaranch but I've been reading forums here for quite some time and it has helped me a lot. I am currently developing a small web application which I will be deploying using Tomcat. It will be accessed by remote users via the internet as well local users in our intranet. But when I connect to the internet, I can't access the application but I can access it in our LAN. When I disconnect the connection to the LAN, it then worked in the internet. What should I do so that it can be accessed simultaneously?TIA.
 
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
What exactly do you mean by "disconnect the connection to the LAN"? I have a couple of Tomcat servers that can be seen both ways. I had to configure the router to map the address seen by the Internet to that used internally but thats all it took.
Bill
 
Dennis Laydia
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bill!
What I mean by that is I actually disconnected physically the connection of the Webserver to the LAN by unplugging the cable in the LAN card. Then I connect to the internet (dial-up) and get the ip address assigned to me. When I access that ip address by typing it in the address bar it is working. The problem is when I am both connected to the internet and the LAN. I think Tomcat only sees the local ip address and not the ip address assigned by the ISP.
 
reply
    Bookmark Topic Watch Topic
  • New Topic