Port reference › VPN

Port 51820 · WireGuard

WireGuard VPN

UDP VPN Exposure risk: Low

What is port 51820 used for?

Default WireGuard port. Tailscale uses WireGuard too but picks ports automatically.

Dynamic / ephemeral port (49152-65535): assigned by the OS to outgoing connections.

Security notes

It does not answer without a valid key, so it barely shows up in scans. Just guard the private keys.

Allow port 51820 through the firewall

This port is generally fine to expose publicly.

sudo ufw allow 51820/udp
sudo ufw status

Check whether port 51820 is open

sudo ss -ulpn | grep ':51820 '

Other vpn ports

500 IKE (IPsec) 4500 IPsec NAT-T 1194 OpenVPN 1723 PPTP 1701 L2TP