The VPN protocol used to establish a connection with a VPN server determines the VPN port that is used. There are many protocols that can be used to establish VPN connections. Each protocol uses different port numbers. If you’re setting up your own VPN connection, make sure your firewall rules allow connections for the VPN ports.
|VPN protocol||VPN port number||Usage|
|OpenVPN (UDP)||1194||OpenVPN connections|
|OpenVPN (TCP)||443||OpenVPN connections|
|PPTP (TCP)||1723||PPTP control path|
|PPTP (GRE)||47||PPTP data path|
|L2TP (UDP)||500, 4500||IKEv1 (IPSec control path)|
|L2TP (ESP)||50||IPSec data path|
|SSTP (TCP)||443||SSTP control and data path|
|IKEv2 (UDP)||500, 4500||IKEv2 (IPSec control path)|
|IKEv2 (ESP)||50||IPSec data path|
|Wireguard (UDP)||51820||Incoming connections|
- OpenVPN port numbers 1194 UDP, and 443TCP are used to establish connections.
PPTP ports 1723TCP to create a VPN tunnel, and IP Protocol number 47 – GRE (Generic Route Encapsulation).
- L2TP uses ports 500 to 4500 to negotiate IPSec keys and IP protocol number 50 – ESP (Encapsulating Safety Payload). L2TP uses port 1701 UDP for IPSec encryption.
SSTP port 443 TCP is used to establish connections.
- IKEv2protocol uses UDP port 500 and 4500.
- Wireguardlistening port 51820UDP to receive connections