Forum Moderators: phranque

Message Too Old, No Replies

can't connect outside local network

can connect internally, but not through external IP

         

tucana

9:34 am on Jan 14, 2005 (gmt 0)



I've installed httpd on my comp on port 80

I can access it via [192.168.1.6...]
or [server...]

and I have forwarded my external port 80 to internal port 80 on 192.168.1.6 from my router, but I can't access it on [<pub...] ip>

I suspect the problem is actually with the httpd.conf file rather than a network problem.

Here are some lines that I believe are configured correctly, and should be associated with connecting to the server:

#Listen <pub ip>:80
Listen 80
ServerName <pub ip>:80

I think that's it

<pub ip> is obviously replaced with my actual static IP address... any ideas?

RedScourge

10:26 am on Jan 14, 2005 (gmt 0)

10+ Year Member



i have set up apache recently on a system thats behind a router, and i found that i had to access the site by going [publicIP:80...]

you would not except it would need this, but i think it has to do with the router not being able to forward http traffic to the right computer unless you EXPLICITLY specify port 80 in the address for some reason.

maybe im wrong, maybe not, but i do know many routers do behave like this when you set up a computer behind a router and want the router to forward all http requests to the specific server computer, all SMTP traffic to another perhaps, etc.

RedScourge

5:17 am on Jan 17, 2005 (gmt 0)

10+ Year Member



also, have you ever tried specifying your internal ip address 192.168.x.x as the ip to listen on? i think you have to look up UseCanonicalName if you do that, but you might wanna play around with that perhaps as well.