I met the same problem today. I have a server A, and a printer, and a Linux machine B, and some Windows machines C,D,... On Windows, I just follow this, it worked well. But when I try to add the printer for my Linux machine B (following the same steps with you), it just showed me 'Failed to add new printer'. (Ubuntu 20.04)
I don't know whether you have solved it, but I just solved it and am willing to share my solution, hope can help you :-)
My solution:
use command line instead of GUI. Run this on my machine.
sudo lpadmin -p LaserJet -E -v http://192.168.1.9:631/printers/HPPrinter
lpadmin
is a tool specific for CUPS printer setting up. you can search for Google for more detailed usage.
In my command above, LaserJet
is the name you want to assign the printer, and the address after -v
is your address of printer. Mine is just for example, you should modify it according to yourself.
After running this in terminal, the printer showed up in [Settings]->[Printers].
In the end, I find it always a good choise to use command-line if you meet any problem in GUI operation. Because command-line will, if operation not successful, give you more detailed error log or sth like that. :-)
This is also why I prefer Linux instead of Windows when programming and developing my project.