Home

A free C++ BitTorrent/HTTP/FTP Download Client

add_port_mapping_in_nat_router
 

Add Port Mapping in NAT Router

Note: If you are connected to the Internet through a wireless modem (usually a USB stick) which uses mobile phone wireless telecommunications technology (such as GPRS, EDGE, EVDO, HSPA, UMTS, etc.) most likely your Internet connection will be firewalled at the ISP site by default (so you basically get only half of an Internet connection, without the possibility of successful incoming connections). Short of contacting your ISP to ask if there is a possibility to get full Internet connections on the same device or changing your Internet subscription plan for one that has incoming connections unfirewalled by default (all xDSL, cable or FiOS providers usually offer unfirewalled connections), there is nothing you can do on your side to unblock incoming connections, therefore there is no point in following this guide or any other port-forwarding guide, for that matter, because you will still have incoming connections blocked on all your ports!

To get the best speeds, BitComet needs an open listening port, just as most other P2P applications do. But if you are behind a router or use Windows Internet Connection Sharing (ICS) or you are behind a firewall, you might need to make some adjustments before you get rid of the infamous yellow light and BitComet works as intended. Namely, you'll probably have to configure your router and/or firewall(s) in order to open the listening port of BitComet. In this topic we will discuss the configuration of the router (port forwarding) both automatic (through UPnP) and manual, to the end of opening a port in your router's firewall and forwarding it on the setup page of your router, for BitComet. Software firewall configuration (the one residing on your computer) is discussed in the next topic (Create Firewall Rules).

As with software personal firewalls, there are a wide variety of routers available, and because of the sheer number, it is impossible to include port forwarding instructions for each router model in this user guide. Fortunately many routers support Universal Plug and Play (UPnP), which simply allows BitComet to open and forward a port on the router automatically, without user intervention, then close the port when it is done being used. The problem with Universal Plug and Play is that it's not supported by all routers, and different/incompatible implementations of the UPnP protocol are included in many routers. By default, UPnP port mapping is enabled in BitComet.

Also you need to make sure that UPnP is enabled on your Windows OS or if it's not or you're not sure, you can configure/verify that at Windows UPnP panel as shown below in this guide. If after that you find that you are still in a firewalled state (i.e. yellow status light), then it likely means your router does not support UPnP, or it includes an implementation incompatible with the UPnP mapper used by BitComet.

If this is your case (i.e. you already tried UPnP port mapping and it didn't work), or if you simply do not wish to try/use UPnP forwarding then it is recommended that you disable UPnP in BitComet, set up a static IP, and forward your ports manually. Detailed steps on how to do all that can be found in the Manual Port Forwarding section on this page; also go to this section if you're trying to troubleshoot a manual port forwarding attempt.

However, you should understand that no matter which forwarding method you will be using on your router(s) you'll still
have to make sure that the software firewalls installed on your computer are configured as well, to permit incoming
connections on BitComet's listening port. For tips about software firewall configuration follow the link above, at the
end of the first paragraph on this page.

So, to sum it up, there are two ways you can go about port forwarding, in order to open your listen port in your router:

  • Automatic (through UPnP);
  • By manually configuring port forwarding.

They are both presented below (first Automatic then Manual), but make sure that you acknowledge them for what they are: two alternative methods towards the same end (materialized in the two independent parts of the guide: the first one about UPnP port mapping and the second one about Manual port mapping).
If you choose one or another is up to you, just make sure that you know which method you want to follow and that you read the appropriate part of the guide.

BitComet UPnP Auto Port Mapping

In BitComet Options → Connections. Check the box “Enable UPnP Port Mapping”. WAN users do not need port mapping, it's suggested for them to uncheck this box.


Note: UPnP is only supported in Windows XP or above, and your hardware router must support UPnP and have it enabled. By default, BitComet won't release the port-mapping when you exit, but you may configure it to do so in Options → Connections Dialogs.

  • When you enable UPnP in the Options → Connections Dialogs, in the Detailed Info Pane → statistics, it says: “NAT port mapping: added.”

Configure/verify UPnP status at Windows UPnP panel

Windows XP

  • Step 1: Open up your web browser and enter your router IP Address in the Address box. Enter your username and password to login to your router. Enable UPnP.【Skip to the next step if you can not get access to your router settings】
    For more information about this step, please go to www.portforward.com - BitComet section and choose your router model.
  • Step 2: Go to My Network Places –> Network Tasks –> Show icons for networked UPnP devices, click “yes” when you are asked whether to show the icons or not.


How to check whether UPnP devices are successfully enabled:

  • (2.1): Go to Start –> Control Panel –> Add or remove programs –> Add/Remove Windows Components –> Networking Services –> Details….. Check if the check-boxes “Internet Gateway Device” and “Control Client and UPnP User Interface” are selected.


  • (2.2): Go to Start –> Control Panel –> Administrative tools –> Services. Make sure “SSDP Discovery Service” has the “started” status.


    Double-click it if that's not the case. Choose Automatic in the “start-up type”; click Start in service status, then click Apply and OK to save settings.


    Find “Universal Plug and Play Device Host” service and make the same settings with “SSDP Discovery Service”. Please do remember click “OK” to save settings.

  • (2.3): Go to Start –> Control Panel –> Windows Firewall –> Exceptions; Make sure “UPnP framework” is checked.


  • Step 3: Disable the Internet connection and then enable it again. You're supposed to see a balloon message above the system tray reminding you that new devices have been founded and, simultaneously, “Internet Gateway Devices” is displayed in the “Internet Connection” interface. 【If “Internet Gateway Device” is not shown, it's maybe as UPnP is not started in your router or it is blocked by a third party firewall.】


  • Step 4: In “Internet Connection”, right-click the icon of “Internet Gateway Device”, then click “Properties”. In the pop-up properties dialog, click “Settings”.


  • Step 5: In “Advanced”, click “Add”. Then in the following fields enter respectively: the service name, LAN IP address and BitComet's Listen port (internal and external), Protocol【TCP and UDP protocols need to be set independently. If eMule plugin is installed, you need to additionally add a listen port for it.】



Windows Vista and Windows 7

  • Step 1: Open up your web browser and enter your router IP address in the Address box. Enter your username and password to login to your router. Enable UPnP.【Skip to the next step if you can not get access to your router settings】
    For more information about this step, please go to www.portforward.com - BitComet section and choose your router model.

  • Step 2: Go to Start –> Control Panel –> Network and Sharing Center and make sure that “Network Discovery” is turned on. On Windows 7 you'll have to go to Start –> Control Panel –> Network and Internet –> Network and Sharing Center –> Advanced Sharing Settings to access the Network Discovery setting.


    How to check the settings are valid:
    • (2.1): Go to Start –> Control Panel –> Administrative Tools –> Services. Make sure that the “SSDP Discovery” service and “UPnP Device Host” services are “Started”. If they are not started or are disabled, double-click each one of them and change their “Start-up type” to “Automatic”.


    • (2.2): Go to: Start –> Control Panel –> Windows Firewall –> Exceptions and make sure that “Network Discovery” is checked. In Windows 7 go to Start –> Control Panel –> System and Security –> Windows Firewall –> Advanced Settings and on the active profile make sure that connections which do not match a rule are allowed (if they are not then we suppose that you know how to configure this on your own). Further go to the Inbound Rules page and make sure that Network Discovery SSDP-In and Network Discovery UPnP-In are allowed for the active profile.


  • Step 3:Disable your Internet Connection and then enable it again. Then Internet Gateway Devices should be displayed in the Network Computers and Devices window and under that section you should see an icon for your UPnP-enabled router. 【If Internet Gateway Devices can not be seen, it's