Port 515 is the LPD (Line Printer Daemon) port for Unix print spooling. LPD accepts print jobs from remote clients using the LPR protocol. LPD is unencrypted and has minimal authentication – exposed instances allow unauthorized printing and potential file disclosure. IPP on port 631 is the modern replacement.
Port Number
515
Protocol
TCP
Service
Line Printer Daemon
Range
IANA Well-Known (0–1023)
List available printers and their accepting state
lpstat -aCheck for LPD vulnerabilities (format string, access control)
nmap -p 515 --script lpd-vuln targetBSD/LPRng: show queue status for all printers
lpc status allCheck if LPD is running (should not be on modern systems)
ss -tlnp | grep 515lpr -P printer file.ps
lpq -P printer
lprm -P printer jobidLPD (Line Printer Daemon) protocol was defined in RFC 1179 (1990), standardizing the BSD print spooler from the early 1980s. Port 515 was assigned for the daemon. LPR (Line Printer Remote) is the client. The protocol was designed for trusted campus networks with no security considerations. IPP (Internet Printing Protocol, port 631) was created in 1999 as the modern replacement with authentication, encryption, and rich job management.
Should I still use LPD/LPR?
No. IPP (port 631) replaces LPD entirely with: authentication (username/password or certificates), encryption (IPPS = IPP over TLS), richer features (color management, finishing options, job status). CUPS on Linux/macOS uses IPP natively. Windows 10+ supports IPP. The only reason to keep LPD is legacy Unix systems or old hardware print servers that only speak LPR.
How do I disable LPD on CUPS?
CUPS includes a cups-lpd helper for backward compatibility. Disable it: systemctl disable cups-lpd.socket [email protected] (systemd) or remove 'ServerAlias *' from cupsd.conf and ensure Port 515 is not listed in Listen directives. Verify: ss -tlnp | grep 515 should show nothing. CUPS still serves IPP on port 631.