Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I'm trying to set up a VPN so that I can have a connection to my LAN from my phone (HTC Droid Incredible, Stock ROM, Not rooted) wherever I am.

AFAICT, everything is set up correctly. The Domain Name resolves correctly, I forwarded the ports required by the how-to I was following, yet I still can't connect.

I have no idea what's wrong or how to get to any debug information. The only thing I can think of that I haven't verified yet is the port, but I couldn't find a way to select one.

What Port Does Android Use For VPN Connections?

P.S. I would really like to do this without rooting.

share|improve this question
add comment

4 Answers

up vote 4 down vote accepted

If you have access to a computer that a) is on the same Wi-Fi network; and b) runs wireshark (http://www.wireshark.org/) you can probably find out the port that way.

share|improve this answer
    
This will also hopefully let you see What's Really Happening. Sniff phone side, sniff LAN side, compare. –  devnul3 Nov 1 '11 at 5:31
add comment

If you are trying to VPN from your phone to publicly accessible computer that is also part of your LAN, it really doesn't matter what port the VPN client on your phone uses.

share|improve this answer
add comment

I dont think so that your need to have to Port if you are willing to use VPN on Android. You simply need to add the server name in the settings which will be given to you by your VPN Provider. However, i will advise you to configure the setting again on vpn android . It will surely works out as one of my friend has also faced such issues while connecting to vpn but he tried the configuration steps and then able to use the vpn serviceon its android phone.

Follow these simple steps...

Add a new VPN connection:

Press the Home icon, press Menu, and tap Settings Tap Wireless & networks Tap VPN settings Tap Add VPN Select the type of VPN to add (PPTP, L2TP, L2TP/IPSec PSK VPN, L2TP/IPsec CRT VPN) Fill in VPN details such as VPN name, VPN server, etc (the required settings will depend on type of VPN selected and will be provided to you by your VPN Provider or network admin) Click Save or Done.

Connecting to the VPN:

Press Home icon, press Menu, and tap Settings Tap Wireless & networks Tap VPN settings. The VPN connections you have added are now listed. Tap the VPN you wish to connect to. A dialog box will open asking for your credentials, enter them and touch connect

share|improve this answer
add comment

Here are the ports used by VPNs

PPTP

To allow PPTP tunnel maintenance traffic, open TCP 1723.
To allow PPTP tunneled data to pass through router, open Protocol ID 47. 

L2TP over IPSec

To allow Internet Key Exchange (IKE), open UDP 500.
To allow IPSec Network Address Translation (NAT-T) open UDP 5500.
To allow L2TP traffic, open UDP 1701. 
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.