Port 51820: WireGuard

Port 51820 is the default port for WireGuard, a modern, fast VPN.

At a glance
Port
51820 / UDP
Service
WireGuard
Also called
wireguard, wg
If exposed
Low risk if exposed

What runs on port 51820

WireGuard listens on UDP 51820 by default, though any port can be used. It is built into the Linux kernel, is small enough to audit, and uses modern cryptography with key-based authentication only. Tailscale and many commercial VPNs are built on it.

On a home network

Routers with WireGuard support (OpenWrt, GL.iNet, recent ASUS and UniFi models), NAS boxes, Raspberry Pis running PiVPN or wg-easy, and Home Assistant with the WireGuard add-on can listen on 51820.

If port 51820 is reachable from the internet

Exposing WireGuard is its purpose, and it is one of the safer things you can put on the internet. It stays silent to any packet that is not signed with a valid key, so scanners cannot even tell it is there. Protect the private keys and remove peers you no longer use.

How to check whether it is open on your network

Your router's or server's WireGuard settings show the listening port and peers. Because WireGuard does not reply to unknown packets, a port scan will usually report 51820 as closed or filtered even when it is working.

Related ports

All portsPort lookupSubnet calculator

Other tools

IPv4 · IPv6 · CIDR
Subnet calculator
Network, broadcast, host range and wildcard for any CIDR, IPv4 or IPv6. Turns an IP range into the CIDR blocks that cover it.
OUI · MA-L · MA-M · MA-S
MAC vendor lookup
Which company made the device behind a hardware address, from the IEEE registry. Spots randomised private addresses too.
X.509 · PKCS#10 · PEM · DER
Certificate and CSR decoder
Subject, issuer, validity, key, SANs, key usage and fingerprints from a certificate or signing request. Parsed in your browser.
VPN · resolver · privacy
DNS leak test
Which DNS servers actually answer your lookups on this connection, who owns them, and whether your VPN or private DNS is really being used.
Cloudflare · Google · Quad9 · 8 resolvers
DNS benchmark
Times eight public resolvers from where you are, over DNS-over-HTTPS, and ranks them by median response.
TCP · UDP · what is this port
Port lookup
What a port number is used for, which home devices open it, and whether it matters that it is reachable.
Certificate Transparency · CT logs
Subdomain finder
Every subdomain on a currently valid TLS certificate, from the public Certificate Transparency logs, with the ones worth a second look flagged.
IP to ASN · BGP · IP ranges
ASN lookup
Which network routes an IP address, who holds an AS number, and every IPv4 and IPv6 range it announces. Live BGP data from RIPEstat.
HTTP archive
HAR analyzer
Open a HAR file and see what a page really loaded: third parties, slowest requests, insecure cookies, servers that leak versions.
IIS · nginx · Apache · access logs
Log analyzer
Check IIS, nginx and Apache access logs for signs of exploitation, with a verdict per CVE and every finding traced to its line. Read in your browser, never uploaded.
Public IP · fingerprint
What is my IP
Your public address and everything else your browser hands to every site you visit, without asking.