Link to home
Start Free TrialLog in
Avatar of chrome2000
chrome2000

asked on

how to request the proper URL with an Apache Server.

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
Avatar of valleydesi
valleydesi

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.
Avatar of chrome2000

ASKER

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 ???

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):
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
ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial