Lord Kenneth Posted March 7, 2004 Report Share Posted March 7, 2004 I'm behind a router that's configured to port forward port 8080 correctly. The problem is, I can't get it so I can access my server and others can do so. Either I can get it so they can access it and I can't, or I can and no one else can. What's wrong with my setup? ServerRoot /etc/httpd/2.0 Listen 192.168.1.133:8080 ServerName localhost #LockFile /etc/httpd/httpd.lock PidFile /var/run/httpd.pid ErrorLog logs/error_log LogLevel warn Options indexes DocumentRoot /var/www/html Quote Link to comment Share on other sites More sharing options...
fuzzylizard Posted March 7, 2004 Report Share Posted March 7, 2004 How are you and your friends trying to access apache? What IP address are you trying to use and what IP are your friends trying? Quote Link to comment Share on other sites More sharing options...
Lord Kenneth Posted March 7, 2004 Author Report Share Posted March 7, 2004 I'm trying to use my internal LAN Ip address, while they are trying to use my external, router IP address. Quote Link to comment Share on other sites More sharing options...
fuzzylizard Posted March 7, 2004 Report Share Posted March 7, 2004 The problem is, I can't get it so I can access my server and others can do so. Either I can get it so they can access it and I can't, or I can and no one else can. What's wrong with my setup? What are you doing that makes the difference? Is there something that you are changing in the configuration that makes it so you can access the server internally and not externally and vice versa? Also, have you tried setting it so that the server can be accessed externally and then you try to access it using either http://localhost or http://127.0.0.1? Quote Link to comment Share on other sites More sharing options...
Lord Kenneth Posted March 7, 2004 Author Report Share Posted March 7, 2004 actually, I think the problem involves php, but I can't find out what. Here's what's going on (I'm using a proxy to simulate being "outside the lan")... Okay, I can do Http://localhost:8080 just fine. I can do http://IPADDRESS:8080 fine, as well. However, when I try to go to http://IPADDRESS:8080/logd (php game) it forwards me to http://127.0.0.1:8080/logd which of course is not accessible outside the lan. I don't think it's specific to this game as it does that with phpmyadmin as well. Quote Link to comment Share on other sites More sharing options...
Lord Kenneth Posted March 7, 2004 Author Report Share Posted March 7, 2004 Actually, now it's forwarding to localhost:8080, not 127.0.0.1:8080. I figured out exactly what setting it's looking at which changes that-- it's ServerName in httpd2.conf Quote Link to comment Share on other sites More sharing options...
cardassianscot Posted March 7, 2004 Report Share Posted March 7, 2004 I think the problem is the router is being set up to forward (or route, I'm not sure of the correct terminology here, sorry) an IP address but needs to be set up to masq it. To illustrate the difference. Here's my situation. I have two seperate lans on different sub mask, one from students and one for staff. The student network is on 192.168.0.0 and the staff on 192.168.69.0 . Now our web sever is on the staff network so students need to access their webmail need to be able to access the web server on the faculty network but nothing else. Therefore, my router (which is actually a 486 running debian Linux) is set up to allow access to 192.168.68.1 (our webserver) on port 80 from 192.168.0.0 . But we also need this to be available from the internet, this needs to be masked. So that requests for port 80 coming from our external ip is masqed to 192.168.69.1 . I think you have set up the internal forwarding (designed for one lan to another) but not masquing (sp?) which is for external IP to lan address. Having said all that I have no idea how to set this up on a router, just a linux box, but it should give you some ideas. Quote Link to comment Share on other sites More sharing options...
Lord Kenneth Posted March 8, 2004 Author Report Share Posted March 8, 2004 I got a workaround set up, thanks for the help anyway.... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.