Port 9100: Printer Use, Security Risks and How to Close It

ObaidaAlsulaiman

Obaida Al-Sulaiman, Information Security Manager at ScanTitan,

Office printer connected to a laptop behind a shield and a badge marked 9100
Table of Contents

Port 9100 is the default TCP port for raw network printing, also called JetDirect, AppSocket or PDL data stream printing. A computer connects, streams data to the printer and closes the connection. The simple design includes no login and no encryption, so the port belongs on a trusted network only. Prometheus Node Exporter also listens on 9100 by default. This guide explains both uses, the known risks and how to check, open or close the port.

Quick answerPort 9100 is normal on an office printer and dangerous on the public internet. Find out which program owns it, then limit access to the machines that need it.

What Is Port 9100?

Port 9100 is the usual network port for sending data straight to a printer over the Transmission Control Protocol (TCP). The Internet Assigned Numbers Authority registry lists it under the names pdl-datastream and hp-pdl-datastr. PDL means page description language, the instructions that tell a printer what a page looks like, such as PostScript or HP Printer Command Language (PCL). The data goes to the printer’s input buffer without a queue protocol such as LPD, although your computer’s print spooler may still hold the job first. Printers from many makers support the port, as do print servers that connect older USB printers to a network. An open port 9100 does not prove that a device is a printer, because any program can listen on it. Check the owner before you act on a scan result.

Cloud Explainers shows what a port is and tests printer port 9100, in a clip of under one minute.

What Is JetDirect on Port 9100?

JetDirect on port 9100 is HP’s name for network printing that sends data directly to the device. HP introduced it with its JetDirect network hardware, and other vendors adopted the same method. You will also see it called AppSocket, raw TCP printing or PDL data stream. The CUPS printing system, used on Linux and macOS, calls it AppSocket and writes the printer address as socket://address:9100. Windows offers it as a Standard TCP/IP Port set to RAW, where the default destination port is 9100. These names describe the same basic connection, even though each system labels it differently in its settings.

What Protocol Does Port 9100 Use, TCP or UDP?

Port 9100 uses TCP for printing. The registry reserves the number for both TCP and the User Datagram Protocol (UDP), but raw print jobs travel over a TCP connection, which resends lost data and keeps it in order. Raw printing adds no job protocol of its own. The printer processes whatever arrives, whether that is plain text, PCL, PostScript or Printer Job Language (PJL), a command language for settings and status. The connection also works in both directions, so a device can send status or error replies. This explains why stray traffic can come out on paper. A browser request or a careless test sent to the port may print as pages of unreadable text.

What Is Port 9100 Used For?

Port 9100 is used mainly to send print jobs from computers and print servers to network printers. Offices rely on it because setup takes only the printer’s address, and nearly any operating system can use it without a separate queue on the device. Windows, CUPS and many print management products offer it as a standard choice. Label printers and multifunction devices often accept it too. Some devices also answer PJL status queries on the same connection, which lets software read the model or the message on the display. The second common user is monitoring software: Node Exporter serves system metrics on the same number. Printing and metrics have nothing else in common, so identify the program before you troubleshoot.

How Is Port 9100 Different From Ports 515, 631, 161 and 445?

Port 9100 differs from the other printing related ports by sending raw data with no queue protocol and no built in security. Some guides call 9100 the default for LPD or IPP, but the registry assigns LPD to port 515 and IPP to port 631. Windows file and printer sharing uses port 445, which carries far wider risks than printing alone. A printer may answer on several of these ports at once, so closing 9100 leaves the others active. Review each one separately. Use the table to decide which services you need, then turn off the rest on the device and block them at the firewall.

