简体   繁体   中英

VpnService Android 4.0

Please i need an example of using VpnService in Android 4.0 with PPTP VPN Server. I'm tried ToyVpnService but it's not using a username & passwd to connect to VPN server.

The VPNService API is not for configuring the system VPN Services but for implementing your own VPN solution. You can for example implement protocols that are not implemented by the system like OpenVPN.

To use pptp with the VPNService API you need to implement the PPTP protocol yourself (or port an existing implementation (should not be difficult))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM