Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connect pptp vpn with android vpnservice

Tags:

android

vpn

pptp

I'm trying to write an application that could connect to my VPN server with pptp protocol , 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.

Here is some code I found :

// Create a new interface using the builder and save the parameters. mInterface = builder.setSession(mServerAddress)                 .setConfigureIntent(mConfigureIntent)                 .establish(); mParameters = parameters; 
like image 844
Duke Programmer Avatar asked Aug 25 '12 07:08

Duke Programmer


People also ask

Is OpenVPN better than PPTP?

PPTP is easy to set up and provides fast speeds. It is a good choice on mobile and tablet devices, where OpenVPN isn't supported. OpenVPN provides the best performance and highest security. We recommend OpenVPN for desktop computers including Windows, Mac OS X and Linux.

Does OpenVPN use PPTP?

Does OpenVPN Use PPTP? Nope. OpenVPN is SSL/TLS-based and utilizes the SSL/TLS protocol to establish an encrypted tunnel for all your traffic and communications to pass through. As such, it isn't compatible with PPTP, L2TP, IPSec, or any other protocol.

Which VPN is best for PPTP?

It's also much easier and faster to set up. OpenVPN uses advanced 256-bit encryption and the AES cipher, so it offers much higher security. OpenVPN is also much better at getting past firewalls and network blocks. Experts recommend OpenVPN over PPTP, as it optimally balances speed, security, and stability.


1 Answers

Hi this is a bit late but I have found something while searching.

I am also trying to build my own VPN tunnel / connection with using pptp and openvpn.

OpenVPN already has a solution.

PPTP am trying the solution below.

How to programmatically create a new VPN interface with Android 4.0?

link above was found at

How to configure VPN programmatically?

like image 130
RGAT Avatar answered Oct 11 '22 13:10

RGAT