Forum Moderators: phranque

Message Too Old, No Replies

apache setup working locally but can't be accessed from outside connection

can't get this to work, please help...thank you

         

cloggy00

10:49 pm on Feb 20, 2009 (gmt 0)

10+ Year Member



Hi all

Many thanks in advance.

I'm running on Ubuntu and I've succesfully setup apache alongside with a working php & mysql configuration - other computers connected to the LAN can access it by typing in my ip: 192.168.0.9

however I would like my webserver to be accessible by all internet users...I've got my ports.conf file in the apache setup to listen on ports 80 and 8080 this is my ports.conf:

Listen 80
Listen 8080
Listen 2000
<IfModule mod_ssl.c>
Listen 443
</IfModule>
I went onto my lan setup at 192.168.0.1 and successfully logged in and i tried portforwarding on ports 80 and 8080 to 192.168.0.9

It seems I've done everything correctly in terms of portforwarding, but when I go to my lans ip(87.113.21.30) it just comes up with the setup page that can be accessed at 192.168.0.1

I also tried 87.113.21.30:8080 but still no luck

Any help and suggestions are highly appreciated.

Thank you,

javax.swing

jdMorgan

10:58 pm on Feb 20, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You will have to test from outside your own LAN, or connect out to a proxy server on the Web, which will then make an incoming connection for you. Basically, by requesting your own WAN IP address from inside your LAN, you are asking your router to make both an outgoing and incoming connection at the same time, and that won't work.

Many ISPs block port 80, because they do not allow customers to run Web servers on standard-service connections. Also, some of them will permanently ban you if they don't allow it and you do it anyway.

Jim

cloggy00

11:16 pm on Feb 20, 2009 (gmt 0)

10+ Year Member



Thanks for your help :)

I've got a friend to test it and he dosen't appear to be able to connect at all to it by entering the lan's ip in his web browser.

Any more ideas?

Thanks

jdMorgan

12:05 am on Feb 21, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



LAN IP addresses are unroutable by definition. Outside users must connect to your WAN IP address.

Again, your ISP may not allow these connections.

Jim

mack

12:50 am on Feb 21, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



are you sure the router is set up corectly to forward all http/port 80 traffic to the internal ip hosting the server. it may be something as simple as needing to restart the router.

as has already been mentioned your isp may be blocking this.

Mack.

cloggy00

9:48 am on Feb 21, 2009 (gmt 0)

10+ Year Member



Thank you everyone, you've all been very helpful. I'll reboot my lan and see if that does anything.

Thank you again