joako233 1 Posted ... Good morning! First of all, congratulations on the amazing work behind AirVPN. I'm writing to request the option to connect to a server through the API. There is an option to disconnect, but the option to automatically connect to a server does not seem to be available. I was wondering if it would be possible to add this functionality. Best regards, and thank you in advance. 1 Antti Simola reacted to this Quote Share this post Link to post
Tech Jedi Alex 1513 Posted ... Ehm. I am not sure how your thinking goes here, but the initiator of connections is always some VPN client. The API though operates on the backend of the server infrastructure. There is an endpoint for disconnection because the infrastructure has knowledge of all sessions and can force one of those to be killed, after which the client must reconnect itself. If there were an endpoint for connecting, what would you expect from the server? In the first place, which server? There are 262 possibilities as of today… The closest existing endpoint to your idea would be the generator endpoint which generates a config file. It can be pulled by curl for example right into OpenVPN or a wg-quick command, but as you can see, a client still initiates the connection. Please outline what you're really trying to do, or rather, how your idea came to be. I believe there are ways to do this locally. Quote Hide Tech Jedi Alex'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