VPN ports

VPN Ports: Which Port Each VPN Protocol Uses

WireGuard uses UDP 51820, OpenVPN UDP 1194 (or TCP 443), IKEv2 and L2TP/IPsec UDP 500 and 4500, PPTP TCP 1723 with GRE, and SSTP TCP 443. A VPN app needs no open ports; only a VPN server does. On networks that block VPN ports, an obfuscated protocol such as NordVPN's still connects.

Some links on this page are affiliate links. If you buy through them, we may earn a commission at no extra cost to you.

WireGuard
UDP 51820
OpenVPN
UDP 1194 (TCP 443 fallback)
IKEv2 / IPsec
UDP 500 and 4500, plus ESP
L2TP/IPsec
UDP 500, 4500 and 1701 inside IPsec
PPTP
TCP 1723 plus GRE
SSTP
TCP 443
Check if TCP port 443 is open

Last updated:

VPN ports by protocol

Chart of VPN ports: WireGuard UDP 51820, OpenVPN UDP 1194 and TCP 443, IPsec UDP 500 and 4500, L2TP UDP 1701, PPTP TCP 1723, SSTP TCP 443
Default ports for common VPN protocols
ProtocolPortTransportGood to know
WireGuard51820UDPFast and modern; any UDP port works
OpenVPN1194UDP by default, or TCPTCP 443 gets through most firewalls
IKEv2 / IPsec500 and 4500UDP, plus ESP (IP protocol 50)Built into Windows, macOS, iOS and Android
L2TP/IPsec500, 4500 and 1701UDP, plus ESP1701 travels inside the IPsec tunnel
PPTP1723TCP, plus GRE (IP protocol 47)Outdated; replace it with IKEv2 or WireGuard
SSTP443TCPWindows; looks like HTTPS to firewalls

ESP, AH and GRE are not ports

ESP, AH and GRE are IP protocol numbers (50, 51 and 47). A firewall needs a protocol rule for them rather than a port rule, and a port checker cannot test them.

Ports used by VPN apps and mesh networks

  • OpenVPN Access Server: UDP 1194 and TCP 443 for VPN clients, TCP 943 for the web interface.
  • Tailscale: UDP 41641 for direct connections, with relays over HTTPS 443 when a direct path is not possible.
  • ZeroTier: UDP 9993.
  • SoftEther VPN: TCP 443, 992, 1194 and 5555.
  • Cisco Secure Client (AnyConnect): TCP 443, plus UDP 443 for DTLS.
  • Fortinet FortiClient SSL VPN: TCP 443, often moved to 10443 on FortiGate.
  • Palo Alto GlobalProtect: TCP 443, plus UDP 4501 for the IPsec tunnel.

Which VPN protocol should you use?

VPN protocols compared
ProtocolBest forThrough restrictive firewalls
WireGuardSpeed, phones and self-hosted serversUDP only; use obfuscation where UDP is blocked
OpenVPNCompatibility with almost every device and routerGood on TCP 443
IKEv2Phones that switch between Wi-Fi and mobile dataNeeds UDP 500 and 4500
SSTPWindows-only networksGood, because it uses TCP 443
PPTPNothing todayReplace it with IKEv2 or WireGuard

PPTP port 1723

PPTP uses TCP 1723 to set up the connection and GRE (IP protocol 47) to carry the data. To host a PPTP server, forward TCP 1723 to it; GRE follows through routers that support PPTP passthrough. Some routers run their own PPTP server on 1723, so turn that off first.

PPTP's MS-CHAPv2 authentication can be cracked, which is why Apple removed PPTP from macOS and iOS in 2016 and new Windows Server 2025 deployments no longer accept it by default. Treat PPTP as unencrypted, and move to IKEv2 or WireGuard, which are faster as well as secure.

SSTP port 443

SSTP is Microsoft's VPN over HTTPS. It uses TCP 443 only, so it passes firewalls that allow web traffic, and the client is built into Windows. A Windows Server running Routing and Remote Access needs TCP 443 forwarded to it and a TLS certificate that clients trust.

Hosting your own VPN server

Forward only the port of the protocol your server runs, to the server's LAN IP: UDP 51820 for WireGuard, UDP 1194 (or a TCP port) for OpenVPN, UDP 500 and 4500 for IKEv2 and L2TP/IPsec. The guides for WireGuard, OpenVPN and IPsec walk through each one, and the port forwarding test checks TCP rules end to end.

Behind CGNAT, which is standard on Starlink, 5G home internet and many fiber ISPs, no router rule can reach your server. PureVPN's Port Forwarding add-on opens the port on the VPN server's public IP instead, so your own WireGuard or OpenVPN server keeps working; clients only change their endpoint.

  • Host a VPN server behind CGNAT

    PureVPN + Port Forwarding

    • Open the exact ports your server uses, such as UDP 51820 or 1194, up to 15 at a time.
    • Keep your own server and client configs; only the endpoint changes.
    • Dedicated IP option, so the endpoint never changes.
    • 31-day money-back guarantee.
    Get PureVPN Port Forwarding

