php_guy Posted November 29, 2010 Share Posted November 29, 2010 Hello all, Little bit of a rookie question here, but I'll ask anyway I'm developing a PHP page under Apache on my local machine. I navigate to my page by going to: http://localhost/ or http://127.0.0.1 However... if I go to my modem/router (i have an all-in-one) and get my exeternal IP (alternatively I can get from ipchicken.com, etc.) and try navigating to that by doing: http://<my-external-ip>/ then I do not get my webpage! Instead, my router's splash page comes up. What am I doing wrong? Are there settings in Apache where I need to allow it to be viewable by public? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/220156-how-to-make-webserver-with-public-access/ Share on other sites More sharing options...
Chris92 Posted November 29, 2010 Share Posted November 29, 2010 You need to port forward port 80 to your local address on your router. Quote Link to comment https://forums.phpfreaks.com/topic/220156-how-to-make-webserver-with-public-access/#findComment-1141003 Share on other sites More sharing options...
requinix Posted November 29, 2010 Share Posted November 29, 2010 After the port forwarding, you may still get your router's splash page. That's only because you're accessing it locally (and the router has detected that) - people outside your network will see the website normally. Quote Link to comment https://forums.phpfreaks.com/topic/220156-how-to-make-webserver-with-public-access/#findComment-1141004 Share on other sites More sharing options...
php_guy Posted November 29, 2010 Author Share Posted November 29, 2010 Thanks for the quick responses guys.... How do I set up port forwarding? Is it something that's specific to Windows? Or a setting in my router? Quote Link to comment https://forums.phpfreaks.com/topic/220156-how-to-make-webserver-with-public-access/#findComment-1141008 Share on other sites More sharing options...
requinix Posted November 29, 2010 Share Posted November 29, 2010 Ah, he went offline. It's a router thing. Look around on the router's "site" for stuff to do with port forwarding. If you can't find anything, or don't understand what you found, ask Google for advice. Quote Link to comment https://forums.phpfreaks.com/topic/220156-how-to-make-webserver-with-public-access/#findComment-1141021 Share on other sites More sharing options...
ManiacDan Posted November 29, 2010 Share Posted November 29, 2010 Also note that if you get this working, you may be violating your ISP's customer agreement. Generally they don't allow the customers on "residential" connections to run a web server. -Dan Quote Link to comment https://forums.phpfreaks.com/topic/220156-how-to-make-webserver-with-public-access/#findComment-1141036 Share on other sites More sharing options...
jdavidbakr Posted November 29, 2010 Share Posted November 29, 2010 Also note that if you get this working, you may be violating your ISP's customer agreement. Generally they don't allow the customers on "residential" connections to run a web server. -Dan On that note, most ISP's block port 80 inbound anyway. Quote Link to comment https://forums.phpfreaks.com/topic/220156-how-to-make-webserver-with-public-access/#findComment-1141085 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.