# Connection settings

Use these settings to properly configure DC++ for incoming and outgoing connections. Your incoming connection type must be correctly chosen for downloads to work. If unsure about these settings, you may want to follow the connection setup part of the Get Started guide.

## Incoming connection settings

Direct connection
  Select this mode if your computer is hooked directly to the internet. Do not select this mode if you have a router (external firewall).
Firewall with UPnP
  Select this mode if you are behind a firewall that supports the UPnP standard for program auto-configuration. DC++ will automatically open the ports it needs and obtain your external IP address. This mode is not available on operating systems before Windows XP, as it was the first version to have UPnP support. There is a guide to configuring UPnP.
Firewall with manual port forwarding
  Select this mode if you are behind a firewall (router), and will set up the TCP and UDP port forwarding on your own. You will need to specify the external IP address of your router using the setting below if you want downloads to work properly. Use this guide to set up active mode.
Firewall (passive, last resort)
  Select this mode if none of the previous options apply. In this mode, DC++ will not try to make inbound connections, only outbound ones. This mode carries some limitations:
  - only 5 results per user will be returned in response to searches;
  - you will not be able to download from other passive users.

### Options

Ports
  TCP
    This is the port that DC++ listens on for incoming client connections. If this setting is blank, DC++ will use a random port between 1025 and 32000.
  UDP
    This is the port that DC++ listens on for incoming search results. If this setting is blank, DC++ will use a random port between 1025 and 32000.
  TLS
    This is the port that DC++ listens on for TLS connections. If this setting is blank, DC++ will use a random port between 1025 and 32000. If specified, it should be a different port value than TCP or UDP.
External / WAN IP
  If you're directly connected to the internet, DC++ will tell remote users to connect to your local IP. Fill in this box only if you need to override the auto-detection. Ordinarily, only users behind a home router (NAT device) will need to fill in this box. If you put a DNS name here, DC++ will try to resolve it into an IP address before use.
Don't allow hub/UPnP to override
  Enable this to always use the IP address in "External / WAN IP", and not let either UPnP or connected hubs change it.

## Outgoing connection settings

Direct connection
  Select this mode if you can make unrestricted outbound connections. This includes connecting to any IP address on any port.
SOCKS5
  Select this mode if you want to make outbound connections through a SOCKS proxy. The caveats for Firewall (passive) mode also apply here. SOCKS5 proxies are not the same as HTTP proxies. DC++'s SOCKS5 support does not include GSSAPI.

### Options

Socks IP
  This is the IP, not host name, of your SOCKS5 server.
Port
  The port that your SOCKS5 server runs on. The default is 1080.
Login
  Login name for the SOCKS5 proxy; may be required.
Password
  Password for the SOCKS5 proxy; may be required.
Use SOCKS5 server to resolve host names
  Enable this to use the SOCKS5 proxy, instead of the local name server, to resolve host names into IP addresses.