mikebrady / shairport-sync

AirPlay and AirPlay 2 audio player
Other
7.29k stars 574 forks source link

Not found #156

Closed HendrikRoth closed 5 years ago

HendrikRoth commented 9 years ago

Hello,

i installed shairport-sync on debian jessie on a odroid u3. build/install worked fine, starting too.

but my device is not found by any other device. Any idea how to debug this? My -vv output:

Looking for the configuration file "/etc/shairport-sync.conf".
Looking for configuration file at full path "/etc/shairport-sync.conf"
Output device name is "default".
Mixer device name is "default".
Mixer Control name is "Speaker".
Hardware mixer has dB volume from -48.000000 to 14.000000.
startup
statistics_requester status is 0.
daemon status is 0.
rtsp listening port is 5000.
udp base port is 6001.
udp port range is 100.
Shairport Sync player name is "Center".
Audio Output name is "alsa".
on-start action is "(null)".
on-stop action is "(null)".
wait-cmd status is 0.
mdns backend "avahi".
userSuppliedLatency is 0.
AirPlayLatency is -1.
iTunesLatency is -1.
forkedDaapdLatency is -1.
stuffing option is "0".
resync time is 2205.
allow a session to be interrupted: 0.
busy timeout time is 120.
tolerance is 88 frames.
password is "(null)".
ignore_volume_control is 0.
audio backend desired buffer length is 6615.
audio backend latency offset is 0.
volume range in dB (zero means use the range specified by the mixer): 0.
configuration file name "/etc/shairport-sync.conf" resolves to "/etc/shairport-sync.conf".
metdata enabled is 0.
metadata pipename is "(null)".
get-coverart is 0.
avahi: avahi_register.
avahi: register_service.
Avahi without metadata
mikebrady commented 9 years ago

Thanks for the report. It all looks fine. It seems like the mDNS advertising is not being seen. Sometimes it's due to firewall settings on the network itself or on a Windows PC's network setting. What are you trying to reach Shairport Sync from?

mikebrady commented 9 years ago

I guess another possibility might be if you have more than one network port, e.g. one Ethernet and one WiFi, it's advertising on the "other" one?

HendrikRoth commented 9 years ago

Wifi and Ethernet were connected, this is correct. I removed the wifi card. But i still don't find it. I am trying to reach the device via Mac OS X 10.11.1

HendrikRoth commented 9 years ago

IOS 9 is finding it now

