Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Issue setting up port forwarding?

Hi guys, I have spent all day trying to set up port forwarding so my web server can be accessible from the internet. I have a D-Link 524 router and after following all the directions for setting up port forwarding, surprisingly it didn't work. I have already set up a static local ip for my mac server (192.168.0.100) and have already set up all the port forwarding. For some reason, under the "Status" category in the D-Link's settings, it says that my public ip provided from my isp is 192.168.250.170, which I am sure it is obviously not, for whatismyipaddress.com tells me that it is 70.103.20.179. To try to fix this, I tried to change my dynamic WAN ip to static and then change the provided public ip to the 70.103.20.179 one. Unfortunately, this did not work because the ISP Gateway Address was obviously a different domain than the public ip.

So, what do you guys think is wrong? How can I fix this?

Update:

By the way I use XAMPP if it matters.

Update 2:

@Black Angel but do I set a static ip for the wan ip, or my servers local ip, or both?

Update 3:

@Blaxk Angel also, if it is the local ip, do I change it from the dhcp server or should I turn off the server and do it manually from the mac's settings?

Update 4:

I have already tried making the macs local ip static both ways, yet still when I try to load my public ip in the browser nothing happens.

Update 5:

@Fenny I understand what you are saying, but when I try to access this hidden device at 192.168.250.x, nothing happens. I have a windows PC, a Mac (the server), a Linux laptop, and a iPad on the LAN if it matters.

Update 6:

@Fenny Also, how can I find out the ip address of this other device? I already know for sure that it is not .0 or .1.

Update 7:

@Fenny, I have found the IP of the modem, 192.168.250.1, but when I input it into a web browser it doesn't load any page. Is it possible that the modem does not have configuration settings? If so, where do I go from there?

2 Answers

Relevance
  • 9 years ago
    Favorite Answer

    I bet that your modem has it's own DHCP server.

    Check the "Default Route" that the D-Link Router has try logging into that IP (Probably 192.168.250.1), and see if there is a configuration page there. Your best bet there would be to DMZ the dlink router ( IP 192.168.250.170)

    Allow me to clarify.

    You are experiencing a problem called Double NAT.

    What this means is that you have Two hardware devices running DHCP Servers on your local network. The First is running on the Subnet 192.168.250.X, and the second is running on 192.168.0.X This is the reason that your WAN IP for the Dlink is 192.168.250.170.

    You need to access the device that is giving out IPs on that 192.168.250.X Subnet, and forward the port to the D-Link router that is giving out IPs on the 192.168.0.X Subnet, and the from there forward the port to the Web Services Device on your network.

    You have two options that would simplify this a bit more, the first is disabling the DHCP server on your Dlink Router, and connecting it to your modem with the LAN port thus turning it into a wifi AccessPoint+Bridge. And then gaining access to the 192.168.250.X Device and forwarding the port to whatever IP you get in that range for your server machine.

    The second, and the simpler option, is to get access to the 192.168.250.X Device and Enable DMZ services on it to DMZ the Second router on your network Subnet 192.168.0.X.

    What Black Angel is suggesting will NOT work because of that Double NAT issue.

    *Edit*

    It is possible to your ISP is forcing you to share a public IPv4 with other users. Since we have now run out of IPv4 addresses, some ISPs have implemented NAT systems that cause users to share An IP. You can obtain a more certain answer about this by contacting your ISP, and asking them. They may even be able to assist you in forwarding the port if you request it on a shared IP system.

    If the above is not the case and you are not on a shared IP, You can find the IP of the offending device by going into the settings on your D-link Router and looking at the WAN values it is getting via DHCP. Of those values the Default Route, or Gateway IP is the value you are looking for.

  • 9 years ago

    First Don't put your router into a DMZ, there's no need for that.

    If you're doing port forwarding you need to have a static IP to route to otherwise if you restart your server (like after patching... you ARE doing that for a publically exposed server right? ;) ) you can end up with a different IP address and your port forwarding will fail.

    There are two ways to go about that. One look in your DHCP setup for something similar to "DHCP reservation" and enter the MAC address and IP address you want. The other is to set a very high static IP that's very unlikely to ever be assigned (if you have a router giving out IP addresses with 192.168.0.0 and a netmask of 255.255.255.0 that's 252 potential IP addresses (you lose .0 as the network address, .255 as the broadcast IP, and .1 is usually your default gateway). Unless you've got 252 unique devices on your network manually setting your IP to 192.168.0.254 will generally do the trick for a static setting if you don't want to fuss with DHCP.

    Setting your port forwarding to that IP will solve your issue.

Still have questions? Get your answers by asking now.