I think this solution works for other HP printers with this error message because I found this in a forum for a completely different kind of HP printer.
Do the following:
-
From the Windows setting go into the Devices
-
Select Printers & Scanners
-
Click on your printer with the left mouse and click on the Manage button when it comes up as an option
-
Select the Printer Properties option
-
Click on the Ports tab
-
Click on Add Port
-
Select Standard TCP/IP Port
-
Click New Port, then follow the Next prompt
-
Get the IP address from your printer and enter it into the prompt, then the Port Name will fill in automatically also (the IP address is quite often 192.168.X.X, where you need to fill in the X with the number it provides you on the printer)
-
Printer should be working properly now.