Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

how to request the proper URL with an Apache Server.

Posted on 2003-03-18
5
Medium Priority
?
839 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
  • 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month11 days, 16 hours left to enroll

564 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