0

I have to create an Android app that connect to a Server with a VPN. I read this topic: How to use VPN in Android?

And I found that "There is no standard mechanism in place for setting up a connection to a VPN server. ToyVpn simply communicates over a socket using raw TCP packets. You can either implement an existing protocol (see RFC 4026) like OpenVPN has done or write something yourself."

It is still true today? Are there any solutions to easily connect to a Server with a VPN?

Community
  • 1
  • 1
helloimyourmind
  • 994
  • 4
  • 14
  • 30

1 Answers1

-2
Intent vi = VpnService.prepare(MainActivity.this);

if (vi != null) {
   startActivityForResult(vi, 3);
}
Insomniac
  • 639
  • 3
  • 19