this post was submitted on 05 Mar 2025
69 points (97.3% liked)
Linux
51185 readers
761 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Yes, this is what I do, with Private Internet Access (VPN). You can bind qbittorrent to PIA's interface, and also to its forwarding port.
Yeah, I just wish there was a way to automatically update the port whenever it changes. It doesn’t change often since my server tends to stay on 24/7. But when it does change, it would be nice to have it automatically update.
Back before my current server, I was just messing around with it in Windows. I discovered that qBit actually stores the forwarded port in the registry, and PIA has a terminal command that can print the currently forwarded port. I tried to write a quick .bat script to automatically run when the PIA network adapter connected. The goal was to grab the port number and update the registry for qBit any time the internet went out or my server was rebooted.
And it seemed to work fine. It launched when PIA connected, and pushed the new value to the registry. But that forwarded port was also apparently being stored somewhere else as well, because just updating the registry wasn’t enough; When qBit launched it still showed the old port number, even though all of the documentation I found said it was simply a registry value. At that point I just gave up and manually updated it every time I turned my computer on.
Ah, dang, I haven't run into this yet. But I see what you mean. I actually just set this up in Linux, but back in Windows I didn't run into this problem (maybe I was lucky enough to hit the same port, or maybe I didn't have it set up entirely correctly, lol).