Port 17: Quote of the Day

Port 17 (TCP/UDP) is used by Quote of the Day. Sends a short message. Can be abused for reflection attacks, so keep it closed.

17Port
TCP/UDPProtocol
qotdIANA service name
Legacy protocolsCategory

Port range

17 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

Port 17 should not be reachable from the public internet. Restrict it to trusted networks or a VPN, and scan your public IP to confirm it is closed.

Open port 17 in a firewall

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

Check if port 17 is open

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

Other legacy protocols ports

Frequently asked questions

What is port 17 used for?
Quote of the Day. Sends a short message. Can be abused for reflection attacks, so keep it closed.
Is port 17 TCP or UDP?
Both are assigned. Check which one your software actually listens on.