To fix the HP printer not connecting error first, we need to clarify that whether your printer was connected previously, but it's not connecting now, or else you are trying for the first-time setup. For the first case, you can try to restart your printer, router, and computer. Now print a network configuration report – click Wireless > Settings > click Network configuration report. Check the report and verify the connection status – Online, and ensure the network SSID name should be yours. If you are trying for a first-time setup, then maybe an antivirus firewall interrupts the wireless network connection. Try to connect after turning off the firewall. Hopefully, these measures will help you HP Printer not connecting.