How to change listening port via CLI

Linux specific questions, problems.
Post Reply
wejej
Newbie
Newbie
Posts: 1
Joined: Tue May 28, 2024 2:46 pm

How to change listening port via CLI

Post by wejej »

Hi!

I'm trying to figure out how to change the listening port from 6881 to a random digit automatically. From the below requests, it looks like this feature has been added, but I can't figure out the usage.

https://github.com/qbittorrent/qBittorrent/issues/17789
https://github.com/qbittorrent/qBittorrent/pull/17862
https://github.com/qbittorrent/qBittorrent/issues/13453
User avatar
Peter
Administrator
Administrator
Posts: 2735
Joined: Wed Jul 07, 2010 6:14 pm

Re: How to change listening port via CLI

Post by Peter »

To a random one?
Write a simple script where you include a random port generated. Add that to the command line call and that's all.
Post Reply