I had a shared printer working on my 19.10 Ubuntu, I used these advices to set it up, expecially this one (even because the suggested system-config-samba isn't anymore advailable with since 18.04)
The trick I had to do using CUPS without samba was to connect to the printer at http://[serverip]:631/printers/[printer-name-here] as opposed to trying to add a local port at the IP address of the server. – ernie Sep 28 '12 at 7:21
With all those settings and this simple http trick, it worked just fine for months, but for some unknow reason YESTERDAY it stopped. Any time I tried to connect from a(ny) Windows pc it always says it's impossible to reach.
The printer works fine from other Linux or Mac. So I uninstalled and reinstalled the printer in windows control pannel (as suggested in windows support site), the same error occured.
Oddly enough, after hours of googling, I couldn't find anything about this error...!
I wonder what happened.