Question

I have a static public IP which ISP gave me. The problem is, I have to use a router. When I do the IP changes to, say, 192.168.1.100. This is no use since no one outside my local network can reach the webpage. I've tried a program which converts this IP into a static one (not sure what it does really, the name of the program is Portforward Setup Static IP Address). All it did, it changed my IP to 192.168.1.50 and assured it was a static IP. It might be so, but I still can't reach the webpage outside my network.

How could I set up my router so that outsiders could reach my webpage?

Était-ce utile?

La solution

It's easy. All you need is to setup port forwarding on your router to forward ports 80 and 443 (in your case, as you want webpage access). Don't worry about doing anything else (but you will still have to properly setup httpd server) as you will have your static IP as public IP address but not your local, which is 192.168.1.50.

To make sure that you're having expected public IP, just type in Google:

IP

as a result you should have:

Your public IP address is 1.2.3.4

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top