Port 5353: mDNS

Port 5353 (UDP) is used by mDNS. Multicast DNS (Bonjour, Avahi) resolves .local names on a LAN.

5353Port
UDPProtocol
mdnsIANA service name
Network infrastructureCategory

Port range

5353 is a registered port (range 1024–49151). Any user can bind to it; IANA records which service registered the number.

Security

Only open port 5353 to the hosts that need it. Prefer the encrypted variant of the protocol where one exists.

Open port 5353 in a firewall

ufw         sudo ufw allow 5353/udp
iptables    sudo iptables -A INPUT -p udp --dport 5353 -j ACCEPT
firewalld   sudo firewall-cmd --permanent --add-port=5353/udp
Windows     New-NetFirewallRule -DisplayName "mDNS 5353" -Direction Inbound -Protocol UDP -LocalPort 5353 -Action Allow

Check if port 5353 is open

nc -vzu example.com 5353   # UDP checks are unreliable: no reply ≠ closed
sudo ss -tulpn | grep ':5353 '   # what is listening locally (Linux)

Other network infrastructure ports

Frequently asked questions

What is port 5353 used for?
mDNS. Multicast DNS (Bonjour, Avahi) resolves .local names on a LAN.
Is port 5353 TCP or UDP?
UDP.