• 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
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

connection problem

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Saloon Keeper
Posts: 24305
167
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic