StevenBlack / hosts

🔒 Consolidating and extending hosts files from several well-curated sources. Optionally pick extensions for porn, social media, and other categories.
MIT License
26.87k stars 2.23k forks source link

Spotify Connect on Android not detecting Sonos speakers #619

Closed eleete0712 closed 4 years ago

eleete0712 commented 6 years ago

Hello everyone,

some time ago the Spotify app on Android stopped showing up my Sonos speakers when looking up Connect enabled speakers. I tried to pinpoint the issue down to either Spotify or Sonos and also talked to both of their support teams which didn't yield any results. I figured that when using an older version of the Spotify app (8.4.24.871) the Sonos speakers would show up again. I told them their app was messed up and that there must have been some change in the implementation. They couldn't reproduce the issue and I was on my own again. Yesterday I noticed that when I disabled Adblock (Magisk - Unified Hosts Adblock - uses this list) the Sonos speakers would start showing up again inside the Spotify app. So I tried to pinpoint it down to some Spotify or Sonos rules in this list but there is only a single one which isn't the cause for the issue. Next I tried commenting several lines from the top and I found the line that seems to cause the issue:

::1 localhost

By default my Android device only has the following two lines in the hosts file:

127.0.0.1 localhost ::1 ip6-localhost

So it seems that this line is kind of problematic on Android or at least for the Android, Spotify and Sonos combo. I don't know if this causes other issues or causes issues if left out but for me it makes things work perfectly fine again.

Regards

welcome[bot] commented 6 years ago

Hello! Thank you for opening your first issue in this repo. It’s people like you who make these host files better!

StevenBlack commented 6 years ago

Hi @eleete0712 I jumped on msmetrics.ws.sonos.com a few weeks ago when I noticed it being accessed repeatedly (dozens of times per hour) from my own home network.

Everything functions normally here, on iOS and Mac...

It seems odd that ::1 localhost would be problematic. Anyone have any insight on this?

eleete0712 commented 6 years ago

Hi @StevenBlack, I noticed the msmetrics.ws.sonos.com line which I also removed before the ::1 localhost line without success. I used Wireshark to find out what was going on. I noticed that my Laptop (Windows and Linux) with Spotify sent out way more mDNS queries and some that my Android device did not send at all (mDNS to 224.0.0.251 with content _spotify-connect._tcp.local). After commenting ::1 localhost those mDNS packages are sent again. But I'm not too much into networking that I could explain that.

afflux commented 5 years ago

Analysis here: https://github.com/AdAway/AdAway/issues/1009#issuecomment-451125317

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 daysif no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

Closing.