Jump to content

How to make webserver with public access?


php_guy

Recommended Posts

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

 

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.

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.