heironimus 0 Posted ... 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. Quote Share this post Link to post
heironimus 0 Posted ... 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. Quote Share this post Link to post
OpenSourcerer 1441 Posted ... 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. 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. Quote Hide OpenSourcerer's signature Hide all signatures 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