Port 427: SLP

Port 427 (TCP/UDP) is used by SLP. Service Location Protocol for discovering printers and services. Has been abused for amplification attacks.

427Port
TCP/UDPProtocol
svrlocIANA service name
Network infrastructureCategory

Port range

427 is a well-known (system) port (range 0–1023). On Linux and macOS, binding to it traditionally needs root or the CAP_NET_BIND_SERVICE capability.

Security

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

Open port 427 in a firewall

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

Check if port 427 is open

nc -vz example.com 427
Test-NetConnection example.com -Port 427   # PowerShell
sudo ss -tulpn | grep ':427 '   # what is listening locally (Linux)

Other network infrastructure ports

Frequently asked questions

What is port 427 used for?
SLP. Service Location Protocol for discovering printers and services. Has been abused for amplification attacks.
Is port 427 TCP or UDP?
Both are assigned. Check which one your software actually listens on.