HP LaserJet P2035n not recognized as pirinter by router

The HP LaserJet P2035n printer is ethernet or usb connected to router.  I tried both.  Printer not recognized by PrintShare.

It does not auto attach the first time. You have to open print share and then manually attach once. Then it attaches. Then tick the auto attach button.

This only works on usb. The ip would be best so all you have to do is add it through windows, not wd app