Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

first web server help 1

Status
Not open for further replies.

bluepixie

Programmer
Jul 31, 2003
34
US
Hi,
I am running Tomcat on my pc and I can't seem to view my web page when I try my local ip (but I can view it from localhost in the browser). My friends haven't been able to view it with my ip or domain from their locations outside the network. I have my files (just jsp and html to start) in my root folder (C:\Tomcat_4_1\webapps\ROOT). I have opened up port 80 on my linksys to point to my local static ip. My DSL company alows port 80 traffic and I have a static routable ip through them. DNS is fine. I have zone alarm, will disable it temporarily but hope to have it allow web traffic too. What else do I need to do or am I doing something wrong?
Thanks!
 
Tomcat runs (by default) on port 8080 - but of course its possible to make it run on port 80 - have you changed the port ot runs on ?

Can you "ping" your PC from outside the network ?
 
My friend successfully pinged my public ip. Also the logs on my linksys show him attempting to access. I don't think he got to the server at all though. Also, I can't find the https.conf file to change settings from localhost to my domain. I think this may be a problem. Am I supposed to have this file or does this version have a different place to add domain information?
Thanks!
 
https.conf sounds like an Apache web server file - not a Tomcat file - are you using apache to redirect dynamic requests to tomcat ? If so, have you mounted the appropriarte URL patterns (JKMount) from apache to tomcat in the httpd.conf (not https.conf) file ?

You still have not said what port tomcat is listening on (the 8080 vs. 80 thing) - what is the url you are to hit ? Do you specify the precise port ?
 
Hi,
Tomcat has many config files it seems. in the server.conf file it seems as though the main port is 8080. I have done searchs for JKMount and httpd.conf files and can't find them. I must be missing something.
thanks
 
So you are not using Apache http web server ?
When you say "server.conf" do you mean "server.xml" in the conf directory ?

If you have tomcat listening on port 8080, then of course you won't be able to access it on port 80 ...

what is the URL you are trying to hit ? Is it :
Code:
[URL unfurl="true"]http://192.168.3.133:8080[/URL]
?

(where your IP can be got from "ipconfig" in the command line.
 
wow, thanks. I never appended the :8080 on the end of the ip before and my site appeared. At least the answer was something simple!! Now I just need to make sure that outside viewers can see my page.
 
You can start tomcat on port 80 by changing the value in server.xml from 8080 to 80 (Just do a search and replace on all occurances in server.xml). Then you can access your site with (because browser's default port is 80)
 
Thanks, that was the ticket! I changed all occurances and then it worked.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top