Home / Port numbers / Port 51820
Port 51820: WireGuard
WireGuard VPN tunnels. Port 51820 uses UDP.
- Port
- 51820
- Commonly used for
- WireGuard
- Transport
- UDP
- Encrypted
- Yes
- Range
- Dynamic (private) port, 49152 to 65535
- Our advice
- Open it only if you need it, and secure the service first
- IANA registration
- Not assigned to any service
Registration: IANA Service Name and Transport Protocol Port Number Registry, retrieved 15 November 2026. The registered name can differ from the everyday use, because popular software often adopts a port without registering it. The description and advice are written by Home Net Guide and describe common practice: any program can be set to use any port.
What port 51820 is used for
Port 51820 is the customary port for WireGuard, a modern VPN protocol known for its small codebase and speed. It is the port used in WireGuard's own examples, not an official assignment, and any UDP port can be chosen. Many home routers and VPN services now offer WireGuard.
Should port 51820 be open?
WireGuard does not reply to packets that lack a valid key, so to a scanner the port looks closed even when the server is running. That makes it one of the safer things to open on a home router for remote access. Keep each device's private key private, and remove the peer entry for a device you lose.
IANA, which keeps the official list of port numbers, has not assigned port 51820 to any service. The use described here is a convention that software makers have settled on.
Related ports
- Port 41641 (Tailscale): direct connections between Tailscale devices
- Port 1194 (OpenVPN): OpenVPN tunnels
- Port 500 (IKE (IPsec key exchange)): setting up IPsec VPN tunnels
See all port numbers for the full list and how ports, TCP and UDP work.
Previous: Port 51413 (Transmission (BitTorrent)) · Next: Port 62078 (iPhone sync)