Article · Wikipedia archive · Last revised May 27, 2026

Line Printer Daemon protocol

The Line Printer Daemon protocol/Line Printer Remote protocol is a network printing protocol for submitting print jobs to a remote printer. The original implementation of LPD was in the Berkeley printing system in the BSD UNIX operating system; the LPRng project also supports that protocol. CUPS, which is more common on modern Linux distributions and also found on macOS, supports LPD as well as the Internet Printing Protocol (IPP). Commercial solutions are available that also use Berkeley printing protocol components, where more robust functionality and performance is necessary than is available from LPR/LPD alone. The LPD Protocol Specification is documented in RFC 1179.

Last revised
May 27, 2026
Read time
≈ 2 min
Length
361 w
Citations
3
Source
Line Printer Daemon
Communication protocol
PurposeSubmitting print jobs to a remote printer
Introduction1983 (1983)
Based onBerkeley printing system
Port(s)515
RFC(s)1179

The Line Printer Daemon protocol/Line Printer Remote protocol (or LPD, LPR) is a network printing protocol for submitting print jobs to a remote printer. The original implementation of LPD was in the Berkeley printing system in the BSD UNIX operating system; the LPRng project also supports that protocol. CUPS, which is more common on modern Linux distributions and also found on macOS, supports LPD as well as the Internet Printing Protocol (IPP). Commercial solutions are available that also use Berkeley printing protocol components, where more robust functionality and performance is necessary than is available from LPR/LPD (or CUPS) alone (such as might be required in large corporate environments). The LPD Protocol Specification is documented in RFC 1179.1

Usage

A server for the LPD protocol listens for requests on TCP port 515.1 A request begins with a byte containing the request code, followed by the arguments to the request, and is terminated by an ASCII LF character.

An LPD printer is identified by the IP address of the server machine and the queue name on that machine. Many different queue names may exist in one LPD server, with each queue having unique settings. Note that the LPD queue name is case sensitive. Some modern implementations of LPD on network printers might ignore the case or queue name altogether and send all jobs to the same printer. Others have the option to automatically create a new queue when a print job with a new queue name is received. This helps to simplify the setup of the LPD server.2

A printer that supports LPD/LPR is sometimes referred to as a "TCP/IP printer" (TCP/IP is used to establish connections between printers and clients on a network), although that term would be equally applicable to a printer that supports the Internet Printing Protocol.

See also

See also

References

References

  1. L. McLaughlin III, ed. (August 1990). Line Printer Daemon Protocol. Network Printing Working Group. doi:10.17487/RFC1179. RFC 1179. Informational.
  2. Winet's InetLPD server documentation.
External links