Port forwarding not working

apache-http-serverport-forwarding

I'm trying to set up an Apache Server to be accessed publicly.

I'm using a Netgear R4500 router hooked up to a Motorola SB6121 modem. I can access my server on my computer by typing in my IP address. After following the instructions to forward port 80 so I can access the server from other computers, it does not work (see image).

I get "This webpage is not available". I am forwarding to the IP address of my computer.

Using this Network Port Scanner Tool, it says "80/tcp filtered http", which, as I understand it, means forwarding did not work correctly. In my Apache httpd file, I have:

ServerName 192.168.1.13:80

and

Listen 192.168.1.13:80

Does anyone know what's wrong or have something I can try?


Click to enlarge

Best Answer

Your port forwarding looks OK.

The problems can be:

  • firewall on your machine (it is on by default in windows). You need to open port 80
  • if you are trying to connect from outside, maybe your ISP is blocking port 80. This happens with some ISPs. Maybe calling them to ask is a faster solution than trying to find out. But if you open your firewall and can't reach your machine this is probably that. To test avoiding having apache or something different not working, try telnet your-ip 80 from an external machine and see if it answers.

Update: comments summary:

So you opened the firewall for port 80 and your ISP is blocking port 80. You have a few options:

  • Try asking your ISP to open the port if possible

  • Use an external port forwarding service that will receives the request on port 80 and port forward to your router on another (unblocked) port and then your router forward to your server. There are many services for that, paid and free I suppose. For DNS I use dnsexit.com, it's free and works well. I know they have port forwarding too but I think it is paid.

  • Another way could be using a VPN receiving the requests on the VPN end point and transfering to your server as part of the VPN traffic (so unblocked, using private IP) but I think this will be slower....

  • You can change the port (to 81 for example) on your router and forward to port 80 in apache without problem (or have Apache listening on port 81 easily) but this way the url to access your webserver will need to include the port like: http://www.mysite.com:81 for port 81. If changing port 80 to 81 on apache, you will need to change the firewall to open port 81 too (and close 80).

Related Question