Don’t user HP Device Manager (hp-tools or hp-setup) for this. There is a bug and you will likely see an error about firewall. Use kcm printer manager (the page in SystemSettings) or Cups instead. Either is easier than hp-setup anyway.
To run kcm printer manager from Konsole:
$ kcmshell5 kcm_printer_manager
To run Cups open Falkon (or other browser) and type in url bar: