Printing a page for network settings will show your HP printer's IP address. Go to the Network or Wi -fi menus on the printer control panel. Look for the print settings. When you select this option, a page containing the printer's current IP address will be printed. You may also search for it by login into your router and searching for connected devices.
https://printersofflines.com/blog-post/best-ways-to-locate-your-hp-printer-ip-address/