(yet another) Help connecting Tumbleweed to HP printer

So, I have the same problem as many before me, but I wasn’t able to find a solution that worked for me in the old threads…

I’ve just installed Tumbleweed and I need to connect to my HP Deskjet printer-scanner. I know it is compatible because my previous laptop, which was also running Tumbleweed, was connected to it. However, even with the history of my previous laptop, I wasn’t able to reproduce the process that allowed me to do that successfully.

I have all hplip-related packages installed, but the search (from YaST → Printers or from HP Device Manager or from su --c "hp-setup") doesn’t show my printer. It is suggested that there is an issue with the firewall (and I never understood much about Linux firewalls…).

I’m trying to connect across a Wi-Fi network, to which both my computer and printer are connected (I know the printer is connected because I can print through network from other devices).

Can anyone help…?

one thing I’ve found is that if your connecting to the printer wirelessly you will want to set the printer up with a permanent IP address. outside the normal range for DHCP. this will ensure the printer address does not change when other item are added to the net work.
I also often use hplip-gui to set up my printers works well.
Good luck.

While you are in the process of discovering/adding the printer, you could stop the firewall temporarily (assuming active).

sudo systemctl stop firewalld

1 Like

It was!
Amazing, that did the trick. So simple! I thought I remembered way more complicated commands related to the firewall… I’ve bookmorked your answer I’m sure I will need it again in the future.

Good for testing but you really need a firewall active. You need to open the recommended ports for the printer

Well, since I restarted the service right after adding the printer (and it still works…)
Maybe you can share more information so that I see why I would do something with the ports?

You don’t need to once you have CUPS configured manually for your printer. You can allow mDNS/DNS-SD for service discovery if desired, but not required for this context.