@JoHnNy176, Welcome to HP Support Community!
Use HP Print and Scan Doctor
Download HP Print and Scan Doctor and run the program. It will automatically diagnose and fix any printer connectivity issues.
For more information, go to https://support.hp.com/us-en/topic/printscandoctor
If the issue persists, try adding a TCP/IP port.
- Print a Network Configuration Report from the Printer Settings or Wireless menu.
- Right-click your printer, select Printer Properties, click the Ports tab and then click Add Port.
- Select Standard TCP/IP Port, and then click New Port.
- Follow the instructions to add a new port using the information listed on the Network Configuration Report.
- Try printing.
Also, assign manual IP to the printer-
The steps on how to set a manual IP address can be found here.
For the DNS servers please use 8.8.8.8 for the Manual Preferred DNS Server and 8.8.4.4 for the Alternate DNS server. These are Google’s public DNS servers.
Hope this helps! Keep me posted.
Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution. Click the “Kudos/Thumbs Up" on the bottom right to say “Thanks” for helping!
TEJ1602
I am an HP Employee