04-10-2018, 06:05 PM
(04-10-2018, 05:23 PM)energyi Wrote:(04-10-2018, 03:12 PM)Tim Curtis Wrote: Try running the commands below and then post the output
pi@rp3:~ $ avahi-browse -a -t | awk '/IPv4/ && /moOde audio player:/ {print $7}' | sort
moode
rp1
rp2
rp3
rp4
rp5
pi@rp3:~ $ getent hosts rp1
192.168.1.170 rp1
pi@rp3:~ $
-Tim
moode
moode-3
<and>
198.105.254.23 rp1getent.Home
198.105.244.23 rp1getent.Home
198.105.254.23 hosts.Home
198.105.244.23 hosts.Home
198.105.254.23 rp1.Home
198.105.244.23 rp1.Home
energyi
@energyi
So what are the actual IP addresses for your moOde players and on what host did you execute these CLI (command-line interface) commands?
Your output, both in the image you posted earlier and here, looks a bit wonky. The image says the moOde player you were on detected two players, both named moode-3; the first CLI output you give says there are two players, named moode and moode-3; the second CLI output you show has doubled entries for each host.domain name listed but it gives the appearance that getent wasn't asked about hostnames moode or moode-3.
At the moment, I have three moOde r41 players attached to my LAN; their hostnames are moode, moode-41h, and moode-up.
From the UI of moode-41h, I get moode and moode-up displayed in the Players popup.
From the command line
Code:
pi@moode-41h:~ $ avahi-browse -a -t | awk '/IPv4/ && /moOde audio player:/ {print $7}' | sort
moode
moode-41h
moode-up
pi@moode-41h:~ $ getent hosts moode moode-41h moode-up
192.168.1.182 moode.fios-router.home
127.0.1.1 moode-41h <--- 127.0.1.1 is a local address since I'm on this host
192.168.1.184 moode-up.fios-router.home
As you see, there is no doubling of entries here.
Regards,
Kent