Guides

Raspberry Pi print server: share a USB printer and print from anywhere

Turn a Raspberry Pi into a print server with CUPS, share a USB printer on your network and print to it from anywhere without a VPN or open ports.

Updated on December 3, 2026

An old USB printer, a Raspberry Pi and twenty minutes are enough to give every computer and phone in the house a network printer. The Pi runs CUPS, the printing system of Linux and macOS, and shares the printer on your network. This guide shows the setup step by step. It also covers what a plain CUPS print server cannot do: printing to it from outside your home, and how to add that without a VPN or port forwarding.

What a Raspberry Pi print server does

A print server takes print jobs from the network and passes them to a printer. Many printers have one built in. Older USB printers do not: they only print for the one computer they are plugged into. A Raspberry Pi connected by USB turns such a printer into a network printer that everyone at home can use, without a computer that has to stay on.

The Pi is well suited for the job. It is small, quiet, draws only a few watts and runs around the clock. CUPS supports thousands of printers, either driverless over IPP Everywhere or with the driver packages of Raspberry Pi OS.

What you need

  • A Raspberry Pi with network access over Ethernet or Wi-Fi. A Pi Zero 2 W is enough for a home printer; a Pi 3, 4 or 5 is faster with large documents. For printing from anywhere (see below) the Pi needs the 64-bit Raspberry Pi OS, which runs on the Pi 3, 4, 5 and Zero 2 W.
  • Raspberry Pi OS Lite on a microSD card, with SSH enabled in Raspberry Pi Imager.
  • The printer and a USB cable. Network printers work too: CUPS can share them as well.

Step 1: set up CUPS on the Raspberry Pi

Connect to the Pi over SSH, install CUPS, give your user the right to manage printers and allow access from your network:

sudo apt update && sudo apt install -y cups
sudo usermod -aG lpadmin $USER
sudo cupsctl --remote-admin --share-printers
sudo systemctl restart cups

Many printers need a driver package. The most common ones are printer-driver-gutenprint (many inkjet printers), hplip (HP) and printer-driver-brlaser (Brother laser printers). Install the one that fits with sudo apt install.

Step 2: add and share the printer

  1. Plug in the printer and open https://raspberrypi.local:631 in a browser on your computer (use the Pi's IP address if the name does not resolve). Accept the warning about the self-signed certificate.
  2. Go to Administration → Add Printer and sign in with the user name and password of the Pi.
  3. Choose the USB printer, give it a short name such as Office and tick Share This Printer.
  4. Choose the driver: "IPP Everywhere" or "driverless" if offered, otherwise the model from the list.
  5. Print a test page from the printer's page in CUPS.

Step 3: print from computers and phones at home

The Pi announces shared printers on the network (Bonjour, through the preinstalled avahi-daemon):

  • macOS, iPhone and iPad usually show the printer right away, also through AirPrint when the printer has a driverless driver.
  • Android finds it through the built-in print service on most devices.
  • Linux adds it automatically or under the printer settings.
  • Windows: go to Settings → Printers & scanners → Add device → "The printer that I want isn't listed" → "Select a shared printer by name" and enter http://raspberrypi.local:631/printers/Office.

That covers printing at home. As soon as you leave the house, the printer is gone.

The limit: printing from outside your home

CUPS only answers inside your home network. To print from the office, a hotel or a phone on mobile data, a job has to get from the internet to the Pi. There are three ways:

OptionEffortSecurityNote
Port forwarding on the routerlowpoorthe print server is open to the whole internet
VPN (WireGuard, Tailscale) on the Pimediumgoodevery device needs the VPN switched on to print
Cloud print service with a relaylowgoodthe Pi only connects outbound, no open ports

We advise against port forwarding. CUPS and printers are not built to face the internet: they are found by scanners for connected devices, receive few security updates and often transmit without encryption. A VPN is secure but needs to run on every laptop and phone, and family members or colleagues need their own access.

Step 4: print from anywhere with Sealed Print

Sealed Print is a cloud print service. Its relay client runs on the Pi next to CUPS, fetches print jobs from Sealed Print and hands them to the CUPS printers. It only opens outgoing connections, so nothing on your router changes.

  1. Download the relay client for Linux (ARM64) from the download page and copy it to the Pi, or copy the download link and fetch the file on the Pi with curl.

  2. Install it as a system service. It shows a code and a link:

    chmod +x sealedprint-relay-…
    sudo ./sealedprint-relay-… install --all-users
    
  3. Open the link on any device, sign in to Sealed Print and confirm the code.

  4. In Sealed Print, go to Computers and switch on Shared for the CUPS printer. It is now a destination.

From then on you print to the Pi from anywhere:

  • Laptops add a personal printer URL once as a network printer. Windows, macOS, Linux and ChromeOS use their built-in driver. See Add the printer URL on a computer.
  • Phones and tablets upload documents in the web app or share them to it, see How to print from your phone.
  • Email: on the Team and Business plans (and on Free with pay per use), an inbound email address prints attachments and email texts.
  • Programs and automations send documents to an API endpoint, for example from Home Assistant.

If the Pi or the printer is off, the job waits in the queue and prints as soon as both are back. The detailed setup is in the guide Install the relay client.

Does the Pi already run Home Assistant?

Home Assistant OS does not allow installing CUPS. For that case there is the app Sealed Print Relay, which turns Home Assistant into a print server for network printers. You add its repository in the app store under Settings → Apps; it is not in the Marketplace (formerly HACS), which only installs integrations, dashboards, themes and templates. See Home Assistant as a print server. A USB printer then needs a CUPS server on another device, for example a second Pi.

Which Raspberry Pi for a print server?

ModelCUPSRelay client (print from anywhere)
Pi Zero W, Pi 1, Pi 2yes, slow with large filesno (32-bit only)
Pi Zero 2 Wyesyes, with 64-bit Raspberry Pi OS
Pi 3, Pi 4, Pi 5yesyes, with 64-bit Raspberry Pi OS

For a printer at home a Pi Zero 2 W is enough. A Pi 4 or 5 converts large PDFs and photos noticeably faster.

Frequently asked questions

Can a Raspberry Pi be used as a print server?

Yes. With CUPS, a Raspberry Pi shares USB and network printers with every computer and phone on the home network. It draws only a few watts and can run around the clock.

Does a Raspberry Pi print server work with AirPrint?

Usually yes. CUPS announces shared printers through Bonjour, and iPhones and iPads print to them through AirPrint when the printer uses a driverless or IPP Everywhere driver. With older vendor drivers, AirPrint may not show the printer.

Can I print to my Raspberry Pi print server from outside my home?

Not with CUPS alone, because it is only reachable inside the home network. A VPN or a cloud print service with a relay on the Pi makes it reachable from anywhere. Avoid opening port 631 on the router.

Which Raspberry Pi is best for a print server?

A Pi Zero 2 W is enough for one printer at home. For large documents or several printers, a Pi 4 or Pi 5 is faster. For printing from anywhere with the Sealed Print relay client, the Pi needs the 64-bit Raspberry Pi OS.

Do I need CUPS for printing from anywhere?

For a USB printer, yes: CUPS drives the printer, and the relay client passes the jobs to CUPS. A network printer that speaks IPP can also be reached without CUPS, for example through the Docker image of the relay client or the Home Assistant app.

What does printing from anywhere with Sealed Print cost?

The relay client is free. Billing is per delivery, meaning one job to one printer; the plans are on the pricing page.

Print and sign from anywhere

Signers sign by email link without an account; everyone receives the sealed PDF. On Free you pay per signature only.

More guides and templates