Use these steps to find an HP printer's IP address: Use the printer to print a network setup sheet. The IP address may be found on the printer's control panel. Check the network settings of the printer using the HP Printer Assistant programme on your PC. Enter "arp -a" into the command line on your computer to get a list of all the devices connected to your network and the IP address of the printer.
https://printersofflines.com/hp-printer-offline/hp