Skip to content
AdminKit

Is port 9100 (raw printing / JetDirect) exposed to the internet?

AdminKit's short answer: if TCP port 9100 on your public IP accepts a connection, an office printer is probably taking raw print jobs from the whole internet. Raw printing has no login or encryption, so anyone can print, send printer commands and read back replies. AdminKit's port check skips 9100, so test it by hand.

By AdminKit team, Netbase JSC · Updated

Key takeaways

  • TCP 9100 is the raw printing port, also known as AppSocket or JetDirect. Almost every network printer listens on it.
  • Raw printing has no user name, password or encryption. The printer processes whatever arrives, including printer control commands, and can send replies back.
  • A printer reachable on 9100 from the internet will print for strangers and may answer status and configuration queries.
  • AdminKit’s port check does not test 9100. Test it by hand from outside, then block it at the router and restrict it inside.

What is listening on port 9100?

Port 9100 is where network printers accept raw print jobs. The CUPS network printer documentation calls this the AppSocket protocol, “sometimes also called the JetDirect protocol, owing to its origins with the HP JetDirect network interfaces”, and describes it as the simplest and fastest network protocol used for printers. AppSocket printing “normally happens over port 9100”. The IANA registry lists 9100 as pdl-datastream, the printer page description language data stream.

Windows uses the same default. Microsoft’s prnport command reference describes the Standard TCP/IP printer port, which can use TCP raw or TCP lpr, and states for raw ports that “The default port number is 9100.” So when you add a network printer by IP address on Windows or macOS, or point a print server at it, the jobs almost always go to 9100.

The kinds of devices that answer on it:

DeviceWhy it listens on 9100Why it matters if reachable from outside
Office laser and inkjet printersRaw printing from desktops and print serversAnyone can print and send printer commands
Multifunction printers (print, scan, copy, fax)Same raw print path as single printersThe same box often holds scans, address books and fax settings
Label and receipt printersSimple raw jobs from point-of-sale and warehouse softwareOften have no other security settings at all
Print servers and network print adaptersAccept raw jobs and pass them to attached printersOne address can reach several printers
Software that emulates a printerSome PDF and document capture tools accept raw jobsUsually not meant for anyone outside the office

Nmap’s documentation treats the whole range 9100 to 9107 as common printer ports, and print servers with several printer outputs can use the higher numbers. Test those too if your hardware uses them.

Why does raw printing on port 9100 have no security?

Raw printing is not much of a protocol. The Hacking Printers wiki page on port 9100 puts it plainly: raw port 9100 printing “actually is not a printing protocol by itself. Instead all data sent is directly processed by the printing device, just like a parallel connection over TCP.” There is no step where the printer asks who you are. The connection opens, data flows, and the printer’s interpreter handles it.

The CUPS documentation is just as direct: “While the AppSocket protocol is simple and fast, it also offers no security and is often an attack vector with printers.” It recommends the Internet Printing Protocol (IPP) instead, which supports encryption and other security features over port 631. The older Line Printer Daemon protocol is no better; CUPS notes that LPD also offers no security and is a common attack vector.

The design made sense on a small office network where every computer was trusted. It does not hold once 9100 is reachable from outside, or from a guest Wi-Fi network that shares a segment with the printers. This is a classic security basics problem: a service built for a trusted network, left on a network that is not.

What can someone do through an exposed port 9100?

More than print. The Hacking Printers wiki notes that, unlike LPD, IPP and SMB, raw printing gives a bidirectional channel, so the printer can send back status and error messages and the results of PJL, PostScript or PCL commands. That channel is what makes 9100 useful for information disclosure. In practice, an exposed 9100 port can allow:

What a stranger can sendWhat can happenNotes
Ordinary print dataUnwanted pages, wasted paper and toner, offensive or misleading printoutsNeeds nothing but a TCP connection
PJL commandsStatus and information queries and, on some models, settings changesPJL is a job control language that many laser printers accept
PostScript programsCode that runs inside the printer’s interpreterWhat it can reach depends on the model and firmware
Long or malformed jobsA busy or stuck printer that nobody else can useA denial of service for the office

What a given printer allows depends on its make, model, firmware and settings, so treat this table as the range of outcomes rather than a promise about any one device. The common factor is that none of these requests needs a password on 9100.

Why do port scans make printers print?

Because the printer prints whatever arrives. Nmap’s documentation of its service probe file format explains that the only ports its default probe file excludes from version detection are TCP 9100 through 9107. These “are common ports for printers to listen on and they often print any data sent to them”, so a version scan “can cause them to print many pages full of probes”. The same page notes that the --allports option overrides the exclusion.

That behaviour is a useful warning for your own testing. A plain connection test sends no data and prints nothing. Anything that sends data to 9100, whether a version scan, a banner grab or a typed line in a terminal, may come out of the printer.

How do you read AdminKit’s port check for port 9100?

AdminKit’s open ports check tests the public IP you are browsing from, using TCP connections to nine ports: 23, 554, 1883, 8883, 502, 7547, 80, 443 and 8080. Port 9100 is not on that list, so the check says nothing about raw printing either way. Confirm the address you are testing first with what is my IP.

