[avahi] Getting avahi up and running

Barney barney.dalton at gmail.com
Thu Nov 10 14:04:54 PST 2005


I have been trying to get avahi up and running on a laptop running
Debian/Linux but am not able to get it to see other devices on the network.
My aim is for rhythmbox to be able to see my iTunes shared music on an XP
machine (both are connected via a router). I have had success with the XP
machine seeing shared music on the Linux latop but not the other way round
(see thread at http://mail.gnome.org/archives/rhythmbox-devel/2005-November/msg00056.html
for background). When I run avahi-discover on the linux box I get the
following:

Browsing domain 'local' on any.0 ...
Browsing for services of type '_daap._tcp' (iTunes Audio Access) in domain
'local' on wlan0.2 ...
Browsing for services of type '_workstation._tcp' (Workstation) in domain
'local' on wlan0.2 ...
Found service 'laptop' of type '_daap._tcp' (iTunes Audio Access) in domain
'local' on wlan0.2.
Found service 'bunkerbay [00:12:17:bd:78:00]' of type '_workstation._tcp'
(Workstation) in domain 'local' on wlan0.2.
Service data for service 'laptop' of type '_daap._tcp' (iTunes Audio Access)
in domain 'local' on wlan0.2:
Host bunkerbay.local (192.168.1.67 <http://192.168.1.67>), port 3689, TXT
data: ['org.freedesktop.Avahi.cookie=3578020801']
Service data for service 'bunkerbay [00:12:17:bd:78:00]' of type
'_workstation._tcp' (Workstation) in domain 'local' on wlan0.2:
Host bunkerbay.local (192.168.1.67 <http://192.168.1.67>), port 9, TXT data:
['org.freedesktop.Avahi.cookie=3578020801']

where 192.168.1.67 <http://192.168.1.67> is the ip address of the linux
boxso there is no mention of the XP machine. This is while the XP machine is
on and running iTunes with sharing enabled. The XP machine can see and play
music from the laptop. Running tcpdump on the laptop produces output like:

bunkerbay:/home/bdalton# tcpdump ip multicast
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on wlan0, link-type EN10MB (Ethernet), capture size 96 bytes
21:36:04.710307 IP 192.168.1.67.5353 > 224.0.0.251.5353: 0 [4a] [5q] PTR?
_serv ices._dns-sd._udp.local.[|domain]
21:36:04.855618 IP 192.168.1.67.5353 > 224.0.0.251.5353: 0*- [0q]
2/0/0[|domain ]
21:36:04.809693 IP 192.168.1.67.5353 > 224.0.0.251.5353: 0 [1a] [2q] A?
bunkerb ay.local. AAAA? bunkerbay.local. (55)
21:36:05.708670 IP 192.168.1.67.5353 > 224.0.0.251.5353: 0 [3a] [3q] PTR?
_serv ices._dns-sd._udp.local.[|domain]
21:36:07.736383 IP 192.168.1.67.5353 > 224.0.0.251.5353: 0 [3a] [3q] PTR?
_serv ices._dns-sd._udp.local.[|domain]
21:36:11.737762 IP 192.168.1.67.5353 > 224.0.0.251.5353: 0 [3a] [3q] PTR?
_serv ices._dns-sd._udp.local.[|domain]
21:36:19.738516 IP 192.168.1.67.5353 > 224.0.0.251.5353: 0 [3a] [3q] PTR?
_serv ices._dns-sd._udp.local.[|domain]
21:36:35.741096 IP 192.168.1.67.5353 > 224.0.0.251.5353: 0 [3a] [3q] PTR?
_serv ices._dns-sd._udp.local.[|domain]

all the packets seem to originate from the laptop
(192.168.1.67<http://192.168.1.67>)
and there is no log of packets coming from the XP machine
(192.1.67.64<http://192.1.67.64>
).

My ifconfig looks like:
bunkerbay:/home/bdalton# ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 <http://127.0.0.1> Mask:255.0.0.0 <http://255.0.0.0>
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:30978 errors:0 dropped:0 overruns:0 frame:0
TX packets:30978 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4235300 (4.0 MiB) TX bytes:4235300 (4.0 MiB)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

wlan0 Link encap:Ethernet HWaddr 00:12:17:BD:78:00
inet addr:192.168.1.67 <http://192.168.1.67>
Bcast:192.168.1.255<http://192.168.1.255>Mask:
255.255.255.0 <http://255.255.255.0>
inet6 addr: fe80::212:17ff:febd:7800/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:888 errors:0 dropped:0 overruns:0 frame:0
TX packets:998 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:370049 (361.3 KiB) TX bytes:446509 (436.0 KiB)
Memory:22000000-22001fff

Anyone have any idea about what might be wrong or how I can diagnose
further?
Thanks
Barney

p.s.
Version info:
bunkerbay:/home/bdalton# avahi-daemon -V
avahi-daemon 0.5.2
bunkerbay:/home/bdalton# uname -a
Linux bunkerbay 2.6.14-1-686 #1 Tue Nov 1 15:51:43 JST 2005 i686 GNU/Linux
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/avahi/attachments/20051110/fd9fe81b/attachment.html


More information about the avahi mailing list