Port 631 is the IPP (Internet Printing Protocol) port used by CUPS on Linux/macOS for print management. IPP runs over HTTP and supports authentication, encryption (IPPS), job accounting, and printer capability discovery. The CUPS web admin interface also listens on port 631 – restrict access to localhost.
Port Number
631
Protocol
TCP
Service
Internet Printing Protocol
Range
IANA Well-Known (0–1023)
Check CUPS listening address and browse protocols (should be localhost, no DNSSD)
cupsctl | grep -E 'BrowseLocalProtocols|Listen'Full CUPS status: printers, classes, jobs, and configuration
lpstat -tCheck if cups-browsed is running (disable if not needed)
systemctl status cups-browsedList configured printers via CUPS web interface
curl -s http://localhost:631/printers/ | grep -o 'printer/[^"]*' | sort -ulpstat -p
cupsctl --remote-admin
ipptool -tv ipp://printer:631 get-printer-attributes.test
curl http://localhost:631/printers/IPP (Internet Printing Protocol) was standardized in RFC 2910/2911 (2000) by the Printer Working Group. CUPS (Common Unix Printing System, created by Michael Sweet in 1999) adopted IPP on port 631 and became the default print system for Linux and macOS. Apple hired Michael Sweet in 2007; macOS uses CUPS natively. The September 2024 CUPS RCE chain (CVE-2024-47176 et al.) renewed attention to the attack surface of cups-browsed's auto-discovery.
How do I mitigate the 2024 CUPS RCE vulnerabilities?
Immediate: systemctl disable --now cups-browsed (this disables the vulnerable auto-discovery). If cups-browsed is needed: edit /etc/cups/cups-browsed.conf and set BrowseRemoteProtocols none (disables network printer discovery). Long-term: update to patched CUPS packages when your distro releases them. The vulnerability requires cups-browsed running + attacker reaching UDP port 631.
Is it safe to share a printer via CUPS on my LAN?
Only if: (1) cups-browsed is disabled or restricted, (2) CUPS admin interface is bound to localhost (Listen localhost:631), (3) sharing is restricted to specific subnets (cupsd.conf: Allow from 192.168.1.0/24), (4) authentication is required for admin operations. AirPrint (Apple devices) uses mDNS to discover IPP printers on port 631 – this is safe on a trusted LAN but exposes the printer to every device on the same subnet.