This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Dennis Laydia
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • 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.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic