Opened 2 years ago

Closed 21 months ago

Last modified 21 months ago

#13223 closed bug (invalid)

Cannot print to HP printer using hostname

Reported by: vidrep Owned by: phoudoin
Priority: normal Milestone: Unscheduled
Component: Printing Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

hrev50881 x86_gcc2 HP Photosmart 2610 all-in-one Using either LPR or HP Jetdirect, I am able to print using the IP address, but it fails to print when using Hostname. However, I am able to print either way to both of my Epson printers. Is this a HP only printer issue or a Haiku issue?

Change History (10)

comment:1 Changed 22 months ago by phoudoin

Does your Epson printers are used over LPR or HP JetDirect too?

And if possible, could you show the address string of your LPR or HP JetDirect ?

Last edited 22 months ago by phoudoin (previous) (diff)

comment:2 Changed 22 months ago by vidrep

The Epson printers both work over LPR or HP JetDirect. Showing server names for each, LPR and HP JetDirect parameters.

Epson XP-820 and Epson NX625

Server Name: EPSON002D13 / EPSON66A22E

Queue Name (LPR): LPT1_PASSTHRU

Port (HP JetDirect): 9100

comment:3 Changed 22 months ago by vidrep

The HP Photosmart 2610 network settings are below:

Hostname: HPB469D3

IP Address: 192.168.1.76

Setting up this printer for HP JetDirect:

Server Name: HPB469D3

Port: 9100

Error: "Failed to connect to HPB469D3:9100!"

Substituting the IP address for the hostname will allow it to print OK.

comment:4 Changed 22 months ago by vidrep

Setting up the HP printer for LPR does not work either way.

Server name: 192.168.1.76

Queue name: LPT1_PASSTHRU

Error: "connect failed. errno = -2147454944"

Server name: HPB469D3

Queue name: LPT1_PASSTHRU

Error: "gethostbyname failed. errno = 0"

comment:5 Changed 22 months ago by vidrep

Here's the ticket that originally got me looking into the issue: https://dev.haiku-os.org/ticket/9278

comment:6 Changed 21 months ago by phoudoin

Sounds like Epson printers have some local DNS supports, not the HP ones.

comment:7 Changed 21 months ago by phoudoin

Does opening their web interface works from WebPositive ?

http://HPB469D3

?

comment:8 Changed 21 months ago by vidrep

I can access the web interface http://hpb469d3/ from Microsoft Edge, but not from Haiku Web+ or from Ubuntu Firefox.

comment:9 Changed 21 months ago by phoudoin

So, the "HPB469D3" name is not resolved on non-Netbios aware OS. And as we don't have support for ZeroConf/Bonjour, it's not resolved either under Linux by default.

I've no proof of that, but I wont be surprised that Epson firmware have a small DNS service that reply to query matching the printer name. As does many plug & and play network devices.

Doesn't seems an actual issue in print driver or haiku network.

Without dynamic resolution via ZeroConf or similar, what you can do is to add your HP printers ip addresses and hostnames in /boot/system/settings/network/hosts file.

EDIT: Instead of NetBIOS, it's most probably LLMNR aware OS that make a difference here...

Last edited 21 months ago by phoudoin (previous) (diff)

comment:10 Changed 21 months ago by phoudoin

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.