mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-03-02 22:57:32 -05:00
VPN interface sometimes changes after rebooting qBittorrent. 'The configured network interface is invalid. Interface: "iftype53_32768"' #17076
Labels
No labels
Accessibility
AppImage
Bounty
Build system
CI
Can't reproduce
Code cleanup
Confirmed bug
Confirmed bug
Core
Crash
Data loss
Discussion
Docker
Documentation
Duplicate
Feature
Feature request
Feature request
Feature request
Filters
Flatpak
GUI
Has workaround
I2P
Invalid
Libtorrent
Look and feel
Meta
NSIS
Network
Not an issue
OS: *BSD
OS: Linux
OS: Windows
OS: macOS
PPA
Performance
Project management
Proxy/VPN
Qt bugs
Qt6 compat
RSS
Search engine
Security
Temp folder
Themes
Translations
Triggers
Waiting diagnosis
Waiting info
Waiting upstream
Waiting web implementation
Watched folders
WebAPI
WebUI
autoCloseOldIssue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/qBittorrent#17076
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lw4242 on GitHub (Aug 14, 2025).
qBittorrent & operating system versions
qBittorrent: v5.1.2
Operating system: Windows 11 Pro 24H2 26100.4652
ProtonVPN client version: 4.2.1
What is the problem?
I am finding sometimes when rebooting qBittorrent there are no connections even with the correct port bound. In these cases when I go to look at the network interface options, "ProtonVPN" appears twice in the drop down, and selecting the 'other' ProtonVPN restores normalcy (and the 'original' ProtonVPN entry disappears). This seems to be a well documented issue that is easily fixed in the GUI, but I run a script that reboots qBittorrent daily so I am running into it a lot. In the most recent incidence of this problem, the following appears in qBittorrent.log:
I then selected the 'other' ProtonVPN from the dropdown and looked at qbittorrent.ini. The interface now shows up as
I'm not entirely sure how to interpret this. I've confirmed the ProtonVPN client has not updated from before to after this error occurs, however it is configured to connect to a random server on each startup.
As a workaround, does anyone know how I can determine from qBittorrent's settings files which of these iftype53 values is correct (i.e. is there a way I can programmatically identify what the Session\Interface value should be for the 'other' ProtonVPN entry, seeing as both appear as Session\InterfaceName=ProtonVPN)? Worth noting I did also have this problem with NordVPN occasionally so I don't think it is Proton that is the issue (or if it is then NordVPN is affected by the same problem)
Thanks in advance!
Steps to reproduce
This issue happens after qBittorrent is rebooted. I also restart my VPN simultaneously via script and the problem only occurs intermittently so I am not sure how to reproduce
Additional context
No response
Log(s) & preferences file(s)
qBittorrent.txt
qbittorrent.log
@lw4242 commented on GitHub (Aug 14, 2025):
Ok so it seems to be to do with the adapter token being renamed when Windows re-enumerates it for whatever reason. I (well, mostly AI) wrote some Python code to get and set the correct token into qBittorrent.ini (Session\Interface=XXXXXXXXX). When run before starting qBittorrent this should fix the problem, but it won't fix the problem if it happens while qBittorrent is running. Note also that qB appears to rewrite the loaded configuration file on close so qB needs to be closed when this snippet of code is run.
Furthermore if you close qBittorrent and set Session\Interface to something invalid it will reproduceably cause the fault with two ProtonVPN entries appearing in the dropdown, and then if you close qB, run this script and then re-open qB it will reproduceably correct the problem.
@freonpsandoz commented on GitHub (Nov 8, 2025):
For those who aren't Python programmers, is there a simple way in powershell to put the correct value of Session\Interface in qBittorrent.ini? I manually replaced the "iftype53_32769" value in the ini file with the value "iftype53_32768" obtained from the powershell command "Get-NetAdapter | Format-List -Property *" and this worked.
I have also been able to correct the problem from inside qB by changing the network interface to "any interface" and then changing it back to the desired VPN interface.
I notice that Session\InterfaceName in the ini file is correct. Would it be possible for qB to use that name if Session\Interface is invalid?