When facing an offline issue, you can go to 123.hp.com to find the needed support. Try the following measure.
Check the placement of every USB cable that is connected.
Check if your HP printer is properly connected to your system end.
Check whether your printer is properly connected with your Wi-Fi settings.
Ensure that your printer and computer are connected to a single Wi-Fi network.
Check your modem and router connectivity.