Add Port Mapping in NAT Router
From BitComet Wiki
To get the best speeds, BitComet needs a 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 and forwarding a port for BitComet. Firewall configuration 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 manual.
Fortunately many routers support Universal Plug and Play (UPnP), which simply allows BitComet to open a port on the router automatically without user intervention, then close the port when the port 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, use of UPnP configuration is enabled in BitComet.
Also you can manually configure port mapping at Windows UPnP panel. If after that, you find that you are still in a firewalled state, then it likely means your router does not support UPnP, or includes an implementation incompatible with the UPnP used by BitComet. If this is the case, then it is recommended that you disable UPnP in BitComet, set up a static IP, and forward your ports manually.
Contents |
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."
Manually Configure Port Mapping at Windows UPnP panel
Windows XP
- Step one: 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 two: In My Network Places: Network Tasks->Show icons for networked UPnP devices, click "yes" when you are asked whether to show the icons or not.
Tip: How to check whether UPnP devices are successfully enabled or not:
- (1) 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) Start->Control Panel->Administrative tools->Services. Make sure "SSDP Discovery Service" has the "started" status.
If that's not the case double click it. 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.
- (3) Start->Control Panel->Windows Firewall->Exceptions: Make sure " UPnP framework" is checked.
- Step three: 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 four: In "Internet Connection", right-click the icon of "Internet Gateway Device", then click "Properties". In the pop-up properties dialog, click "Settings".
- Step Five: 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.】
- Step Six: After all the above settings are done, please go to the router to view the settings' result.【Users who can not get access the router settings, see whether port mapping is successfully set 】
Users who do not know how to view the results in your router, please go to www.portforward.com - BitComet section for more details.
Windows Vista
- Step One: Login to your router to start UPnP.【Skip to the next step if you can not get access to your router.】
- Step Two: Start-> Control Panel-> Connection and share center: Start "Connection Discovery".
- Tip: How to check the settings are valid:
- (1) Start-> Control Panel-> Administrative Tools-> Services. Make sure "SSDP Discovery" is "started".
- (2) Start-> Control Panel-> Windows Firewall-> Exceptions: Make sure "Connection discovery" is checked.
- Step Three: Disable "Internet Connection" and then enable it again. Then "Internet Gateway Devices" should be displayed in the "Internet Connection" interface. 【If "Internet Gateway Devices" can not be seen, it's maybe as UPnP is not enabled on your router or it's blocked by a third party firewall.】
- Step Four: "Internet Connection", right-click the icon of "Internet Gateway Devices", and then click "Properties". In the pop-up properties dialog, click "Settings".
- Step Five: in "Advanced", click "Add". Then in the following fields enter respectively: the service name, LAN IP address and BitComet 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.】
- Step Six: After all the above settings are done, go to the router web interface to view the settings results.【Users who can not get access to the router settings page, see whether port mapping is successfully set 】
Manually Configure Port Mapping at Router setup page
Note: This is a guide for Router Users only. If you're unsure of whether or not your Modem incorporates a router functionality in it as well, please type up your brand and model number in Google, and search for it.
OR
To check whether you have a MODEM or a ROUTER, follow these instructions below:
- Click on Start ---> Run ---> type cmd ---> press Enter or OK ---> type ipconfig -> press Enter.
- Have a look at your IP address and Default Gateway numbers.
- If these numbers are different [i.e. Gateway: xxx.xxx.x.1 & IP address:xxx.xxx.x.2] then you have a Router;
OR
- If these numbers are exactly the same, then you have a Modem and you don't need to read this part.
A lot of users who have recently installed routers due to the switching of Internet connections (i.e. from Dial Up to ADSL or ADSL to Cable) may notice that any program which requires access to the Internet constantly (i.e. BitComet) will receive extremely slow speeds such as 10 KB/s even. The cause is 100% due to specific (or even all) ports within any router being blocked. Some router users may believe that it's a torrent client issue, or even an ISP issue, but rather it's all due to the configuration of the router itself. Switching to another client like uTorrent or Azureus will not help fix the issue of getting slow torrent speeds. In fact BitComet is one of the friendlier clients for users who are blocked by routers.
Also note that static IP refers to static LAN IP, which is different and unrelated to WAN IP. Your LAN IP address is the identifier of your computer within your local network, but is not public for anyone else to see, besides the other computers within your network. Your WAN IP address is the IP address that people outside of your network see, but it does not reveal the internal IP address allocation on your LAN, which may contain multiple computers, each (naturally) having their own LAN IP. In the context of setting up a static IP for port forwarding, your WAN IP is irrelevant, and is normally not used in any step along the way.
Now onto the actual steps:
- Firstly, no matter which brand your router is, you will need to set up a static IP on the PC that will be using BitComet. By setting a static IP, you are forcing your router to always give your PC the same IP Address. If you don't do this then every time you restart your PC it may have a different IP Address which is undesirable for port forwarding.
Click on Start ---> Run ---> Type cmd -> press Enter or OK ---> at the command prompt type ipconfig/all -> press Enter.
- Then you should see about 6-8 lines popping up:
Copy the items you see in the red boxed area:
- IP Address:
- SubNet Mask:
- Default Gateway:
- DNS Servers: (some users may have 2, be sure to copy both of them!)
- Next, click on Start ---> My Network Places. Under "Network tasks" on your left panel, click on "View Network connections". Now, this is the slightly hard part: locate the network that YOU use to access the Internet.
- Once you've located it, double-click that connection, click Properties --> Scroll down the window till you locate Internet Protocol TCP/IP.
- Next, click Properties, and an extra window should pop-up. As shown below:
- Next, click: "Use the following IP addresses". Here input what you saw in the MS-DOS command window when you typed in: ipconfig/all.
The DNS server addresses will be entered separately, click Use the following DNS server addresses, and input your DNS server(s). Once you've done that, click OK, then Close.
- Next, Head to www.portforward.com - BitComet section and locate your router's model/brand and follow the instructions on-screen.
- When you come to the step where it states "Please enter the static IP you want to forward to:" And it's 192.168.x.[ ] Input the last digit of your IP address into the space. The Static IP is the same IP Address as the one you saw in MS-DOS when you typed: ipconfig/all.
Speed maximization tip: If you wish to maximize the speed attained through BitComet, please use any single port between 49152 to 65534. Input the port number into BitComet's listening Port tab.
Once you've completed the steps at portforward.com, your BitComet client should now be functioning at its maximum capability. Just a reminder, the port you configured with YOUR router, is the port that must be input into BitComet. Options --> Connections --> Listen Port
Further Information: The following are common IPs for different routers that you will need to input into your web browser in order to access your Router's setup page within the PortForward step. These are just common IPs, your router's IP may be different which you can check using ipconfig.
Asus, Draytek, Linksys, Zyxel, Cisco, WooWeb-Pro http://192.168.1.1/
Belkin, SMC (some browsers need :88 added) http://192.168.2.1/ (http://192.168.2.1:88)
DLink, NetGear, Nexland http://192.168.0.1/
LAN user check whether port mapping is successfully set?
As long as one of the following conditions is met, it means the port mapping is correctly done:
1. BitComet's user interface -> Detailed Info Pane -> Statistics: check the NAT port mapping's value. "Added" means port mapping is added.
2. BitComet's user Interface -> Status Bar, check the status light there. A green light means port mapping was successfully performed.
3. When there is an active BT task in the tasklist, check Detailed Info Pane -> Peers. If there is any "Remote " in the "Initiation" column, it means the port mapping is added.
| Languages: |
English • 中文(简体) |

