DC++ FAQ » Configuration

ID #1044

How can I configure DC++ to use UPnP?

Universal Plug and Play (UPnP) is only currently supported on the Windows XP platform. In addition, you also need UPnP capable hardware (typically a broadband router using NAT traversal). If you meet both of these requirements, setting up DC++ is normally a simple process. UPnP support is only in DC++ 0.4033 and later.

To enable UPnP

  1. Click on File and then Settings. Click on Connection Settings.
  2. Select Firewall with UPnP. Note: On older versions of DC++, it's located in the Advanced section of Settings and entitled Use UPnP control.
  3. Restart DC++.
  4. If your UPnP system is setup correctly, DC++ will now automatically create the required port mappings for DC++ to operate in Active Mode. It will also detect your external IP address and switch into Active Mode.

If UPnP works successfully or unsuccessfully, fill out this form so other users can know which set ups work.


If you are having trouble getting this all to work or see messages in the DC++ log like Failed To Create Port Mappings, and you are sure you meet the minimum requirements mentioned above, download the UPnP diagnostic tool. You can get it here. This tool will tell you what network interfaces on your computer support UPnP. If none of your network interfaces are reporting UPnP capabilities, try the following suggestions:

  1. Ensure your UPnP hardware has the UPnP service switched on (some routers default to off), consult your manufacturers documentation.
  2. Ensure Windows UPnP services (Control Panels -> Admin Tools -> Services) are running. "Universal Plug and Play Device Host" and "SSDP Discovery Service". Both of these XP services should be set to "Automatic" startup and "Started" status:
  3. Switch on the UPnP User Interface. To do this: Open "My Network Places", and in the Network Tasks Panel, select Show icons for networked UPnP devices.

    If UPnP is working, you should see your routers name in My Network Places:

    Also, when you go to: Start | Settings | Network Connections, you should see Internet Connection listed under the Internet Gateway category.

  4. Reboot both your PC and your UPnP device (router).
  5. If you do not see your router as a network device in "My Network Places" after several minutes, UPnPTest will fail to create an UPnP mapping to the router, resulting in something looking like: INFO: Adapter #0 - - UPnP Disabled. Make sure the windows firewall or your third party firewall is not blocking UPnP packets.

    Windows XP Firewall:
    Go to Control Panels -> Windows Firewall -> Advanced Tab -> Security Logging -> Settings. Enable Log Dropped Packets. The log file is located at C:\WINDOWS\pfirewall.log If you see any packets being dropped with the port 1900 or 2869, the the firewall is misconfigured and is preventing UPnP from working.

    Third Party Firewall:
    Checking this setting varies widely between firewalls. Most decent firewalls have some sort of logging function, where one can see what the firewall is blocking. Look for "UPnP" or ports 1900 and 2869.
    At the time of this writing, I know Norton Internet Security 2005, blocks UPnP and does not log it. Read its FAQ on how to unblock.
  6. If the diagnostic tool is now still not reporting any UPnP devices, you should start considering more drastic actions like upgrading your router firmware, as many routers have UPnP implementation bugs.

Initial content submitted by mgillespie

DC++ Change Log Related Entries:
0.69: No longer fallbacks to passive mode on failed UPnP.
0.670: Some UPnP fixes (thanks nils maier); Hopefully fixed an UPnP crash.
0.669: Hopefully fixed an UPnP crash
0.666: Fixed a crash in the upnp code
0.4033: Added UPnP support (thanks mark gillespie)

Last update: 2006-08-24 19:47
Author: BSOD2600
Revision: 1.1

Print this record Print this record
Send to a friend Send to a friend
Show this as PDF file Show this as PDF file
Export as XML-File Export as XML-File

Please rate this entry:

Average rating: 4 from 5 (22 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry