New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bind to specific NW Adapter + disconnect/reconnect = no downloads #7540

Open
zybexXL opened this Issue Oct 3, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@zybexXL

zybexXL commented Oct 3, 2017

Using QBittorrent 3.16 on Windows 10.

I use a VPN which creates a virtual Network adapter (PIA). I have QBittorrent setup to bind only to this NW interface, with "Optional IP address to bind" set to "All addresses". This works well, all traffic goes via VPN.

Issue:
If VPN is disconnected/drops, and then reconnects, Qbittorrent no longer does any download/upload. It will only recover after restarting Qbt.

With VPN disconnected, I can see in netstat that Qbt is still binding a port to the interface (listening). If I go to Settings and try to change the port, it will not change, same port remains attached.
After I reconnect the VPN, the same port still remains binded (bound?), and changing the port in Settings still doesn't work. So it seems Qbt is stuck with a stale socket and cannot bind a new port to the interface.

The IP address of the VPN Interface doesn't usually change with disconnect/reconnect.

It's likely this behavior can also be reproduced without VPN, with a regular NW adapter -> just select the network adapter in the "Advanced -> Network Interface" option and then disable/enable it to test.

@Phibonacci

This comment has been minimized.

Show comment
Hide comment
@Phibonacci

Phibonacci Oct 29, 2017

qBittorrent 3.3.16 on Windows 10 with OpenVPN

It seems Internet Provider temporally disable my Internet connection when it detects a traffic that looks like Bittorrent download.
Whenever I start a download I get a lot of disconnections lasting for around two minutes. Since I am using a VPN and forced qBittorrent to only connect to its interface, I need to restart qBittorrent every time there is a disconnection (every 10 minutes).

Could you advise me on what part of the code I should look at to make qBittorrent reconnect automatically?

Phibonacci commented Oct 29, 2017

qBittorrent 3.3.16 on Windows 10 with OpenVPN

It seems Internet Provider temporally disable my Internet connection when it detects a traffic that looks like Bittorrent download.
Whenever I start a download I get a lot of disconnections lasting for around two minutes. Since I am using a VPN and forced qBittorrent to only connect to its interface, I need to restart qBittorrent every time there is a disconnection (every 10 minutes).

Could you advise me on what part of the code I should look at to make qBittorrent reconnect automatically?

@naodesu

This comment has been minimized.

Show comment
Hide comment
@naodesu

naodesu Mar 4, 2018

Same problem on Windows 8.1
I'm using OpenVPN and "bind to interface" option in QBT.
But in my case internal IP on interface is usually change.

naodesu commented Mar 4, 2018

Same problem on Windows 8.1
I'm using OpenVPN and "bind to interface" option in QBT.
But in my case internal IP on interface is usually change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment