JetDirect (raw port 9100 printing)
What is JetDirect (raw port 9100 printing)?
JetDirect, also called AppSocket or raw printing, is the simplest network printing method: a computer opens a TCP connection to the printer, normally on port 9100, and streams the print job with no login and no encryption. AdminKit's glossary explains why a reachable port 9100 lets anyone send jobs to that printer.
By AdminKit team, Netbase JSC · Updated
JetDirect printing, documented by the CUPS project as the AppSocket protocol, is the simplest way to send a document to a network printer: the client opens a TCP connection to the printer, usually on port 9100, writes the raw print data (PostScript, PCL or another page description language) into the socket and closes it. There is no login step, no job negotiation and no encryption. The CUPS guide to network printers explains that the name comes from HP’s JetDirect network interfaces, calls AppSocket the simplest and fastest printing protocol, and warns that it offers no security and is often an attack vector with printers. In practice that means a printer whose port 9100 is reachable from the internet will accept data from anyone who connects, whether that is a stray job, junk pages, or commands in the printer’s own control language. CUPS recommends the Internet Printing Protocol (IPP) instead where a printer supports it; IPP is developed by the Printer Working Group, the printer industry body behind its specifications. Printers also sit on plant floors and in offices that share a network with ICS/OT equipment, and NIST SP 800-82 treats keeping unneeded services off reachable networks as part of a defense-in-depth design. A typical CUPS device address for a raw socket printer looks like this:
socket://192.0.2.10:9100
(192.0.2.10 is a documentation address.) The port sits alongside other well-known ports that should stay behind a firewall.
AdminKit groups JetDirect under its machine protocols cluster — browse the AdminKit glossary index for other related terms.
Frequently asked questions
Why is it called JetDirect?
The name comes from HP's JetDirect network print interfaces, where this raw socket method originated. CUPS documents the same method under the name AppSocket and notes it is sometimes called the JetDirect protocol.
What port does JetDirect printing use?
Raw AppSocket or JetDirect printing normally runs over TCP port 9100.
Does port 9100 printing need a password?
No. The protocol has no authentication or encryption, so anyone who can reach the port can send data to the printer. The CUPS documentation describes it as offering no security and often being an attack vector with printers.
What should I use instead of raw port 9100 printing?
Where the printer supports it, IPP is the usual alternative: CUPS recommends it because it supports encryption and other security features. Either way, port 9100 should not be reachable from the internet.