VPN blocked on Wi-Fi? Connect over a port that is always open

Hotel, airport and public Wi-Fi often allow only web traffic, TCP 80 and 443, and drop UDP 1194, 51820 and 500/4500. Some networks and countries go further and use deep packet inspection to spot VPN handshakes on any port. Two settings get you connected:

  • Switch to OpenVPN over TCP 443, or another TCP port your app offers. That gets past networks that filter by port.
  • Turn on obfuscation. It disguises the VPN as ordinary HTTPS, so it also gets past deep packet inspection.
Features for restrictive networks in popular VPNs
VPNFeaturePorts
NordVPNNordWhisper protocol and obfuscated serversNordLynx UDP 51820; OpenVPN UDP 1194 or TCP 443
Proton VPNStealth protocol: WireGuard inside TLSTLS over TCP, like HTTPS
Private Internet AccessChoose the remote port in the appUDP 8080, 853, 123, 53; TCP 8443, 853, 443, 80
  • Best for restrictive networks

    NordVPN

    • NordWhisper and obfuscated servers make the VPN look like regular web traffic.
    • OpenVPN over TCP 443 when UDP is blocked.
    • Apps for Windows, macOS, Linux, Android and iOS.
    • 30-day money-back guarantee.
    Get NordVPN
  • Stealth protocol

    Proton VPN

    • Stealth wraps WireGuard in TLS, so it connects on TCP-only networks.
    • Available in the Windows, macOS, Android and iOS apps.
    • Open-source apps, based in Switzerland.
    • 30-day money-back guarantee.
    Get Proton VPN

Which VPN ports should be open?

  • Using a VPN app needs no open ports on your router. Connections are outbound, so nothing has to be forwarded.
  • On a VPN server, open only the port of the protocol it runs, and forward it only to the server's LAN IP.
  • Upgrade PPTP to IKEv2 or WireGuard, and keep UDP 1701 closed to the internet unless your L2TP/IPsec server needs it.
  • Allow management ports, such as OpenVPN Access Server's TCP 943, only from addresses you trust.
  • Scan your public IP with the port scanner to confirm nothing else is exposed.

VPN ports FAQ

What ports does a VPN use?

It depends on the protocol: WireGuard uses UDP 51820, OpenVPN UDP 1194 or TCP 443, IKEv2 and L2TP/IPsec UDP 500 and 4500, PPTP TCP 1723 and SSTP TCP 443.

Do I need to open ports to use a VPN?

No. A VPN app makes outbound connections, so it works without port forwarding. Only a VPN server you host needs an open port.

Which ports should a firewall allow for VPN users?

Outbound UDP 51820 for WireGuard, UDP 1194 and TCP 443 for OpenVPN, UDP 500 and 4500 for IKEv2 and L2TP/IPsec, and TCP 443 for SSTP. Inbound rules are only needed on VPN servers.

What port does PPTP use?

TCP 1723 for control, plus GRE (IP protocol 47) for data. PPTP's authentication can be cracked, so IKEv2 or WireGuard are the modern replacements.

What port does SSTP use?

TCP 443, the HTTPS port, which is why SSTP gets through most firewalls.

Which VPN protocol is hardest to block?

Protocols that look like HTTPS on TCP 443: SSTP, OpenVPN over TCP 443, and obfuscated protocols such as NordVPN's NordWhisper and Proton VPN's Stealth.

What port does the built-in Windows VPN use?

It depends on the type: IKEv2 and L2TP/IPsec use UDP 500 and 4500, SSTP uses TCP 443, and PPTP uses TCP 1723 with GRE. The Automatic type tries them in turn.

What port does an SSL VPN use?

Usually TCP 443, which is why SSL VPNs such as Cisco Secure Client and FortiClient pass most firewalls. FortiGate setups often move SSL VPN to TCP 10443.

Which VPNs support port forwarding?

PureVPN lets you choose the ports with its Port Forwarding add-on. PIA and Proton VPN assign a random port, and NordVPN does not offer it on standard plans. See port forwarding behind CGNAT for details.

How do I check if a VPN port is open?

For TCP ports such as 443 or 1723, use the open port checker. WireGuard, OpenVPN and IPsec stay silent on UDP, so connect a client from mobile data or capture traffic on the server instead.

What VPN uses port 443?

SSTP, OpenVPN over TCP, SSL VPNs such as Cisco Secure Client and GlobalProtect, and VPN apps that offer OpenVPN over TCP 443, such as NordVPN. Port 443 is popular because firewalls rarely block HTTPS.

What are the best ports for a VPN?

For speed, the protocol's default UDP port: 51820 for WireGuard or 1194 for OpenVPN. On restrictive networks, TCP 443 works best because it is almost never blocked, and UDP 443 is a good second choice.

Which VPN ports do I need for gaming?

None to play online: a VPN app only connects out. To host a game server or get an open NAT type you need an inbound port, which a VPN with port forwarding can provide.

What is port 10443 used for?

It is a common alternative HTTPS port. FortiGate firewalls often run their SSL VPN on TCP 10443 so that 443 stays free for other services.

References