Run HPPSdr.exe from the download location on your computer.
Once HP Print and Scan Doctor opens, click Start, and then select your printer.
If your printer is not in the list, turn it off and on, and then click Retry.
If there is a connection problem, follow the instructions in HP Print and Scan Doctor.
If a screen prompts you to turn on printer updates, click Yes.
If a screen prompts you to make your printer the default printer, click Yes.
Try to print.
Assign a manual IP address and that should fix the issue.
Make sure there is U.S. letter or A4 size, unused, plain paper in the input tray.
On the printer control panel, touch the Setup icon .
Swipe down the display, and then touch Network Configuration Page.
Setting a Static IP Address
Once you know your printer’s IP address, entering it is pretty easy. Here’s what you do:
Run your Web browser.
In the Web browser’s address bar, type the IP address of your printer and press Enter. Assuming you entered the right address, the HP printer control panel should appear.
Click the Networking tab.
Under Connections, click Wireless.
Under IP Address Configuration, click Manual IP.
Enter the IP address, subnet mask, and default gateway in the appropriate boxes.
You can refer this HP document for more assistance:- Click here
Let me know how it goes.
To thank me for my efforts to help you, please mark my post as an accepted solution so that it benefits several others.
Sandytechy20 I am an HP Employee
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".