Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

connection problem

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.

I'm new to the web service setting and having trouble guys.

I've set apache-tomcat and webapp is running,

and the thing is I can't access to my webapp from outside the network.

from the server's IE, if you connect to
localhost:8080 you can see the tomcat welcome page.
localhost:8080/myapp you can see the login page.
ip:8080 you can see 'It Works!' page
ip:8080/myapp you can see the login page.

from local client inside the network,
ip:8080 you can see the tomcat welcome page.
ip:8080/myapp you can see the login page.

from client outside the network,
ip:8080 you can see 'It Works!'
ip:8080/myapp you see the 404 Error.

Any one has idea on what to check?

OS: SUSE linux enterprise 11 (vm)
tomcat 6
apatch 2
 
Bartender
Posts: 20838
125
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like external IP requests are being routed to a completely different server.

One thing that you should be sure of it that you don't attempt to address a private IP address from the public Internet. Addresses in the series: 192.168...., 172...., and 10.... are private IP addresses, intended for use on your in-house networks only. They are not globally unique the way that public IP addresses are.
 
Ranch Hand
Posts: 75
Tomcat Server Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
are you running apache on port 8080?
You mentioned that ip:8080 returns "it works!" which is petty much apache things, not tomcat.
Pretty messy here. Can you copy paste your apache configs and tomcat server.xml ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!