qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
26.18k stars 3.84k forks source link

Ability to bind only to specific network interfaces #12596

Open bakadave opened 4 years ago

bakadave commented 4 years ago

Please provide the following information

qBittorrent version and Operating System

v4.2.4 Windows x64 fully updated

If on linux, libtorrent-rasterbar and Qt version

N/A

What is the problem

My laptop has a built in 4G modem and a SIM card but no unlimited data. The 4G interface is usually enabled and is managed by Windows (Ethernet and wifi is used first and only switches to mobile if those are unavailable). Regardless if Ethernet or wifi is available qBittorrent will use apparently ALL available interfaces to download, resulting in significant data usage and usually reduction of my mobile service after the data cap is reached.

Advanced settings allows me to select a single interface to download on but because I use Ethernet and wifi intermittently it just results in needlessly stalled downloads when it could be downloading over wifi. It would be better to exclude certain interfaces but enable others.

What is the expected behavior

Add a setting to Advanced Options to select a network interface never to be used.

Steps to reproduce

1- Add a mobile network interface (such as a USB stick) to your computer and have it enabled in Win10 system tray menu. 2- Start a download with qBittorrent. 3- Mobile data usage will accumulate (albeit somewhat slowly).

Extra info(if any)

Screenshot_10

zecanard commented 4 years ago

Similar to #639.

bakadave commented 4 years ago

Similar to #639.

thanks, I looked around but couldn't find that one

Weegley commented 2 years ago

So it's 2022 now and feature wanted by users from 2013. Ever to see it or not? For me it would be very useful on seedbox which is actually Keenetic router, and have bunch of interfaces (own bunch of interfaces for lan,wlan, etc., plus Wireguard vpn, Cloudflare Warp vpn, tunnelbrocker connections for 6in4...), and i really need to use only 3(!) of them - wired ISP connection, LAN of-course, and 6-in-4 tunnel. But that's i have now: https://pastebin.com/6FPerpnB Either listening everywhere, or limit by 1 interface...

jannisbecker commented 3 months ago

I've used multiple VPNs that for some reason or another sometimes create a or use new network interface under Windows. So for example, I will have "Proton VPN" and "Proton VPN1" or sometimes they might use TAP or TUN, and stuff like that. It's not just Proton, I've seen privateinternetaccess and Mullvad do the same thing.

This feature would allow me to "whitelist" all of them, but blacklist the rest (like my physical interface). Right now, qbit will just stop working if my VPN happens to listen on a different interface.