Win a copy of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP this week in the Cloud/Virtualization forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

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.
 
You'll never get away with this you overconfident blob! The most you will ever get is this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic