TCPWell-Known PortFirewall: Usually Closed
515

LPD (Line Printer Daemon)

What is Port 515?

Port 515 is used by the Line Printer Daemon (LPD) protocol, also known as the LPR (Line Printer Remote) protocol, for submitting print jobs to remote printers over a network. Defined in RFC 1179, LPD is one of the oldest network printing protocols, dating back to BSD Unix in the early 1980s. The protocol allows clients to send print jobs to a print server, which queues and manages the jobs for one or more printers. LPD supports basic operations like submitting jobs, checking queue status, and canceling jobs. While newer protocols like IPP (Internet Printing Protocol, port 631) offer more features, LPD remains supported by many printers and print servers for backward compatibility, particularly in Unix/Linux environments.

Common Uses

  • Network printing from Unix/Linux workstations
  • Print server job queuing and management
  • Legacy enterprise print infrastructure
  • Mainframe and midrange system printing

Technical Details

Port Number515
ProtocolTCP
CategoryWell-Known
Service NameLPD (Line Printer Daemon)
Default FirewallUsually Closed
Port Test Commands

Copy-paste commands to check port 515 (LPD (Line Printer Daemon)) from your terminal

Test connectivity

Netcat (nc)Check if TCP port is reachable
nc -zv example.com 515
curl (HTTP)Test HTTP response on this port
curl -v --max-time 5 http://example.com:515/
TelnetBasic TCP port connectivity check
telnet example.com 515
nmapScan port 515 with service detection
nmap -p 515 -sV example.com
Bash /dev/tcpPure bash TCP check (no extra tools needed)
(echo > /dev/tcp/example.com/515) 2>/dev/null && echo "open" || echo "closed"

Open port in firewall

UFW (Ubuntu / Debian)
sudo ufw allow 515/tcp
iptables
sudo iptables -A INPUT -p tcp --dport 515 -j ACCEPT
firewalld (RHEL / CentOS)
sudo firewall-cmd --permanent --add-port=515/tcp && sudo firewall-cmd --reload

Security Considerations

!

LPD has no authentication mechanism and can be exploited for unauthorized printing, denial of service, and in some cases, remote code execution through buffer overflow vulnerabilities in older implementations. Block port 515 from external networks. Use IPP with authentication for modern printing needs. Restrict print server access to trusted clients.

Popular Ports Reference

The most commonly used and referenced network ports

Related Ports