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

1.5k views Asked by At

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

I'm trying to connect to my VPN server with L2TP/IPSec protocol through my android application, as i was researching I found out that with android.net.vpnservice I could connect, but as I read some of documentation it was not clear how to connect to VPN (there were no API to set username or password, and also no API to set my VPN type(l2tp,pptp); I also tested example application Google provided(toyvpn) and there were none of what I mentioned earlier there too.

Any help would be really appreciated. Thanks in advance

1

There are 1 answers

1
Reiily.H On

VPN Service is just a framework that Google provides you to let you make your own VPN solution, so if you want to use L2TP/IPSec maybe you should just extends the VPNService and make ur own implementation about that