Now, there is no further need to engage in the traditional methods as connecting in wireless networks means that computers can easily recognize the currently used printer name. In case you do this thing, you do not make the direct connection between the printer and computer. This attribute will really work in real time in case the HP printer has wireless functionality. But, one thing is confirmed that all HP printer drivers and modules do not have the same functionality. So, you must make sure that the printer is able to link the internet before proceeding. Source: https://www.easyprintersupport.com/setup-hp-printer/