Hp printer can be connected to a computer through three methods:
•Turn on both computer and HP printer.
•Connect the USB port Of your HP printer and your computer using a USB cable.
You can use the guided wireless set up wizard on the printer to connect the printer to your network.
•Switch on the HP printer, router, and computer, and disconnect the USB or Ethernet cables from your printer if any connected.
•Your computer should be connected to the same wireless network with which your printer is connected to.
•On the control panel of your HP printers, go to the setup, network or wireless menu and open wireless set up wizard to use the on-screen instructions so that your printer gets connected to your network.