If for some reason you have trouble communicating, the second option would be IPP. Note: We usually recommend choosing HP JetDirect Socket for HP LaserJet printers. Select the appropriate option for your printer. IP printers have three printing protocols to choose from.If the printer does not automatically appear with the Default icon selected, click the IP button on the toolbar.If the printer automatically appears when the Default icon is selected, select that and skip to step 11.Click the Add printer (+) icon at the bottom of the Printers pane to open the Add Printer window.If the padlock icon in the lower left corner of the System Preferences window is locked, click it and enter an administrator name and password to unlock it.From the View menu choose Printers & Scanners.
Turn the printer on and allow it to sit for a few minutes so the router can assign the printer an IP address. How to install an HP LaserJet printer on a Mac computer using the printer IP address