How to create Application that AutoConnect To Vpn using PPTP android?

Viewed 1482

How can I connect to vpn:

  • using pptp android
  • to a given hostname
  • with username and password?

I have checked a lot of tutorials a lot of examples and a lot of Github projects but still I got no answer.

I have tried a lot of VPN Apps like:

  • ToyVpn,
  • LightVpn,
  • Open Connect,
  • OpenVpn,
  • Vpn-Master,
  • Vpn-CLient

and still I didn't find a way how to do it. A lot of tutorials say that it can be done using StringBuilder (which builds a string with all the infos) and another tutorial says it can be done by the command:

connect(hostname,username,password) 

but it needs to be configured which I couldn't do. If is one of those two ways or is another answer?

1 Answers
Related