?
Solved

how to request the proper URL with an Apache Server.

Posted on 2003-03-18
5
Medium Priority
?
817 Views
Last Modified: 2010-03-04
Hi everyone:

I am running jakarta-tomcat-4.0.6 with Java j2sdk1.4.1_02 (does anyone know of any problems with this config?) and when I place the following URL:

http://localhost:8080/myDir/myJSPPage.jsp 

it works and it even works when I specify the IP given to me by the server (DHCP)

http://10.0.0.65:8080/myDir/myJSPPage.jsp 

now, if i get out of the LAN and adquire an IP given to me by the ISP like

http://165.180.160.180:8080/myDir/myJSPPage.jsp 
or
http://myDir/myJSPPage.jsp@165.180.160.180:8080/
 
it does not work any more ???

Do i have to open the 8080 port ??
What is the right way to specify the URL ???

An example of the exact way to write the URL will help lots,

Thanks,

Rene.

Thanks
0
Comment
Question by:chrome2000
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 

Expert Comment

by:valleydesi
ID: 8163013
Your ISP may be blocking access to the ip address. Try going to your server using http://localhost:8080/myDir/myJSPPage.jsp on the local machine. If this works, it means that you server is working. Check with your ISP to see what their policies are about accessing addresses in their domain.
0
 

Author Comment

by:chrome2000
ID: 8163132
thanks valleydesi:

that makes sense but my ISP which is a recognized provider in the area where i live claims that i can host your own webserver and use their service to access it and as i wrote early:

http://localhost:8080/myDir/myJSPPage.jsp 

it works and it even works when I specify the local IP given to me by the win server (DHCP)

http://10.0.0.65:8080/myDir/myJSPPage.jsp 

now, if i get out of the LAN and adquire an IP given to me by the ISP like

http://165.180.160.180:8080/myDir/myJSPPage.jsp 
or
http://myDir/myJSPPage.jsp@165.180.160.180:8080/

it does not work any more ???

0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 8165336
most likely a firewall or routing problem.
Either you have no NAT/MASQuerading, or the ports are blocked.

Best to check is that you start:
   tcpdump -l -n -i eth0 port 8080
on your tomcat server, then try to connect from outside and check if packets arrive (assuming that eth0 is the NIC bound to the posted IPs):
0
 

Author Comment

by:chrome2000
ID: 8168351
thanks for your info ahoffman but your knowledge is way over my head.

here is my configuration

telephone line --> DSL modem --> K5 --> switch (two get two IPs) --> K5 ---> into my NIC.

Here is the thing. Few days ago I was still inside a LAN where I was given an IP by the Win 2000 Server(DHCP). Now I register the "mak" address of my NIC with the ISP so that I can get with the help of the switch my own IP and host my own webserver. The fact is that I get a new IP but for some reason I can not access the Internet even when I removed the proxy settings (required in the old network). Also I can not access my pages. The configuration is OK because I tried at home the same one and it works fine. FYI I am running Win 2000 Pro, tomcat , jdk, mysql. I think that the commands that you typed for me are unix commands right ???? How can I open port 8080 ?? How can i change the default settings of tomcat for the port 8080 ??

thank you and anyone else who want to help for your time,

rene
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 150 total points
ID: 8172364
for shure there is no problem connecting from within the same LAN, usually.

I'm confused about you network topology, and wher which server and/or browser is started.

Please post following results from the PC running your server ** and from the PC you try to cennect to the server with your browser (start commands in your cmd.exe):

   ipconfig -all
   netstat -rn

   
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question