Script to get new IP addresses in JDownloader by reconnecting Private Internet Access.
- Go to Settings -> Reconnect
- Tick all three checkboxes.
- Set method to
External Batch Reconnect
- Set interpreter to
cmd /c
- Set script to
piactl.exe background enable
timeout 3
piactl.exe disconnect
piactl.exe connect
- Set application folder to
C:\Program Files\Private Internet Access
- Go to Settings -> Reconnect
- Tick all three checkboxes.
- Set method to
External Batch Reconnect
- Set interpreter to
/bin/bash -c
- Set script to
./piactl background enable
./piactl disconnect
./piactl connect
- Set application folder to
/usr/local/bin
Maybe try this in a batch file inside your PIA folder, triggering it with JDownloader2's "External Tool Reconnect" reconnect method.
If I paste this script into JDownloader2>Settings>Reconnect>Reconnect Method>"External Batch Reconnect" and set "Start in" to "C:\Program Files\Private Internet Access" then this seems to work better, but then connecting still gets stuck about 10% of the time. Folder/app permissions don't seem to matter.
If switch Reconnect Method to "External Tool Reconnect", save this exact same script into a batch file inside my PIA direcotry, then set Reconnect Method > Command > "C:\Program Files\Private Internet Access\reconnect.bat", the reconnection seems more reliable for some reason.
--
For noobs: How-to save this code into a batch file inside your PIA directory on Windows 11