Make sure your devices are properly connected with each other, and the network or the cable you use to connect these devices is normal. You can also try restarting your HP printer. Turn it off completely and unplug the power cord, leave it for a couple of minutes, and then plug the cord back and power on the printer.
Regards,
Will