Use only standard lengh of USB cable, preferably HP cable - Q6264A HP Hi-Speed USB Cable (6 ft./1.8 m)
or C6520A HP USB Cable 2.0 (a-b) 3-metre.
Hope printer works fine if connected directly to computer through USB cable.
Please check printer server compatibility before purchase or use.