Hi
Welcome to the HP Support Community. I'd be happy to assist you with the connectivity issue.
To better assist you -
1) May I have the exact model name of the printer? Refer to this document for steps to find the product details. Do not share any of your personal information such as serial, phone number, email ID, etc.
2) How far is the printer located from the router?
3) Ensure the printer and router are connected to the same network?
4) Are you using a dual band router?
While you respond to that, try rebooting the devices -
1) Turn off the Router, Printer, and the computer/ mobile devices.
2) Wait for 60 seconds.
3) Turn on the Router first and wait for all the lights to stabilize.
4) Turn on the printer and allow it to configure itself.
5) Turn on the computer/ mobile devices.
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!
Have a great day!