title: How to connect android Device to PPTP VPN
body: <p>I have create a PPTP VPN server using  <a href="https://help.ubuntu.com/community/PPTPServer" rel="nofollow noreferrer">ubuntu's guide </a>.<br/></p>
  
  <p>Now I have: <br/> <br/><a href="https://i.stack.imgur.com/3B0ta.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3B0ta.png" alt="enter image description here"></a><br/><br/>
  My problem now is that my android phone could not connect to the pptp which I created. When i try to enter the username and password then hit connect , the only message i have is <strong>Connecting...</strong> but afterwards is <strong>Unsuccessful</strong>.</p>
  
  <p>So I searched and found this <a href="http://www.ibvpn.com/billing/knowledgebase/23/How-to-setup-personal-PPTP-VPN-on-Android-phonesuu.html" rel="nofollow noreferrer">link</a> for general overview on how to connect to my PPTP VPN. I also came <a href="http://www.techrepublic.com/blog/smartphones/connect-to-a-pptp-vpn-from-your-android-phone/" rel="nofollow noreferrer">here</a> but I still cant get my phone connected to the VPN. I have exactly followed what <a href="https://help.ubuntu.com/community/PPTPServer" rel="nofollow noreferrer">ubuntu's guide</a> is saying, and I don't know now what to do, to achieve my goal. Please give some link or a guide that should I do so that my android phone will be able to connect to my PPTP VPN.</p>
  
  <p>syslog of the server</p>
  
  <pre><code>Aug 26 14:44:50 jameshwart-System-Product-Name pptpd[31320]: CTRL: Client 192.168.1.27 control connection started
  Aug 26 14:44:51 jameshwart-System-Product-Name pptpd[31320]: CTRL: Starting call (launching pppd, opening GRE)
  Aug 26 14:44:51 jameshwart-System-Product-Name pppd[31321]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
  Aug 26 14:44:51 jameshwart-System-Product-Name pppd[31321]: pppd 2.4.5 started by root, uid 0
  Aug 26 14:44:51 jameshwart-System-Product-Name pppd[31321]: Using interface ppp0
  Aug 26 14:44:51 jameshwart-System-Product-Name pppd[31321]: Connect: ppp0 &lt;--&gt; /dev/pts/24
  Aug 26 14:44:51 jameshwart-System-Product-Name NetworkManager[969]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
  Aug 26 14:44:51 jameshwart-System-Product-Name NetworkManager[969]:    SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
  Aug 26 14:44:51 jameshwart-System-Product-Name NetworkManager[969]: &lt;warn&gt; /sys/devices/virtual/net/ppp0: couldn't determine device driver; ignoring...
  Aug 26 14:44:51 jameshwart-System-Product-Name pppd[31321]: peer from calling number 192.168.1.27 authorized
  Aug 26 14:44:51 jameshwart-System-Product-Name pppd[31321]: MPPE required, but MS-CHAP[v2] nor EAP-TLS auth are performed.
  Aug 26 14:44:51 jameshwart-System-Product-Name pppd[31321]: Connection terminated.
  Aug 26 14:44:51 jameshwart-System-Product-Name NetworkManager[969]:    SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
  Aug 26 14:44:51 jameshwart-System-Product-Name pppd[31321]: Exit.
  Aug 26 14:44:51 jameshwart-System-Product-Name pptpd[31320]: GRE: read(fd=6,buffer=7f2daa2874a0,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
  Aug 26 14:44:51 jameshwart-System-Product-Name pptpd[31320]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
  Aug 26 14:44:51 jameshwart-System-Product-Name pptpd[31320]: CTRL: Reaping child PPP[31321]
  Aug 26 14:44:51 jameshwart-System-Product-Name pptpd[31320]: CTRL: Client 192.168.1.27 control connection finished
  </code></pre>
  
  <p>syslog of the client</p>
  
  <pre><code>Sent control packet type is 1 'Start-Control-Connection-Request'
  Aug 26 14:45:17 felman-To-be-filled-by-O-E-M pptp[10347]: nm-pptp-service-10324 log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
  Aug 26 14:45:17 felman-To-be-filled-by-O-E-M pptp[10347]: nm-pptp-service-10324 log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
  Aug 26 14:45:18 felman-To-be-filled-by-O-E-M pptp[10347]: nm-pptp-service-10324 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
  Aug 26 14:45:18 felman-To-be-filled-by-O-E-M pptp[10347]: nm-pptp-service-10324 log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
  Aug 26 14:45:18 felman-To-be-filled-by-O-E-M pptp[10347]: nm-pptp-service-10324 log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 21504).
  Aug 26 14:45:18 felman-To-be-filled-by-O-E-M pppd[10328]: CHAP authentication succeeded
  Aug 26 14:45:19 felman-To-be-filled-by-O-E-M pppd[10328]: MPPE 128-bit stateless compression e
  </code></pre>
  
  <p>options.pptp file</p>
  
  <pre><code>###############################################################################
  # $Id: options.pptp,v 1.3 2006/03/26 23:11:05 quozl Exp $
  #
  # Sample PPTP PPP options file /etc/ppp/options.pptp
  # Options used by PPP when a connection is made by a PPTP client.
  # This file can be referred to by an /etc/ppp/peers file for the tunnel.
  # Changes are effective on the next connection.  See "man pppd".
  #
  # You are expected to change this file to suit your system.  As
  # packaged, it requires PPP 2.4.2 or later from http://ppp.samba.org/
  # and the kernel MPPE module available from the CVS repository also on
  # http://ppp.samba.org/, which is packaged for DKMS as kernel_ppp_mppe.
  ###############################################################################
  
  # Lock the port
  lock
  
  # Authentication
  # We don't need the tunnel server to authenticate itself
  noauth
  
  # We won't do PAP, EAP, CHAP, or MSCHAP, but we will accept MSCHAP-V2
  # (you may need to remove these refusals if the server is not using MPPE)
  refuse-pap
  refuse-eap
  refuse-chap
  refuse-mschap
  
  # Compression
  # Turn off compression protocols we know won't be used
  nobsdcomp
  nodeflate
  
  # Encryption
  # (There have been multiple versions of PPP with encryption support,
  # choose with of the following sections you will use.  Note that MPPE
  # requires the use of MSCHAP-V2 during authentication)
  
  # http://ppp.samba.org/ the PPP project version of PPP by Paul Mackarras
  # ppp-2.4.2 or later with MPPE only, kernel module ppp_mppe.o
  # {{{
  # Require MPPE 128-bit encryption
  #require-mppe-128
  # }}}
  
  # http://polbox.com/h/hs001/ fork from PPP project by Jan Dubiec
  # ppp-2.4.2 or later with MPPE and MPPC, kernel module ppp_mppe_mppc.o
  # {{{
  # Require MPPE 128-bit encryption
  mppe required,stateless
  # }}}
  </code></pre>