-
-
Notifications
You must be signed in to change notification settings - Fork 23
New PIA port forwarding API #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, thanks for the heads-up.
Does that mean that the same port would be opened regardless of the current endpoint? Ie. when I connect to say Switzerland, issue the API call and then re-connect to eg. Sweden would I need to issue another call? |
Hey, no problem. By that, you only need to call it once per connection (with the old API you'd need to re-call it every half an hour or so to 'keep the port active'). With the new one you open the port and it'll stay open for the life of the VPN connection. Another thing to keep in mind is that you need to request the port within two minutes of the VPN connection being opened -- which I'd assume would result in just requesting it in/as your |
I implemented the new API in 3b327c4. Another request: would it be possible to always return the port that was opened? In my sense APIs should be idempotent. You could also get an actual error message back when requesting a port and you are connected to a region that does not support it (or if there is something else wrong with the request). |
How would I check which port is opened using this tool? I was able to do it manually using the thread linked before, but now it's already open, though I don't know which one has been opened. Thanks. EDIT: Read the man page and got a new port. That being said, it should report the open port when connecting somewhere I'd assume. Thanks! |
It should be stored in |
Hey! I'm just opening this issue to let you know that we (PIA) have a new port forwarding API available. It'd be worth taking a look on our forums over here: https://www.privateinternetaccess.com/forum/discussion/23431/
Specifically, a few things you'll want to keep in mind with the new API are:
If you run into any issues with this, feel free to reply here and I'll take a look.
The text was updated successfully, but these errors were encountered: