How to setup port forwarding for HTTP

1

I have a D-Link router and added a Virtual Server (Port Forward) on port 80. My web server (apache) is running on 192.168.0.199 I have reserved this as my static IP address for this machine on the network.

I have an external static IP address, when I navigate to this address it shows me the login page of my modem. When I access it externally it gives HTTP Error 400.

router page

Dejan

Posted 2011-06-01T21:50:18.303

Reputation: 914

You have tried to go to your external.ip.address:80? – None – 2011-06-01T21:53:25.137

Yes, but still no luck. – None – 2011-06-01T22:03:36.367

1It could be your ISP is blocking external requests on port 80. Many ISPs do that. Try changing the external port to something completely different, like 3555 or whatever, and see if that works. – slhck – 2011-06-01T22:32:46.267

3First, your router's configuration shouldn't be externally visible. Fix that. Second, it might ignore forwarding port 80 because it's catching it itself for the configuration page. – blahdiblah – 2011-06-02T00:01:52.427

Answers

0

You have tested it internally right? Like you try connecting to http://192.168.0.199 and it works?

Somethin else to double check. I have seen before that some website when you log in over http auto redirect to https. As you may know this is a different port (443). If this is happening you get an error 400 bad request if the port isn't opern. It is easy to miss as well with it changing just one letter (S). Check that or if anything else is changing in the URL. If so port forward https as well

Mucker

Posted 2011-06-01T21:50:18.303

Reputation: 787

it needed to be configured on my modem as well as on the router. – Dejan – 2011-06-07T18:11:49.310

Oh right. You never mentioned you had a modem as well...Or to be more exact a modem/router. – Mucker – 2011-06-07T21:37:00.960