Port reference › Network infrastructure
Port 5353 · mDNS
Local device discovery (Bonjour)
UDP Network infrastructure Exposure risk: Low
What is port 5353 used for?
Multicast DNS for finding printers, AirPlay and Chromecast devices on the same network, using .local names.
Registered port (1024-49151): the range used by ordinary applications.
Security notes
It should never leave the subnet. Block it on external interfaces.
Allow port 5353 through the firewall
This port is generally fine to expose publicly.
sudo ufw allow 5353/udp
sudo ufw status sudo firewall-cmd --permanent --add-port=5353/udp
sudo firewall-cmd --reload sudo iptables -A INPUT -p udp --dport 5353 -j ACCEPT New-NetFirewallRule -DisplayName "Allow UDP 5353" -Direction Inbound -Protocol UDP -LocalPort 5353 -Action Allow # Replace sg-0123456789abcdef0 with your security group ID
aws ec2 authorize-security-group-ingress --group-id sg-0123456789abcdef0 --protocol udp --port 5353 --cidr 0.0.0.0/0 Check whether port 5353 is open
sudo ss -ulpn | grep ':5353 ' netstat -ano | findstr :5353 nc -zuv SERVER 5353
# UDP can look "open" even with no reply, so do not trust this alone.
# Testing with a real client for the service is more reliable. sudo lsof -i :5353