On Thu, 2022-08-04 at 19:37 +0200, Gianluca Cecchi wrote:
Unfortunately the printer gets its ip via dhcp and yesterday I had to reboot it and it changed ip.
I don't think changing IPs should be part of your problem, but you can configure your DHCP server to always give a device the same IP. I'd always suggest doing that to things that are permanently part of your network, leave random allocation to things that only visit.
If your printer/scanner was first discovered by your computer automatically (as opposed to you having to manually configure everything), then it ought to do it again. Perhaps restarting printer/scanning software might retrigger things.
Thus far, over many years, I'd noticed that printing & scanning software only seemed to care about device names, not fixed IPs.
Though I'd be quite surprised if you couldn't configure such a HP printer/scanner to use a fixed IP within its front panel controls.
What else has changed in the meantime? Was there an update to xsane?