Can i somehow set network interface by script or commandline?

Windows specific questions, problems.
Post Reply
squadjot
Newbie
Newbie
Posts: 4
Joined: Fri Sep 28, 2018 10:12 pm

Can i somehow set network interface by script or commandline?

Post by squadjot »

Hi

I'm looking for a way to set the network interface that qbitorrent uses.
Either by commandline? or somehow editing QBT's settings ? (with script)
User avatar
Peter
Administrator
Administrator
Posts: 3046
Joined: Wed Jul 07, 2010 6:14 pm

Re: Can i somehow set network interface by script or commandline?

Post by Peter »

I mean of course.

1. Press WIN+R on Windows and type:

Code: Select all

%APPDATA%\qBittorrent\
This will open the settings folder.
Look for

Code: Select all

qBittorrent.ini
No need to open it yet.

2. Now go into qBittorrent's settings and bind to an interface in Advanced Settings.

3. In the ".ini" file it will look like this:

Session\InterfaceName=Ethernet
Session\Interface=ethernet_32769

4. And now you already have one interface.

5. Save this data. It will be different at you.
Now re-open qBittorrent and change to whatever other interface you want.

6. Now open the .ini again and you have the other interface. Do this for each interface.

7. Now all you need to do is just make a new script that replaces these lines with your interface bind before starting qBittorrent.

Obviously, verify it it all.
squadjot
Newbie
Newbie
Posts: 4
Joined: Fri Sep 28, 2018 10:12 pm

Re: Can i somehow set network interface by script or commandline?

Post by squadjot »

Ah damn, i DID look in qBittorrent.ini, but somehow i missed the Session\InterfaceName.. i must have made a type when i searched for the interface name.

Thank you! ^-^
Post Reply