Jump to content
Not connected, Your IP: 3.145.163.58

Recommended Posts

Apologies if I'm missing something basic here --

I'm trying to set up a script that can disconnect airvpn and then connect to a different server.

In the API documentation I only see there is a disconnect service, but no connect.

Is there some way I can programmatically establish a connection with a server? This seems like it would be basic but I haven't found any examples. 

Share this post


Link to post

I've just discovered Hummingbird and think this may be the most expedient solution, but I'll leave this open if anyone has another method.

Share this post


Link to post

The forceful disconnect through the client area or API are meant as an emergency in case you notice abuse of your keys or can't bring your VPN client to disconnect because it's unresponsive or something.

  • Eddie honors the defined whitelist and/or blacklist. Eddie-CLI can do the same (= defining and/or honoring it). If you want to reconnect via scripts, use eddie-cli; just stop and restart it and it will reconnect to another "best" server in the whitelist or among all excluding blacklist.
  • Hummingbird keeps to the server list in the config file or from command line arguments. Same procedure, actually: Stop Hummingbird, then restart it with the same arguments. If you've got a remote-random directive in the config, the server will be chosen randomly out of all remote directives, which is default, documented OpenVPN behavior. :D
You've omitted your OS, by the way. Windows is a pain to use on command line, simply because so much usage logic is built around fancy GUIs. All *nix like macOS, Linux, BSD won't look disgusted by you wanting to use a terminal, so I'm going to assume you are on one of these OSes. Also because no usual Windows user would get the idea to control it with scripts, but exceptions do exist, however weird that might be. :)

NOT AN AIRVPN TEAM MEMBER. USE TICKETS FOR PROFESSIONAL SUPPORT.

LZ1's New User Guide to AirVPN « Plenty of stuff for advanced users, too!

Want to contact me directly? All relevant methods are on my About me page.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...