PortServiceJob in printingBuilt in protection
TCP 9100Raw printingStreams data to the printerNone
TCP 515Line Printer Daemon (LPD)Sends jobs to a named queueNo encryption
TCP 631Internet Printing Protocol (IPP and IPPS)Submits and manages jobsIPPS encrypts; login depends on setup
UDP 161Simple Network Management Protocol (SNMP)Reads printer statusDepends on version; SNMPv3 is strongest
TCP 445Server Message Block (SMB)Shares printers and files in WindowsLogin based; patching essential
Printing ports compared: 9100 raw printing, 515 LPD, 631 IPP, 161 SNMP and 445 SMB

Why Does Node Exporter Use Port 9100?

Node Exporter uses port 9100 because that is its default listening port for publishing metrics to Prometheus, an open source monitoring system. The exporter runs on a server and answers over HTTP at /metrics with processor, memory, disk, network and operating system details. That information helps an attacker map your server, and the Prometheus security model says such endpoints should not be exposed to public networks like the internet without appropriate measures. Bind the exporter to a private address with --web.listen-address, and allow only your Prometheus server through the firewall. For encryption and passwords, pass --web.config.file with a web configuration file that sets TLS and bcrypt hashed users. TLS support is still marked experimental.

Is Port 9100 Secure?

No, port 9100 is not secure for printing, because raw connections have no authentication or encryption. Anyone who can reach the port can usually try the following, depending on the printer and its settings.

  • Unauthorized printing: Unauthorized printing is a job sent by someone with no right to use the device, from nuisance pages to fake notices.
  • Eavesdropping: Eavesdropping is the reading of print data as it crosses the network in readable form.
  • Settings abuse: Settings abuse is the use of printer commands to read device details, change the display message or alter configuration.
  • Stored file access: Stored file access is the reading or changing of files on devices whose commands expose internal storage.
  • Denial of service: Denial of service is traffic that freezes, crashes or occupies a printer so real jobs cannot run.

The danger rises sharply when a router forwards the port from the internet. Inside an office, a compromised laptop or a guest device on the same network can still reach it.

What Are Known Port 9100 Vulnerabilities?

Known port 9100 vulnerabilities include printer flaws that crash devices, expose the details needed for takeover or run code. The table lists examples we checked in the National Vulnerability Database (NVD) on 1 December 2026, with scores from the Common Vulnerability Scoring System (CVSS). It is not a full list, and none of these four appeared in the CISA Known Exploited Vulnerabilities catalog on that date.

CVEAffected devicesRole of port 9100CVSS
CVE-2024-51982Many Brother models and some from other makersA PJL command crashes the device7.5
CVE-2024-51978Many Brother models and some from other makersPJL is one way to learn the serial number used to derive the default password9.8
CVE-2026-42626HP ENVY 5000 series, as described in the recordA held connection stops the printer responding5.9
CVE-2017-2741Certain HP PageWide and OfficeJet Pro firmwareTenable researchers reached code execution through PJL9.8

Rapid7, which reported the Brother flaws, counted 748 affected models across five vendors for the full set of eight. Firmware cannot fully fix CVE-2024-51978, so apply the vendor workaround and set your own administrator password.

How Do You Check if Port 9100 Is Open?

You check if port 9100 is open by testing the connection from another computer and then identifying the program that listens.

  1. Find the device’s IP address on its settings screen or in your router.
  2. Test from Windows PowerShell with Test-NetConnection 192.168.1.50 -Port 9100, using your own address.
  3. Run nc -vz 192.168.1.50 9100 on Linux or macOS, which checks the connection without sending a print job.
  4. Scan with nmap -p 9100 192.168.1.50, only on equipment you own or may test.
  5. Identify a listener on a Windows computer with netstat -ano | findstr :9100, then match the process ID in Task Manager.
  6. Inspect a Linux server with sudo ss -ltnp | grep 9100.
  7. Check your public address from outside your network to confirm the port does not answer.

Nmap leaves ports 9100 to 9107 out of version detection by default, because probes can make some printers print. Keep that protection in place when you scan printer networks.

How Do You Open Port 9100 on Windows 11?