What the result showsWhat it tells you about port 9100
“0/9 TCP port(s) open” with an OK statusOnly the nine listed ports were tested. Port 9100 may still be open
80 or 443 open in an office with printersA web admin page may be exposed, and printer web pages often sit on these ports. Find out which device answers, and test 9100 too
8080 openSome printers and print servers use it for their admin page. Close it, and test 9100

For a full walkthrough of the result screen, see how to read an open ports on my IP scan result. If a printer’s HTTPS admin page is deliberately reachable, which it rarely should be, the SSL certificate check shows whether its certificate is valid for the name you use.

How do you confirm port 9100 from outside?

Use a machine outside the office network, such as a laptop on a mobile hotspot, and test only your own public address. Use a connection test that sends no data (a documentation address is shown):

nc -vz -w 3 203.0.113.40 9100

A “succeeded” or “open” reply means something accepted a connection on 9100 from the internet. A refusal or a timeout means the port is closed or filtered on that path. Repeat the test for 9101 to 9107 if your print servers use them. Do not type text into an open connection, and do not run a version scan with --allports against a printer you care about, or it may print the probes.

If you use Nmap, keep it to a port scan without version detection:

nmap -Pn -p 9100-9107 203.0.113.40

How do you find the printer that answers?

An outside test shows that something answers; the router tells you which device:

  1. On the router or firewall, list port forwards and inbound rules for 9100 (and 9101 to 9107). Note the internal address each one points to.
  2. Check whether the printer has a public address of its own. Some offices give every device a routable IP. In that case there is no forward to find, and the fix is a firewall rule.
  3. Look the internal address up in the router’s DHCP lease list or the printer’s own network settings page to identify the model.
  4. Check the router’s UPnP mapping table for any entry that points at the printer’s address. A mapping you did not create yourself is worth removing along with UPnP itself.

How do you fix an exposed port 9100?

  1. Remove the forward or block 9100 inbound at the router or firewall. Re-run the outside test and keep the dated result.
  2. Restrict 9100 inside the network. Many printers let you limit which addresses may print, or turn raw printing off in their network settings. If everyone prints through a print server, allow 9100 only from that server.
  3. Prefer IPP over TLS where the printer and your clients support it. The CUPS documentation recommends IPP because it supports encryption and other security features.
  4. Turn off services you do not use, such as LPD, FTP or Telnet on the printer, and keep its firmware current.
  5. Set an admin password on the printer’s web page so nobody can re-enable raw printing or change its network settings.
  6. Keep guest Wi-Fi away from printers. A guest network that can reach 9100 has the same problem on a smaller scale.

Printers are often the forgotten device in an exposure review. If your office also runs cameras, a smart router or other gear, using port check to inventory IoT device exposure shows how to keep a running record across sites.

Which networks may you test?

Every check this page links to is for assets you own or are explicitly authorized to test. Never scan, probe, or attempt to connect to a network or device you don’t control. AdminKit’s active checks only ever run against the IP making the request or an asset you’ve verified ownership of. See our Disclaimer and Acceptable Use Policy for the full terms.

This guide is general information, not a security audit of your specific network — see our disclaimer for what AdminKit's guidance does and does not commit to.

Frequently asked questions

What is port 9100 on a printer?

It is the raw printing port, also called AppSocket or JetDirect after the HP JetDirect network cards it came from. The client opens a TCP connection and sends the print data straight to the printer, which processes it. CUPS and the Windows Standard TCP/IP port both use 9100 as their default for this kind of printing.

Does raw printing on port 9100 need a password?

No. The CUPS documentation says the AppSocket protocol offers no security and is often an attack vector with printers, and recommends the Internet Printing Protocol, which supports encryption and other security features. Anyone who can open a connection to 9100 can send data the printer will act on.

Does AdminKit's port check test port 9100?

No. The port check tests a fixed list of nine TCP ports (23, 554, 1883, 8883, 502, 7547, 80, 443, 8080) on the public IP you connect from. Port 9100 is not on the list, so a clean result says nothing about raw printing. Test 9100 by hand from outside your network, against your own address only.

Why did my printer print garbage after a port scan?

Printers on 9100 often print whatever arrives. Nmap's documentation explains that its version detection skips TCP ports 9100 to 9107 by default for exactly this reason: printers there tend to print pages full of the probes it sends. A scanner without that exclusion, or one run with the all-ports option, can cause the same result.

Should I turn off port 9100 entirely?

Only if nothing on your network prints through it. Many print servers and older drivers still use raw printing. Block 9100 from the internet in every case, then limit which internal hosts may use it, or move clients to IPP over TLS if the printer and your print server support it.

Want AdminKit to watch this for you?

Free checks tell you the state today. Protective DNS and monitoring tell you when it changes.

Huy Nguyen (David), Founder and CEO of Netbase JSC

Talk to an expert

Huy Nguyen (David), Founder & CEO, Netbase JSC

Ask whether this fix applies to your setup, or get a second pair of eyes on your DNS and mail records.