How to set up a CUPS print server running Fedora Server for an HP printer, and connect to it from your Fedora Workstation:
Run these commands on the server:
dnf install cups hplip
systemctl start cups
firewall-cmd --zone=FedoraServer --add-service=ipp
firewall-cmd --zone=FedoraServer --add-service=ipp --permanent
Then go to the CUPS Web admin at http://[server]:631
and go to the "Administration" page.
Check the "Share printers connected to this system" box and save.
Click the "Add Printer" button, and fill out all your printer's information.
Then, on your workstation, go to add the printer and type in the server's domain name/IP. After you add the printer, click on the printer model and choose "Select from database..." Pick the manufacturer "Raw" and the device type "Raw queue." Otherwise you will get weird untraceable errors.
CUPS on Fedora only listens on localhost by default. So in addition to opening the firewall, you also need to fix that:
and you need to enable remote administration as well. This command does the trick: