This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Problem access to Tomcat in internet and intranet at the same time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problem access to Tomcat in internet and intranet at the same time" Watch "Problem access to Tomcat in internet and intranet at the same time" New topic
Author

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

Dennis Laydia
Greenhorn

Joined: Jun 12, 2003
Posts: 18
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

Joined: Mar 22, 2000
Posts: 12756
    
    5
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

Joined: Jun 12, 2003
Posts: 18
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem access to Tomcat in internet and intranet at the same time
 
Similar Threads
Please help me in design
Secure Application JBOSS
Servlet can run on intranet application
Conditionally protecting app by IP range
Using Internet to communicate