Routers, Ports and Servers

sohum

Executive member
Joined
Aug 3, 2004
Location
San Francisco, CA
Profile Flag
India
Right, so I have a D-Link DSL-502T. There are currently two computers attached to it. My external IP address is 59.x.x.x. Requesting the external IP address from a browser gives me the router configuration page (192.168.1.1). I have a laptop that has been assigned a static local IP address on 192.168.1.136. It runs Apache on port 80.

What I want to do is allow that server to respond to requests. Since port 80 is taken up by the router configuration (something that can be changed, but I'd rather not), I will do this on another port... how about 81 just for fun. So then, the Apache server should be able to serve on http://59.x.x.x:81

I haven't been able to get it to work. I tried a few techniques. The router configuration has a couple of options: Virtual Server and Filters. It seemed like Inbound filter was exactly what I wanted, but I was evidently unable to set it up. So I thought maybe Port forwarding is what I want, so that when inbound requests come in on port 81, I should forward them to port 80 on 192.168.1.136.

Following PortForward.com's slightly outdated guide for my router, I mapped port 81 (to 81) to port 80 and added it to my IP. It didn't work.

My ISP is MTNL TriBand. If anyone has any other suggestions on how to get this to work (especially if they have done it personally, or have the same ISP as me), I'm looking forward to the knowledge!
 
I really didn't understood what you said but if you want to change your IP I can help.
 
I may be wrong but I think you might need both. Forward the port 81 and set up an inbound filter.
 
First things first. Can you access your internal website from another machine on the network on port 81?
If yes, than the fault is with the router config itself. Goto www.canyouseeme.org and check whether port 81 is open. If it is open, you shouldn't have any problems. Otherwise configure your router allow it, in some routers you have to setup a rule in NAT-Port Forwarding & Firewall config both.

Edit - And I've just setup my website in 10 mins and its running on port 81.
http://sidweb.myvnc.com/
 
If you are having problems with port forwarding then try using Bridge Mode.
 
First things first. Can you access your internal website from another machine on the network on port 81?
If yes, than the fault is with the router config itself. Goto www.canyouseeme.org and check whether port 81 is open. If it is open, you shouldn't have any problems. Otherwise configure your router allow it, in some routers you have to setup a rule in NAT-Port Forwarding & Firewall config both.
I cannot access it on port 81 from another machine on the network because Apache is serving on port 80. As I understand it, I want to set up port forwarding so that incoming requests on port 81 are routed to port 80 by the local IP. I can access my server from another machine no the network simply by requesting 192.168.1.136 on port 80 (default).

I hope this helps you http://wiki.broadbandforum.in/Port_Forwarding#For_DLink_DSL-502T
I think you can disable accessing router configuration page from external IP so that you can have port 80 for your webserver. I had it on my 500T not sure if 502T has that option though.
I'll take a look at it and let you know if I made any progress.

EDIT: I had port forwarding done pretty much like it is supposed to. Maybe I should try running router configuration on another IP. I'm not sure you can disable it with 502T.

If you are having problems with port forwarding then try using Bridge Mode.
I think port forwarding is working correctly. At least, that's what Soulseek told me. ;) I'll try bridge mode out if all else fails.

The port is open (according to canyouseeme.org) but trying to access it through a browser throws a "Problem loading page"/"Cannot find server" error on Firefox and IE respectively. No such problems locally, of course.
 
Last edited:
You cannot access your website from inside by typing your public ip, since you haven't added the dns entry to allow that. post your web ip here and I'll verify whether I can access your website or not. Same thing as my website. I had to remote into my Office and access it from there to verify it was working.
 

Users who are viewing this thread

Top