Internet Printing Protocol; CUPS listens on TCP 631 and cups-browsed on UDP 631.
Internet Printing Protocol; CUPS listens on TCP 631 and cups-browsed on UDP 631.
Localhost or LAN only. Never expose. In 2024 a chain of cups-browsed bugs (CVE-2024-47176 and others) allowed remote code execution from UDP 631, and open IPP printers can be used for DDoS amplification. Disable cups-browsed if you do not need it.
Registry dates for this port: registered 2018-07-06, last modified 2018-07-06.
sudo ss -tlnp 'sport = :631'sudo ss -ulnp 'sport = :631'sudo lsof -nP -i :631sudo netstat -tlnp | grep ':631 'netstat -ano | findstr :631Get-NetTCPConnection -LocalPort 631 -State Listen | Select LocalAddress,OwningProcessnc -vz -w 5 HOST 631Test-NetConnection HOST -Port 631nc -vzu -w 5 HOST 631sudo ufw deny 631/tcpsudo iptables -A INPUT -p tcp --dport 631 -j DROPsudo nft add rule inet filter input tcp dport 631 dropNew-NetFirewallRule -DisplayName 'Block TCP 631' -Direction Inbound -Protocol TCP -LocalPort 631 -Action Blocksudo ufw deny 631/udpsudo iptables -A INPUT -p udp --dport 631 -j DROPsudo nft add rule inet filter input udp dport 631 dropNew-NetFirewallRule -DisplayName 'Block UDP 631' -Direction Inbound -Protocol UDP -LocalPort 631 -Action BlockAll port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.