[avahi] Advertising a network printer for use with Airprint

dclist dclist at gmail.com
Sun Nov 18 17:23:22 PST 2012


I am trying to add Airplay-compatible zeroconf advertising for a HP
Laserjet 2300 which is connected directly to the network. In particular I
am not using CUPS.

I am able to see the service with avahi-browse -a but iOS does not seem to
find it. What am I doing wrong?

The following is my services file. I also have an entry in /etc/avahi/hosts
with
192.168.2.11 hp-laserjet-2300.local

<service-group>
<name replace-wildcards="yes">HP LaserJet 2300</name>
<service protocol="ipv4">
<host-name>hp-laserjet-2300.local</host-name>
<type>_printer._tcp</type>
<port>515</port>
<txt-record>product=(HP 2300 Laser Printer)
pdl=application/postscript,application/vnd.hp-PCLXL Color=F
Collate=T Staple=F</txt-record>
</service>
<service protocol="ipv4">
<host-name>hp-laserjet-2300.local</host-name>
<type>_ipp._tcp</type>
<port>631</port>
<txt-record>priority=20 product=(HP 2300 Laser Printer)
pdl=application/postscript,application/vnd.hp-PC
LXL Color=F Collate=T Staple=F</txt-record>
</service>
<service protocol="ipv4">
<host-name>hp-laserjet-2300.local</host-name>
<type>_pdl-datastream._tcp</type>
<port>9100</port>
<txt-record>product=(HP 2300 Laser Printer)
pdl=application/postscript,application/vnd.hp-PCLXL Color=F
Collate=T Staple=F</txt-record>
</service>
</service-group>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/avahi/attachments/20121118/f050b790/attachment.html>


More information about the avahi mailing list