Connection fails after enabling vpn #17266

Open
opened 2026-02-22 03:45:39 -05:00 by deekerman · 3 comments
Owner

Originally created by @AustinPoulson on GitHub (Nov 1, 2025).

qBittorrent & operating system versions

v5.1.2
Windows 11
ProtonVPN
Tunnel set to ProtonVPN
(problem impacts a wider range of configurations)

What is the problem?

When connecting the computer to a vpn, with qBittorrent already open, the torrent applications connection fails. Restarting qBittorrent refreshes and fixes the connection.

Image

This issue affects startup. If the vpn app opens after the torrent app, the connection will fail.

This behavior may be limited to when the Network Interface setting is set.

Steps to reproduce

  1. Open the application.
  2. Ensure the Network Interface is set to the vpn application.
  3. Open and connect to the vpn.
  4. Notice the torrent application connection isn't established.

Additional context

Potential fix:

  • Add a retry mechanism that automatically retries the failed connection on a fixed interval.

Log(s) & preferences file(s)

Privacy, sorry.

Originally created by @AustinPoulson on GitHub (Nov 1, 2025). ### qBittorrent & operating system versions v5.1.2 Windows 11 ProtonVPN Tunnel set to ProtonVPN (problem impacts a wider range of configurations) ### What is the problem? When connecting the computer to a vpn, with qBittorrent already open, the torrent applications connection fails. Restarting qBittorrent refreshes and fixes the connection. <img width="54" height="40" alt="Image" src="https://github.com/user-attachments/assets/d16a972c-2c81-42ba-8562-8af6d70f4f6e" /> This issue affects startup. If the vpn app opens after the torrent app, the connection will fail. This behavior may be limited to when the Network Interface setting is set. ### Steps to reproduce 1. Open the application. 2. Ensure the Network Interface is set to the vpn application. 3. Open and connect to the vpn. 4. Notice the torrent application connection isn't established. ### Additional context Potential fix: - Add a retry mechanism that automatically retries the failed connection on a fixed interval. ### Log(s) & preferences file(s) Privacy, sorry.
Author
Owner

@LazyPajen commented on GitHub (Nov 1, 2025):

I am using https://github.com/UHAXM1/Quantum to fix this

@LazyPajen commented on GitHub (Nov 1, 2025): I am using [https://github.com/UHAXM1/Quantum](url) to fix this
Author
Owner

@AustinPoulson commented on GitHub (Nov 2, 2025):

@LazyPajen That worked! Thank you!

Still would be cool if this was fixed without the extra utility though.

@AustinPoulson commented on GitHub (Nov 2, 2025): @LazyPajen That worked! Thank you! Still would be cool if this was fixed without the extra utility though.
Author
Owner

@lucassantillifuck2fa commented on GitHub (Nov 16, 2025):

qbittorrent already retries in real time, whenever i disconnect and reconnect ProtonVPN the connection icon changes immediately.
But since Proton uses dynamic port, the only solution is to use a third party solution to sync the VPN and the client.
I have created my own tool, it runs in the background waiting for Proton to connect, once it's running, qbittorrent's port is modified and the client starts, and then the tool exits. I like it better than Quantum because it's fully automatic and auto closes when it's done the job.

@lucassantillifuck2fa commented on GitHub (Nov 16, 2025): qbittorrent already retries in real time, whenever i disconnect and reconnect ProtonVPN the connection icon changes immediately. But since Proton uses dynamic port, the only solution is to use a third party solution to sync the VPN and the client. I have created my own tool, it runs in the background waiting for Proton to connect, once it's running, qbittorrent's port is modified and the client starts, and then the tool exits. I like it better than Quantum because it's fully automatic and auto closes when it's done the job.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#17266
No description provided.