Proton VPN homepage

Port forwarding

Reading
9 mins
Category
Port forwarding

Port forwarding allows incoming connections from the internet to reach your device through Proton VPN’s firewall. Learn more about how port forwarding works

PlansPlatforms
All paid Proton VPN plans. Get VPN PlusWindows, macOS, Linux

In this article

How port forwarding works

A port is a numbered doorway that allows specific apps on your device to send and receive information over the internet. When you use a VPN, it acts like a locked gate, blocking any incoming connections you didn’t specifically ask for. 

Port forwarding creates a controlled path through that gate. It’s mainly used for P2P apps like BitTorrent, but it can also improve performance for online gaming. When you turn it on, the VPN server picks a random port number and opens it for incoming traffic. Any data sent to that port is passed through the VPN connection to your device.

Opening a port carries a small risk. See port forwarding security considerations for more details.

Enable port forwarding

Before you get started

  1. These instructions explain how to connect to a P2P (peer-to-peer) VPN server and enable port forwarding. You must be connected to a P2P server for port forwarding to work.
  2. Once you’ve enabled port forwarding, you’ll need to configure it in your torrent app.
  3. Port forwarding is not compatible with NAT type 2 (moderate NAT).

Windows

1. Open Proton VPN and select the CountriesP2P tab on the left sidebar. 

2. Connect to any country, city, or server from the list. 

How to port forward on Windows 1

3. Click Port forwarding on the right sidebar.

How to port forward on Windows 2
You can also access port forwarding from the Settings (⚙) menu.

4. Toggle the Port forwarding switch on. Click Apply.

How to port forward on Windows 3
We also recommend enabling Notifications so you can get notified whenever your Active port number changes.

Port forwarding is enabled. To see your active port number, hover over Port forwarding on the right sidebar.

How to port forward on Windows 4

You’ll need this number to configure port forwarding in third-party apps (for example, a BitTorrent client).

The port number usually changes when you reconnect to VPN. You’ll need to update your torrent client whenever this happens.

macOS

Port forwarding on macOS is an early-access feature.

1. Open Proton VPN and go to Countries.

2. Connect to any country, city, or server marked with the P2P icon ( ⇄).

Mac app showing dozens of P2P servers based in Phoenix, Arizona.

3. Now, click the Port forwarding shortcut.

The Mac app highlighting the port forwarding button on the home screen.
You can also access port forwarding from the Settings (⚙) menu.

4. Click Port forwarding On.

Port forwarding is enabled.

Your active port number will appear underneath the Port forwarding On button.

You’ll need this number to configure port forwarding in third-party apps (for example, a BitTorrent client).

The port number usually changes when you reconnect to VPN. You’ll need to update your torrent client whenever this happens.

Linux (GUI) app

1. Open Proton VPN and go to Countries.

2. Connect to any country, city, or server marked with the P2P icon ( ⇄).

P2P servers are clearly labeled in the Linux app

3. Now go to SettingsFeatures

4. Toggle the Port forwarding switch on.

Port forwading on our Linux app.

Port forwarding is enabled. Your active port number shows in the information panel at the top of the main app window.

The active port number is shown on the main screen
The active port number is also written to the file: /run/user/$UID/Proton/VPN/forwarded_port. This can be useful for triggering automated tasks, like updating torrent client configuration when the port number changes.

You’ll need this number to configure port forwarding in third-party apps (for example, a BitTorrent client).

The port number usually changes when you reconnect to VPN. You’ll need to update your torrent client whenever this happens.

Linux CLI

Note: Enabling port forwarding for Linux CLI is a two-stage process.

1. Enable port forwarding in the CLI

Open a terminal window and run:

protonvpn config set port-forwarding on

If you were already connected to the VPN, you’ll need to reconnect for the new setting to take effect.

2. Configure port forwarding

Follow the instructions from Step 2: Linux in our How to manually set up port forwarding guide.

OpenVPN and WireGuard® configuration files

Learn how to manually set up port forwarding on devices that connect to Proton VPN with OpenVPN or WireGuard® configuration files

Configure port forwarding in your BitTorrent client

Before you get started

  1. Instructions for some popular Windows torrent apps are listed below, but port forwarding works with any BitTorrent client.
  2. To prevent IP leaks while you’re torrenting, make sure qBittorrent is bound to the correct interface.
  3. You’ll need to disable UPnP (Universal Plug and Play) and NAT-PMP (Network Address Translation Port Mapping Protocol), as they can conflict with Proton VPN.

qBittorrent

1. Enable port forwarding in your Proton VPN app.

2. Open qBittorrent and go to ToolsOptionsConnection.

3. Disable Use UPnP / NAT-PMP port forwarding from my router.

4. In the Port used for incoming connections field, enter the active port number shown in the Proton VPN app.

Eenable port forwarding in qBittorrent

5. Click OK.

Vuze

The screenshots show Vuze in Beginner Mode(new window), but the steps are identical for all modes.

1. Enable port forwarding in your Proton VPN app.

2. Open Vuze and go to ToolsOptionsPluginsUPnP

3. Uncheck Enable UPnP.

Disable uPnP in Vuze

4. Stay on the Options page and click Connection.

5. Enter the active port number shown in the Proton VPN app.

Set listen port in Vuze

6. Click Save.

uTorrent (Classic)

1. Enable port forwarding in your Proton VPN app.

2. Open uTorrent and go to OptionsPreferencesConnection.

3. Uncheck Enable UPnP port mapping and Enable NAT-PMP port mapping.

Disable UPnP and NAT_PMP in uTorrent

4. In the Port used for incoming connections field, enter the active port number shown in the Proton VPN app.

Set listening port in uTorrent

5. Click Apply.

Port forwarding security considerations

Port forwarding opens a path for incoming connections to reach your device.

This does carry a small security risk, however that risk is very low — especially for everyday use cases like torrenting and gaming.

Proton VPN’s port forwarding is designed to protect your privacy and is not vulnerable to known attacks such as Port Fail.

Any issues that could occur would usually be limited to the app using the port. So the level of risk depends on how you’re using the port. For example:

  • A file-sharing apps could expose shared files.
  • A remote access tool could allow broader control if not properly secured

To stay safe:

  • Only use trusted apps from reliable sources
  • Keep your apps up to date
  • Avoid opening ports you don’t need

A note about online port checkers

Online port checker tools allow you to check for open ports on your device and verify that port forwarding is working correctly. However, open ports can only be detected if an application is actively listening on that port.

How port checking tools work

1. Connection attempt: The tool sends a request to establish a connection to the specified port on your public IP address. When using a VPN, this will be the IP address of the VPN server.

2. Response analysis: It will then wait for a response:

  • Open: If an application is actively listening on that port and port forwarding is working correctly, the port checker will successfully establish a connection and mark the port as open.
  • Closed or Filtered: If no application is listening on the port, or if our firewall is blocking the connection (for example, if port forwarding is not working correctly), the port checker will either receive a “connection refused” message or the connection will time out. In these cases, the port will be reported as closed or filtered.

Example

Using the Proton VPN port forwarding feature, you open port 44375 in our NAT firewall. However, until you configure an app to listen on that port, an online port checker tool will return a closed or filtered result.If you configure an app to listen on port 44375 (such as a torrent client) and check again, the port checker tool will connect to the app and return an open result.