WireGuard port checker
Online port scanners cannot test WireGuard: it answers nothing to a stranger, so every scan says "open|filtered". This checker answers the real questions instead: can your router forward a port at all, which firewall line opens it, and which command proves a client gets through.
Runs in your browser. Your public IP is fetched from the free ipify API only when you click the button; nothing is sent to us or stored.
Default 51820. UDP only: WireGuard has no TCP mode.
Look for "WAN IP", "Internet IP" or "IPv4 address" on the internet status page of your router or ISP box.
The local address of the machine running WireGuard, ideally a DHCP reservation.
A DNS name or IP for the client Endpoint line. Empty = the detected IP, or a placeholder.
Can a port forward reach this server?
Enter your router's WAN address and detect your public IP: the comparison tells whether a port forward can work at all. Until then, the rules below assume it can.
Router port forward rule
| Protocol | External port | Internal IP | Internal port |
|---|---|---|---|
| UDP | 51820 | 192.168.1.10 | 51820 |
sudo ufw allow 51820/udp comment 'WireGuard'
sudo ufw status numbered# Server: /etc/wireguard/wg0.conf
[Interface]
ListenPort = 51820
# Every client: [Peer] section pointing at the server
[Peer]
Endpoint = <server public IP or DNS name>:51820# 1. Is WireGuard listening on the port you think?
sudo wg show wg0 listen-port
sudo ss -ulnp | grep ':51820 '
# 2. Watch the port while a client connects from OUTSIDE (phone on mobile data, Wi-Fi off)
sudo tcpdump -ni any udp port 51820
# Packets arrive -> router and firewall are fine; check keys and AllowedIPs.
# Nothing arrives -> blocked before the server: port forward, ISP box, CGNAT or cloud firewall.
# 3. Final proof
sudo wg show wg0 latest-handshakesWhy not an online port check? WireGuard is silent by design: it does not answer packets that are not a valid handshake from a known key. A UDP scanner therefore reports "open|filtered" for an open port and for a blocked one alike. Only tcpdump on the server, or a handshake from outside, tells the difference.
Rather skip router rules altogether?
On a VPS with a public IPv4 the port you open is the port the internet sees: one firewall line, no router, no ISP box. Contabo's entry VPS comes with a public IPv4 and full root access.
Affiliate link: we may earn a commission at no extra cost to you. The checker stays free either way.
What your router's WAN address tells you
Open your router's status page and read the IPv4 address of its internet (WAN) side. That single number decides whether a port forward can work.
| WAN address | Meaning | Port forward |
|---|---|---|
| 100.64.0.0 to 100.127.255.255 | Carrier-grade NAT (RFC 6598): the ISP shares one public IP between customers | Impossible on your side |
| 10.x, 172.16-31.x, 192.168.x | Private (RFC 1918): another router or the ISP box sits in front | Needed on both devices |
| 169.254.x.x | Link-local: the WAN has no real address | Fix the connection first |
| Public, same as your detected IP | Your router holds the public address | Works |
| Public, different from your detected IP | Another NAT, or you are testing through a VPN or proxy | Check before forwarding |