Edit: Found it about 2minutes (in ios/spotify). Now disappeared again :(

mikebrady commented 9 years ago

There is a Bonjour Browser on the Mac and an app called Discovery for iOS. They allow you to see what is visible on mDNS. Might be useful.

HendrikRoth commented 9 years ago

In the bonjour browser i don't see the device either :( what i should mention: kodi(other device) is displayed as airplay device.

mikebrady commented 9 years ago

Okay, that could be a problem with Kodi possibly interfering with Shairport Sync. Kodi has its own implementation of AirPlay based on a library called "shairplay" and I don't really know anything about it. If you could remove or disable it – see http://kodi.wiki/view/AirPlay, which might be relevant – and see if Shairport Sync is visible, that would be interesting.

HendrikRoth commented 9 years ago

I deactivated the kodi device. Same problem

mikebrady commented 9 years ago

Thanks. It seems to me that it's still worth pursuing the mDNS angle. There is an app called avahi-browse, part of the avahi-utils package that can tell you what services can be see on the device itself. Here is what my Raspberry Pi can see:

$avahi-browse -ar
+   eth0 IPv4 B2D2AB9E0611@IQaudIO                          AirTunes Remote Audio local
+   eth0 IPv4 raspberry [xx:xx:xx:xx:xx:xx]               Workstation          local
+   eth0 IPv4 raspberrypi                                   Remote Disk Management local
=   eth0 IPv4 B2D2AB9E0611@IQaudIO                          AirTunes Remote Audio local
   hostname = [raspberrypi.local]
   address = [192.168.2.2]
   port = [5000]
   txt = ["pw=true" "txtvers=1" "vn=3" "sr=44100" "ss=16" "ch=2" "cn=0,1" "et=0,1" "ek=1" "sm=false" "tp=UDP"]
=   eth0 IPv4 raspberrypi [xx:xx:xx:xx:xx:xx]               Workstation          local
   hostname = [raspberrypi.local]
   address = [192.168.2.2]
   port = [9]
   txt = []
=   eth0 IPv4 raspberrypi                                   Remote Disk Management local
   hostname = [raspberrypi.local]
   address = [192.168.2.2]
   port = [22]
   txt = []
+   eth0 IPv4 Mike___s Mac Pro                              Microsoft Windows Network local
+   eth0 IPv4 Mike___s Mac Pro                              VNC Remote Access    local
+   eth0 IPv4 Mike___s Mac Pro                              Apple File Sharing   local
+   eth0 IPv4 Mike___s Mac Pro                              SSH Remote Terminal  local
+   eth0 IPv4 Mike___s Mac Pro                              SFTP File Transfer   local
=   eth0 IPv4 Mike___s Mac Pro                              Microsoft Windows Network local
   hostname = [Mikes-Mac-Pro.local]
   address = [192.168.2.1]
   port = [445]
   txt = []
=   eth0 IPv4 Mike___s Mac Pro                              VNC Remote Access    local
   hostname = [Mikes-Mac-Pro.local]
   address = [192.168.2.1]
   port = [5900]
   txt = []
=   eth0 IPv4 Mike___s Mac Pro                              Apple File Sharing   local
   hostname = [Mikes-Mac-Pro.local]
   address = [192.168.2.1]
   port = [548]
   txt = []
=   eth0 IPv4 Mike___s Mac Pro                              SSH Remote Terminal  local
   hostname = [Mikes-Mac-Pro.local]
   address = [169.254.40.145]
   port = [22]
   txt = []
=   eth0 IPv4 Mike___s Mac Pro                              SFTP File Transfer   local
   hostname = [Mikes-Mac-Pro.local]
   address = [169.254.40.145]
   port = [22]
   txt = []

Notice that it includes the AirPlay service and services from other devices. What does yours look like?

HendrikRoth commented 9 years ago

mine:

$ avahi-browse -ar
+   eth0 IPv6 My Music on odroid                            Web-Angebot          local
+   eth0 IPv4 My Music on odroid                            Web-Angebot          local
+   eth0 IPv4 Kodi (localhost)                              Web-Angebot          local
+   eth0 IPv4 Brother MFC-J6710DW                           Web-Angebot          local
+   eth0 IPv6 odroid [5a:2a:ee:15:41:8c]                    Arbeitsplatzrechner  local
+   eth0 IPv4 odroid [5a:2a:ee:15:41:8c]                    Arbeitsplatzrechner  local
+   eth0 IPv6 4F1F6016FC9F@Center                           AirTunes Remote Audio local
+   eth0 IPv4 4F1F6016FC9F@Center                           AirTunes Remote Audio local
+   eth0 IPv6 944A18CEA4D4EF64                              iPod Touch Music Library local
+   eth0 IPv4 944A18CEA4D4EF64                              iPod Touch Music Library local
+   eth0 IPv6 My Music on odroid                            iTunes Audio-Zugriff local
+   eth0 IPv4 My Music on odroid                            iTunes Audio-Zugriff local
+   eth0 IPv6 My Music on odroid                            _rsp._tcp            local
+   eth0 IPv4 My Music on odroid                            _rsp._tcp            local
+   eth0 IPv4 Kodi (localhost)                              _xbmc-jsonrpc-h._tcp local
+   eth0 IPv4 amzn.dmgr:F5F235BF7A2B35222674A28F0F1F27E7:sw7Vr+6bbA:829337 _amzn-wplay._tcp     local
+   eth0 IPv4 Brother MFC-J6710DW                           Internet Printer     local
+   eth0 IPv4 Brother MFC-J6710DW                           UNIX Printer         local
+   eth0 IPv4 Brother MFC-J6710DW                           PDL Printer          local
=   eth0 IPv6 My Music on odroid                            Web-Angebot          local
   hostname = [odroid.local]
   address = [fe80::582a:eeff:fe15:418c]
   port = [3689]
   txt = ["ffid=0bb823a3" "Password=false" "Version=196610" "iTSh Version=131073" "mtd-version=22.0" "Machine Name=My Music on odroid" "Machine ID=9B39F82A" "Database ID=9B39F82A" "txtvers=1"]
=   eth0 IPv6 My Music on odroid                            _rsp._tcp            local
   hostname = [odroid.local]
   address = [fe80::582a:eeff:fe15:418c]
   port = [3689]
   txt = ["ffid=0bb823a3" "Password=false" "Version=196610" "iTSh Version=131073" "mtd-version=22.0" "Machine Name=My Music on odroid" "Machine ID=9B39F82A" "Database ID=9B39F82A" "txtvers=1"]
=   eth0 IPv6 My Music on odroid                            iTunes Audio-Zugriff local
   hostname = [odroid.local]
   address = [fe80::582a:eeff:fe15:418c]
   port = [3689]
   txt = ["ffid=0bb823a3" "Password=false" "Version=196610" "iTSh Version=131073" "mtd-version=22.0" "Machine Name=My Music on odroid" "Machine ID=9B39F82A" "Database ID=9B39F82A" "txtvers=1"]
=   eth0 IPv6 944A18CEA4D4EF64                              iPod Touch Music Library local
   hostname = [odroid.local]
   address = [fe80::582a:eeff:fe15:418c]
   port = [3689]
   txt = ["CtlN=My Music on odroid" "OSsi=0x1F5" "Ver=131073" "DvSv=2306" "DvTy=iTunes" "DbId=944A18CEA4D4EF64" "txtvers=1"]
=   eth0 IPv6 4F1F6016FC9F@Center                           AirTunes Remote Audio local
   hostname = [odroid.local]
   address = [fe80::582a:eeff:fe15:418c]
   port = [5000]
   txt = ["pw=false" "txtvers=1" "vn=3" "sr=44100" "ss=16" "ch=2" "cn=0,1" "et=0,1" "ek=1" "sm=false" "tp=UDP"]
=   eth0 IPv6 odroid [5a:2a:ee:15:41:8c]                    Arbeitsplatzrechner  local
   hostname = [odroid.local]
   address = [fe80::582a:eeff:fe15:418c]
   port = [9]
   txt = []
=   eth0 IPv4 My Music on odroid                            Web-Angebot          local
   hostname = [odroid.local]
   address = [192.168.178.22]
   port = [3689]
   txt = ["ffid=0bb823a3" "Password=false" "Version=196610" "iTSh Version=131073" "mtd-version=22.0" "Machine Name=My Music on odroid" "Machine ID=9B39F82A" "Database ID=9B39F82A" "txtvers=1"]
=   eth0 IPv4 My Music on odroid                            _rsp._tcp            local
   hostname = [odroid.local]
   address = [192.168.178.22]
   port = [3689]
   txt = ["ffid=0bb823a3" "Password=false" "Version=196610" "iTSh Version=131073" "mtd-version=22.0" "Machine Name=My Music on odroid" "Machine ID=9B39F82A" "Database ID=9B39F82A" "txtvers=1"]
=   eth0 IPv4 My Music on odroid                            iTunes Audio-Zugriff local
   hostname = [odroid.local]
   address = [192.168.178.22]
   port = [3689]
   txt = ["ffid=0bb823a3" "Password=false" "Version=196610" "iTSh Version=131073" "mtd-version=22.0" "Machine Name=My Music on odroid" "Machine ID=9B39F82A" "Database ID=9B39F82A" "txtvers=1"]
=   eth0 IPv4 944A18CEA4D4EF64                              iPod Touch Music Library local
   hostname = [odroid.local]
   address = [192.168.178.22]
   port = [3689]
   txt = ["CtlN=My Music on odroid" "OSsi=0x1F5" "Ver=131073" "DvSv=2306" "DvTy=iTunes" "DbId=944A18CEA4D4EF64" "txtvers=1"]
=   eth0 IPv4 4F1F6016FC9F@Center                           AirTunes Remote Audio local
   hostname = [odroid.local]
   address = [192.168.178.22]
   port = [5000]
   txt = ["pw=false" "txtvers=1" "vn=3" "sr=44100" "ss=16" "ch=2" "cn=0,1" "et=0,1" "ek=1" "sm=false" "tp=UDP"]
=   eth0 IPv4 odroid [5a:2a:ee:15:41:8c]                    Arbeitsplatzrechner  local
   hostname = [odroid.local]
   address = [192.168.178.22]
   port = [9]
   txt = []
mikebrady commented 9 years ago

Thanks. Can you see any other devices, e.g. a Mac or iOS device? There's none listed, except a Brother printer (?) and the device itself.

HendrikRoth commented 9 years ago

How should i see them? They have no services activated or something else. Or i don't know what you mean :-)

mikebrady commented 9 years ago

Well, if you, for example, turn on file sharing, or remote login or screen sharing on your Mac, those services will show up, just as in my example.

mikebrady commented 9 years ago

In any case, what you see in Bonjour Browser and what you see in avahi-browse should correspond.

mikebrady commented 9 years ago

Actually, I think I saw an iPod touch on your listing. That would make me guess that the iPod touch can see the Shairport Sync service. Am I right?

HendrikRoth commented 9 years ago

Interesting ... iPad finds it. iPhone not. Mac not

mikebrady commented 9 years ago

Hmm, interesting alright. Is it possible you have a router with WMM Extensions? I have heard that they can cause problems...

HendrikRoth commented 9 years ago

WMM? It is a fritzbox 7490

mikebrady commented 9 years ago

WMM means WiFi Multimedia. Don't know too much about it...

mikebrady commented 9 years ago

Is this relevant: http://ruig.home.xs4all.nl/fritzbox/interface/wlanradiosettings.htm?

HendrikRoth commented 9 years ago

i switched off "Mediaserver" in the fritzbox interface. Now my iphone finds it too. The mac not. another important thing: switched kodi on, no one finds the device again. running an airplay device, shairport-sync isn't displayed anymore too.

could you contact me via mail maybe? i think this is a personal problem and not something direct with shairport?

mikebrady commented 9 years ago

Is it possible that more than one port is in use on the Mac?

mikebrady commented 8 years ago

Hi there. Just wondering if there been any further developments on this...

HendrikRoth commented 8 years ago

Sorry for my late response, i am during a relocation of my home at the moment.

dropert commented 7 years ago

Turning off WMM (WiFi Multimedia) solved the problem for me. I was able to see the MusicBox appearing as an Airplay client on iPhone and Mac.

mikebrady commented 7 years ago

Thanks. I might put this on the troubleshooting page.

mikebrady commented 5 years ago

Closing this inactive issue. Please open a new one if necessary.