Port 515: LPD printer

Port 515 (TCP) is used by LPD printer. Line Printer Daemon, an old network printing protocol.

515Port
TCPProtocol
printerIANA service name
PrintingCategory

Port range

515 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 515 to the hosts that need it. Prefer the encrypted variant of the protocol where one exists.

Open port 515 in a firewall

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

Check if port 515 is open

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

Other printing ports

Frequently asked questions

What is port 515 used for?
LPD printer. Line Printer Daemon, an old network printing protocol.
Is port 515 TCP or UDP?
TCP.