mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 00:05:55 +03:00
[GH-ISSUE #281] Did spotify drop mdns support for spotify connect? #190
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#190
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @agrenott on GitHub (Dec 10, 2018).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/281
Hi,
I've been trying for days now to use the self discovery of librespot on my local network (not specifying my user account in the configuration).
Librespot implements the local discovery via mDNS protocol. However, using wireshark on my windows PC running official spotify client, I see no traffic on port 5353 (except discovery of proxy viq WPAD, which can be disabled in spotify advanced settings).
Instead, I can see SSDP traffic, with M-SEARCH query.
I can't find anything confirming this on the web.
Does anyone here encounter the same issue, or is able to get some network trace with official spotify connect device to confirm it?
This would mean the whole mDNS part of librespot could be dropped, and should be replaced with SSDP equivalent...
Thanks,
Aurelien
@devgianlu commented on GitHub (Dec 10, 2018):
Which version of the Spotify client are you running?
On Mon, Dec 10, 2018, 21:12 agrenott <notifications@github.com wrote:
@agrenott commented on GitHub (Dec 10, 2018):
On windows: 1.0.95.289.g342899da.
And same with android client 8.4.83.625.
@devgianlu commented on GitHub (Dec 11, 2018):
I've managed to updated the Android client and it doesn't detectThat was an issue on my side (librespot-org/librespot-java#32).librespot-javaanymore, I am waiting for the Windows update.@awiouy commented on GitHub (Dec 11, 2018):
Have you tried building librespot with with-dns-sd, see https://github.com/librespot-org/librespot/wiki/Compiling
@agrenott commented on GitHub (Dec 11, 2018):
Yes, but I'm still stuck on a libsystemd.so not found at link time (while it's there and I've added the path with ld -L argument) - using raspotify cross-compilation docker image tweaked a bit.
But anyway, as I can't even see any mDNS packet going out of the official client, I don't think it would make any difference. Or are you saying avahi-daemon would handle SSDP requests as well for librespot?
@sashahilton00 commented on GitHub (Dec 15, 2018):
I'm now running
1.0.95.289.g342899daon OS X, and librespot is still working fine. Looks like we'll have to wait for iOS/Android versions to update a few and watch for changes.@devgianlu commented on GitHub (Dec 20, 2018):
1.0.95.289.g342899dais also fine on Windows.@agrenott commented on GitHub (Dec 29, 2018):
What do you mean by "fine"? Do you see mDNS queries sent from the windows client? Are you able to use spotify connect without specifying user/password when starting librespot?
@devgianlu commented on GitHub (Dec 29, 2018):
I've not checked the traffic between the clients, but Zeroconf works fine with
librespot-java.If you see some SSDP, maybe they are slowly switching to it, I'll check.
@devgianlu commented on GitHub (Dec 29, 2018):
@agrenott There are a lot of SSDP packets being sent on my network, but that's normal. I have not seen anything related to Spotify, could you point out which
type of service(NT header in the NOTIFY request) is used?@agrenott commented on GitHub (Dec 29, 2018):
Here is the SSDP query from spotify client on windows (sent each time you display the list of available devices):
Or a bit more readable view (from wireshark):
@devgianlu commented on GitHub (Dec 29, 2018):
dial-multiscreen-orgdoesn't belong to Spotify.@agrenott commented on GitHub (Dec 30, 2018):
And still, I'm almost sure those come from spotify client, as I capture them only when it's started. And the string "ST: urn:dial-multiscreen-org:service:dial:1" appears inside the binary (looking with process explorer).
@agrenott commented on GitHub (Dec 30, 2018):
Arg, got it. Looks like my spotify client correctly sends the mDNS requests, but on an invalid network interface, so it never reaches the "real" network...
@devgianlu commented on GitHub (Dec 30, 2018):
That is indeed true, but I cannot force Spotify to use SSDP between two clients. This means that they are using both mDNS and SSDP. I'll try with my smart TV.
Update: My TV is indeed dispatching a service with type
urn:dial-multiscreen-org:service:dial:1.@sashahilton00 commented on GitHub (Jan 4, 2019):
Those SSDP requests are likely to be from the Cast SDK that is integrated into the Spotify clients. Whilst I can't be certain, I would say that nothing has changed w/ regards to the mDNS discovery.
@agrenott commented on GitHub (Jan 5, 2019):
I guess we can close the issue, as mDNS support is not dropped, just mis-behaving when several network interfaces are available (in my case using Hyper-V internal interface).
BTW, seems the android spotify client isn't using mDNS (or has similar issue than the windows one).