qBittorrent: How to Enable Port Forwarding
Match qBittorrent's listening port to a manual router rule or VPN-assigned port, test incoming connections, and fix firewall, Double NAT, or CGNAT failures.
Quick Answer
Open Tools > Options > Connection and set Port used for incoming connections to the exact port forwarded by your router or assigned by your VPN. Turn off Use a different port on each startup. For a manual router or VPN setup, also turn off qBittorrent's UPnP/NAT-PMP mapping so one method controls the port. A router rule should send both TCP and UDP on that port to the computer's reserved LAN address. A VPN rule does not need a home-router forward; the VPN provider must support port forwarding and qBittorrent must use its assigned port.
Using CGNAT or a VPN? Compare port-forwarding VPNsPlan Your qBittorrent Port Setup
Choose whether the incoming port comes from your router or a VPN. The planner creates a field-by-field reference and shows whether a router rule is required.
Use a reserved LAN address for this computer and create the TCP and UDP rule in the router that owns the public IPv4 address.
Reference only: enter these values manually in the router, application, or VPN client. Copying them does not import or apply the settings.
The qBittorrent Settings That Must Match
There is no universal best port for qBittorrent. Reliability comes from using one valid port consistently across qBittorrent, the inbound forwarding method, and the local firewall.
| Setting | Recommended value | Why it matters |
|---|---|---|
| Port used for incoming connections | Forwarded or assigned port | This value must exactly match the router rule or the current port supplied by a forwarding-capable VPN. |
| Use a different port on each startup | Off | A random new port breaks a static router rule and can also stop matching a VPN-assigned port. |
| Router protocol | TCP + UDP | qBittorrent can use both. If the router cannot choose Both, create separate TCP and UDP rules on the same number. |
| UPnP / NAT-PMP | One method only | Leave automatic mapping on only when it is your chosen method. Turn it off for a deliberate manual-router or VPN-assigned setup. |
How to Enable Port Forwarding in qBittorrent
First decide who supplies the incoming port. Router forwarding and VPN forwarding are different network paths and should not be combined blindly.
Choose router forwarding or VPN forwarding
Use router forwarding when your router owns a reachable public IPv4 address. Use VPN forwarding when the VPN provider explicitly offers an incoming port, especially when CGNAT or lack of router access blocks the normal path.
Choose or obtain one listening port
For a router, choose an unused high port from 49152 to 65535 or another valid port not reserved by a local service. For a VPN, use the exact port shown by the VPN app or provider; you usually cannot choose a different one.
Set the port in qBittorrent
Open Tools > Options > Connection on Windows or Linux. On macOS, open qBittorrent > Settings or Preferences > Connection. Enter the forwarded port in Port used for incoming connections.
Stop qBittorrent from changing the port
Clear Use a different port on each startup. When using a manual rule or VPN-assigned port, also clear Use UPnP / NAT-PMP port forwarding from my router so an automatic mapping does not compete with the fixed setup.
Create the matching router rule, if applicable
Reserve the computer's LAN IPv4 address, then forward the chosen port with TCP and UDP to that address and the same internal port. Skip this step in VPN mode because the VPN server, not the home router, receives the public connection.
Allow qBittorrent through the device firewall
Allow the qBittorrent application or its listening port on the active network profile. Avoid opening the port to unrelated programs, and confirm security software is not replacing the operating system firewall rule.
Restart and test while qBittorrent is running
Reconnect the VPN first if it assigns a new port per session, update qBittorrent when the assigned value changes, then leave qBittorrent open during the test. Confirm incoming peer connections over time rather than judging only by download speed.
How to Test qBittorrent Port Forwarding
A closed result is meaningful only when the intended network path and listener are active. Test the same way qBittorrent will actually run.
Keep qBittorrent running with the configured listening port. A checker cannot reach a port when the app is closed.
For router mode, test against the current public IPv4 from outside your home network and confirm the rule targets the computer's current LAN address.
For VPN mode, connect to a server or region that supports forwarding and use the port assigned during that exact VPN session.
Do not use torrent speed alone as proof. Swarm health, peer availability, disk limits, and ISP congestion can affect speed even when the port is reachable.
qBittorrent Port Forwarding Not Working
Most failures are a mismatch between the qBittorrent listening port and the system that actually owns the incoming connection.
| Symptom | Likely cause | What to do |
|---|---|---|
| The forwarded port and qBittorrent port differ | The router or VPN sends traffic to one port while qBittorrent listens on another. | Copy the forwarded or assigned value exactly into Tools > Options > Connection, then restart qBittorrent. |
| It works until qBittorrent restarts | Use a different port on each startup is enabled, or the VPN assigns a fresh port after reconnecting. | Disable qBittorrent's random port. If the VPN assignment changes, update qBittorrent after every reconnect or use the provider's supported automation. |
| Manual forwarding behaves inconsistently | UPnP/NAT-PMP is also trying to create or remove mappings automatically. | Use one method. Disable automatic mapping in qBittorrent when maintaining a manual router rule or VPN-assigned port. |
| The network path is correct but the port stays closed | The operating system firewall, security suite, or wrong network profile blocks qBittorrent. | Allow qBittorrent on the active profile or create a narrow inbound TCP and UDP rule for the selected port. |
| qBittorrent stops after changing VPN servers | The optional network-interface binding points to an interface that is no longer active. | Reconnect the intended VPN interface, confirm its name in Advanced settings, and update the binding only if the provider changed it. |
| Router mode fails behind an ISP gateway | Two routers perform NAT, but only the inner router has the forwarding rule. | Use bridge or passthrough mode, forward through both routers, or make one device the only router. |
| The router rule is correct but no outside peer can initiate | The ISP uses CGNAT, so the home router does not own the public IPv4 address. | Ask for a public IPv4 address or use a VPN that explicitly supplies a forwarded port. A VPN without that feature will not help incoming reachability. |
Router Port Forwarding vs VPN Port Forwarding
In router mode, the public connection reaches your router and is mapped to the computer's stable LAN address. In VPN mode, it reaches the VPN provider first and travels through the encrypted tunnel to qBittorrent; the home router sees an outbound VPN session and needs no matching inbound rule. If your router WAN IPv4 differs from your public IPv4, identify Double NAT or CGNAT before spending more time on a local mapping.
VPNs That Can Forward a qBittorrent Port
A forwarding-capable VPN can provide an incoming qBittorrent port when CGNAT, a mobile connection, campus Wi-Fi, or lack of router access blocks normal forwarding. Connect the VPN, obtain its assigned port, enter that exact value in qBittorrent, and keep the VPN session active.
Port forwarding is not a standard feature of every VPN, and support may depend on plan, app, operating system, or server region. A VPN without an assigned incoming port can hide your address but will not make qBittorrent reachable from unsolicited peers.
PureVPN
Offers port forwarding as an optional feature in supported setups. Enter the forwarded value in qBittorrent and verify current platform support.
Check availabilityPrivate Internet Access
Provides an assigned port in supported regions. Keep the PIA connection active and use that exact port as qBittorrent's listening port.
Check availabilityProton VPN
Supports port forwarding on eligible plans and platforms. Copy the active port from Proton VPN into qBittorrent after connecting.
Check availabilityqBittorrent VPN and Firewall Safety
- When using a VPN, consider binding qBittorrent to the VPN network interface in Advanced settings so traffic stops if that interface disappears.
- Use the VPN kill switch when available, but confirm it does not block the provider's forwarded-port mechanism.
- Treat the assigned port as session-specific unless the provider documents it as persistent. Recheck it after reconnecting or changing regions.
- Do not expose the entire computer with DMZ merely to improve peer reachability. A single listening port is enough.
qBittorrent Port Forwarding FAQ
How do I enable port forwarding in qBittorrent?
Open Tools > Options > Connection, enter the router-forwarded or VPN-assigned port in Port used for incoming connections, disable a different port on each startup, and ensure the same path is allowed through the firewall.
Does qBittorrent port forwarding use TCP or UDP?
qBittorrent can use both TCP and UDP. For a manual router rule, choose Both or create separate TCP and UDP rules on the same listening port.
What is the best port for qBittorrent?
There is no universal fastest port. Use the VPN-assigned port when applicable, or choose an unused valid high port for a router rule and keep it consistent. Swarm quality matters far more than the number itself.
Should I enable Use UPnP / NAT-PMP port forwarding from my router?
Enable it only when automatic router mapping is your chosen method and the router supports it. Disable it for a deliberate manual rule or VPN-assigned port so one method controls the mapping.
Do I need router port forwarding when qBittorrent uses a VPN?
No. With VPN forwarding, the incoming connection reaches the VPN server and travels through the tunnel. Use the provider-assigned port in qBittorrent and do not create the same rule on the home router.
How does qBittorrent port forwarding work with Proton VPN?
Connect using an eligible Proton VPN plan and supported app, read the active forwarded port, enter it as qBittorrent's listening port, and update it whenever the VPN assignment changes.
Where is the listening port setting on qBittorrent for Mac?
Open qBittorrent > Settings or Preferences > Connection, depending on the version, then set Port used for incoming connections to the forwarded value.
Why is qBittorrent port forwarding not working?
Check for a port mismatch, random port on startup, conflicting UPnP/NAT-PMP, a local firewall, an inactive VPN interface, a changed VPN assignment, Double NAT, or CGNAT.
Official and Technical Sources
These sources document qBittorrent's connection options, the official project, firewall rules, and the shared address range used by CGNAT.