Skip to content
Software

How to bind qBittorrent to your VPN, so it stops when the VPN drops

To bind qBittorrent to your VPN, open Tools, then Options, then Advanced, and change Network interface from "Any interface" to your VPN's adapter. qBittorrent can then only connect through the VPN, so if the VPN drops, every torrent stops instead of carrying on over your normal connection.

A VPN's own kill switch does a similar job, but it relies on the VPN app noticing the drop in time. Binding is built into qBittorrent itself, and it doesn't depend on anything else working.

Set the network interface

  1. Connect your VPN first. Its adapter may not show in the list until it's connected.
  2. In qBittorrent, open Tools, then Options (or press Alt + O).
  3. Click Advanced at the bottom of the list on the left.
  4. Find Network interface, and choose your VPN's adapter from the list (see below for the usual names).
  5. Leave Optional IP address to bind to on All addresses.
  6. Click OK, then close qBittorrent completely and open it again. The change only takes effect after a restart.

Which adapter is my VPN?

The list shows every network adapter on your PC, and the VPN's is rarely labelled "VPN". These are the usual names, though they can change between versions:

  • NordVPN: NordLynx (or OpenVPN Data Channel Offload, if you've switched it to OpenVPN).
  • Proton VPN: ProtonVPN.
  • Mullvad: Mullvad.
  • Surfshark: SurfsharkWireGuard.
  • Other WireGuard or OpenVPN apps: usually the name of the tunnel, or a name with TAP or TUN in it.

Not sure? Disconnect the VPN and open the list, then connect it and open the list again. The name that appears is the one you want. Your normal connection is the one called Ethernet or Wi-Fi, so don't pick that.

Check that it's working

  1. Start a well-seeded, legal torrent, such as a Linux download, and wait until it's downloading.
  2. Disconnect your VPN.
  3. Within a few seconds, the download speed should fall to zero, and the status should change to Stalled.
  4. Reconnect the VPN, and the download should pick up again by itself.

If the download carries on with the VPN off, the wrong adapter is selected, or qBittorrent hasn't been restarted since you changed it.

Everything stalled after a VPN update? VPN apps sometimes rename their adapter when they update, or when you change protocol. qBittorrent is then tied to an adapter that no longer exists. Go back to Network interface, and pick the new name.

Questions

Do I still need the VPN's kill switch?

It does no harm to leave it on, as it protects everything else on the PC too. But for qBittorrent, binding is the more reliable of the two.

Why did all my torrents stop after I set this?

The VPN isn't connected, or the adapter has changed name. qBittorrent is doing what you asked: no VPN, no traffic. My guide to Stalled and Queued in qBittorrent covers the other causes.

Does binding slow downloads down?

No. It only decides which connection qBittorrent is allowed to use. Any slowdown comes from the VPN itself.

Does this work on Mac and Linux?

Yes. The setting is in the same place. The adapter names differ: look for one starting with utun on a Mac, or wg or tun on Linux.

More qBittorrent guides: the best settings for faster downloads, queueing and download priority, and stopping seeding when a download finishes.