How to immediately close all Internet connections just for qBittorrent using a script? (windows) #19671
Replies: 3 comments
-
can you use "netsh" to open and close the specific inbound/outbound tcp/udp ports that qBittorrent uses? Alternatively, in Windows you could create a virtual network adapter that is tied to your physical adapter - then in the qBittorrent advanced settings, you can force it to only use the virtual adatper. This way it's only a matter of enabling/disabling the viirtual adapter through a PowerShell script. |
Beta Was this translation helpful? Give feedback.
-
But would not dynamic nature of port assignments and the constant changes in network connections make it difficult to maintain such a broad and static block effectively when using netsh? I mean: today it works, but tomorrow it once again might stop - thus I will be forced to bother with checking my localports numbers and then adjusting my script? |
Beta Was this translation helpful? Give feedback.
-
Well? Can anyone comment on my findings? |
Beta Was this translation helpful? Give feedback.
-
I have this A-OK working PS1 script
which quickly disables Internet on my system. But I want to cut off network access just for qBittorent, so that I can with one click make the whole bandwidth be made available for whatever that I may need it for [and then with a counterpart script re-enable Internet access for qBittorrent whenever I will be ready]. Unfortunately so far I have been unsuccessful as e.g. this script
produces in PowerShell window this error
Is there a way to tackle just qBittorrent using PS1, BAT or VBS? Or AHK maybe?
Beta Was this translation helpful? Give feedback.
All reactions