You open port 9100 on Windows 11 by adding an inbound firewall rule limited to your local network, which is needed only when the PC itself receives data on that port.

  1. Confirm the direction. Printing from your PC to a printer is outbound traffic, which Windows Firewall normally allows without a new rule.
  2. Open PowerShell as administrator if the PC hosts a service that must accept connections.
  3. Create the rule with New-NetFirewallRule -DisplayName "Allow TCP 9100 local" -Direction Inbound -Protocol TCP -LocalPort 9100 -RemoteAddress LocalSubnet -Profile Private -Action Allow.
  4. Test the connection from a second computer on the same private network.
  5. Remove the rule with Remove-NetFirewallRule -DisplayName "Allow TCP 9100 local" once the service no longer needs it.

To add a network printer instead, create the printer port with Add-PrinterPort -Name "RAW 192.168.1.50" -PrinterHostAddress "192.168.1.50" -PortNumber 9100, then assign it to the printer. Never forward port 9100 on your router for remote printing. Use a virtual private network (VPN) or a managed printing service.

How Do You Disable or Secure Port 9100?

You disable or secure port 9100 by blocking outside access, limiting inside access and turning off raw printing where nothing depends on it.

  1. List every printer, print server and monitoring exporter that uses the port.
  2. Delete any router rule that forwards port 9100 from the internet.
  3. Restrict access so only print servers or approved subnets reach the printers, using a separate printer network where possible.
  4. Move clients to IPPS on devices that support it, and require a login if available.
  5. Disable raw or port 9100 printing in the printer’s web page after clients have moved. On many Xerox devices the switch sits under Connectivity and Port Settings.
  6. Replace default administrator passwords.
  7. Update printer firmware and follow vendor security notices.
  8. Verify that printing still works and that the port is closed to everyone else.

For public addresses, the ScanTitan network vulnerability scanner tests which services answer from the internet. It cannot see printers on a private network from outside.

Steps to secure port 9100: list devices, block outside access, restrict, disable and verify

Port 9100 FAQ

Is it safe to port forward 9100?

No, it is not safe to port forward 9100, because anyone on the internet could then send data to your printer without logging in. Use a VPN or a managed printing service for remote jobs.

Is traffic on port 9100 encrypted?

No, traffic on port 9100 is not encrypted in standard raw printing. Anyone able to capture the network traffic may read the job. IPPS provides encrypted printing on supported devices.

Can you change port 9100 to another number?

Yes, you can change port 9100 to another number if the printer supports it and every client uses the new value. A different number does not add security, so keep access rules in place.

What happens if I disable port 9100?

Disabling port 9100 stops any computer or application that still sends raw jobs to that printer. Move those clients to another method first, then test printing, scanning and management tools.

How do I find the port 9100 setting on an HP printer?

You find the port 9100 setting on an HP printer in its embedded web server, the settings page you open by typing the printer address into a browser. Menu names differ by model, so check its network or security section.

Can attackers reach port 9100 from the internet?

Yes, attackers can reach port 9100 from the internet when a printer has a public address or a router forwards the port. A firewall that blocks inbound connections prevents that direct access.

What should I do if port 9100 is already in use?

If port 9100 is already in use, find the listening process before stopping anything. A second monitoring exporter or print service may own it. Stop the duplicate or give one service a different port.

Sources. IANA, Service Name and Port Number Registry; OpenPrinting CUPS, Network Protocols; Microsoft, Standard port monitor for TCP/IP and New-NetFirewallRule; Prometheus, Security model; NVD records for CVE-2024-51982, CVE-2024-51978, CVE-2026-42626 and CVE-2017-2741.

o

Information Security Manager · Dubai, UAE · 12+ years InfoSec experience

Obaida specialises in web application security, vulnerability management, and external attack surface reduction for SMB and mid-market organisations. All ScanTitan content is reviewed against live scan findings before publication.

Share :

Facebook
LinkedIn

Continue reading