Does anyone know how to make a VPN connection programmatically using the L2TP / IPSec server protocol in android?

Does anyone know how to make a VPN connection programmatically using the L2TP / IPSec server protocol in android?

I am trying to connect to my L2TP / IPSec VPN server through my Android application, since I learned that I found out that using android.net.vpnservice I could connect, but when I read some documentation it was not clear how to connect to a VPN (the API is not set to set a username or password, and there is also no API to set my type of VPN (l2tp, pptp), I also tested a Google application example (toyvpn), and there was not one that I mentioned earlier there.

Any help would be really appreciated. thanks in advance

+4
source share
1 answer

The VPN service is just the infrastructure that Google provides you so you can create your own VPN solution, so if you want to use L2TP / IPSec, you might just need to extend the VPNService and make your own implementation of this

0
source

All Articles