How to troubleshoot port forwarding on Windows 7 (64 Bit) with ICS enabled?

Posted by LearnCocos2D on Super User See other posts from Super User or by LearnCocos2D
Published on 2012-06-28T14:33:36Z Indexed on 2012/06/28 15:18 UTC
Read the original article Hit count: 116

I want to forward some ports (1666 for perforce, 8081 for Hudson) on my Internet Gateway machine. This machine is running Windows 7 (64 Bit, legal, user-account) and connected to the Internet via cable modem (it's not a router). The Windows machine is sharing its Internet Connection via ICS and that works fine on all connected computers.

I can access the services via the gateway's public IP (95.x.x.x) on the given ports if they are running on the gateway machine itself. I've added the ports and destination IP address (192.168.0.18) in the Internet network adapter's Advanced Settings dialog (Sharing tab). That's the same dialog where you have a list of preconfigured services like HTTP, FTP and other incoming services. When I do that I can't connect to the services anymore. For some reason port forwarding isn't working.

I have uninstalled Bitdefender because I wanted to check if the Firewall interferes. I've also disabled the Windows Firewall and Defender to no avail. I tried a freeware tool that helps to setup port forwarding but that didn't work either.

The target machine is a Mac OS X computer whose Firewall is disabled. The IP is static. I can successfully connect to the services using the local IP address (192.168.0.18) from two different machines, including the gateway computer. So internally and externally it seems to me that the ports are open and not blocked, and the issue is with port forwarding itself.

From what I understand it should be enough to add an entry to the Advanced Settings dialog to enable port forwarding when there are no firewalls interfering. How can I troubleshoot why port forwarding isn't working for me? What steps should I follow to alleviate the issue?

PS: I gladly accept command line solutions.

Other things I've tried:

  • adding an Inbound Rule to Windows Firewall for the 1666, 8081 ports
  • trying with Windows Firewall enabled and disabled
  • disabling/enabling the network adapter
  • double-checked that the IP addresses are correct
  • mapping a different incoming port to the service's actual port
  • followed or checked the misc tips in this article

What I haven't dared trying yet (let me know if it's worth a shot):

  • disable/enable ICS
  • remove all network adapters (via Control Panel), then re-install and re-configure them

© Super User or respective owner

Related posts about windows-7

Related posts about port-forwarding