Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aldaviva/portforwardingmanager
🚢 Automatically update the qBittorrent listening port based on the Private Internet Access forwarded port.
https://github.com/aldaviva/portforwardingmanager
pia port-forwarding private-internet-access privateinternetaccess qbittorrent torrent vpn
Last synced: 5 days ago
JSON representation
🚢 Automatically update the qBittorrent listening port based on the Private Internet Access forwarded port.
- Host: GitHub
- URL: https://github.com/aldaviva/portforwardingmanager
- Owner: Aldaviva
- License: apache-2.0
- Created: 2018-05-27T14:50:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-08-23T03:56:50.000Z (3 months ago)
- Last Synced: 2024-11-02T12:52:11.234Z (12 days ago)
- Topics: pia, port-forwarding, private-internet-access, privateinternetaccess, qbittorrent, torrent, vpn
- Language: C#
- Homepage:
- Size: 161 KB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: License.txt
Awesome Lists containing this project
README
🚢 PortForwardingManager
===Integrate the [qBittorrent](https://www.qbittorrent.org) BitTorrent client with the [Private Internet Access (PIA)](https://www.privateinternetaccess.com/) virtual private network service.
## Features
- Automatically set the qBittorrent listening port to the PIA forwarded port any time it changes.
- This makes NAT traversal work and avoids getting blocked from connecting to as many peers as possible, leading to likely faster transfer speeds.
- Automatically fix the random `Failed to listen on IP. IP: "1.2.3.4". Port: "TCP/12345". Reason: "The requested address is not valid in its context"` qBittorrent errors.
- This error occurs intermittently and blocks all transfers until you restart qBittorrent or change the listening port.
## Requirements
- Windows
- [.NET Framework 4.8](https://dotnet.microsoft.com/en-us/download/dotnet-framework) or later (installed by default in Windows 10 v1903, Server 2022, and later)
- [qBittorrent](https://www.qbittorrent.org/download)
- [Private Internet Access desktop client](https://www.privateinternetaccess.com/download/windows-vpn)## Installation
1. Download [`PortForwardingManager.zip`](https://github.com/Aldaviva/PortForwardingManager/releases/latest/download/PortForwardingService.zip) from the [latest release](https://github.com/Aldaviva/PortForwardingManager/releases/latest).
1. Extract the ZIP file to a directory such as `C:\Program Files\PortForwardingManager\`.
1. In an elevated PowerShell terminal, run
```ps1
New-Service -Name "PortForwardingManager" -BinaryPathName "C:\Program Files\PortForwardingManager\PortFowardingManager.exe" -DisplayName "Port Forwarding Manager" -Description "Automatically update the qBittorrent listening port to be the Private Internet Access forwarded port whenever it changes."
```
replacing the installation directory if you chose a different one in step 2.
1. Run `services.msc`.
1. Select the Port Fowarding Manager service.
1. Go to Properties › Log On, choose This account, and type in your Windows username and password.
- This allows the service to edit the `qBittorrent.ini` configuration file in your user profile directory, which is used to set the listening port when qBittorrent is not running.
1. Start the service.## Configuration
1. [Enable VPN port forwarding.](https://helpdesk.privateinternetaccess.com/kb/articles/how-do-i-enable-port-forwarding-on-my-vpn)
- In the Private Internet Access desktop client, connect to a VPN server that allows port forwarding (does not have an ⇍ icon in the server list).
- Enable Settings › Network › Request Port Forwarding.
1. Open qBittorrent › Tools › Options.
- Disable Connection › Use UPnP / NAT-PMP port forwarding from my router.
- Set Advanced › qBittorrent Section › Network Interface to the PIA virtual network interface.
- If you're not sure which one it is, open `ncpa.cpl` and rename the connection that uses the Private Internet Access Network Adapter to a recognizable name like "PIA".
- Enable Web UI › Web User Interface.
- Set Web UI › Port to 8080.
- Enable Web UI › Bypass authentication for clients on localhost.
- Disable Web UI › Use UPnP / NAT-PMP to forward the port from my router.
- Disable Web UI > Use HTTPS instead of HTTP.