Replies: 2 comments 5 replies
-
librespot queries the Spotify infrastructure which access point to use. If you check the (verbose) logs you will see which access point it picked. You can try resolving this hostname yourself and see which IP address it points to. Presumably Spotify's access point resolver will use a combination of geographic + round robin load balancing and filter any servers which it knows are down. You can even just access the resolver from the browser: http://apresolve.spotify.com is what Spotify uses. |
Beta Was this translation helpful? Give feedback.
-
How did you ascertain that connection came from librespot? |
Beta Was this translation helpful? Give feedback.
-
I was checking my raspberry pi's firewall for suspicious connections and found a connection to 124.65.199.104 which appears to be in Beijing (BJ) - China (CN). I blocked any traffic to this side with ufw and restarted the service. This time netstat shows a connection attempt that fails. But music playback is working flawlessly.
So my question: What kind of data sources does librespot (with spotify) use and why. And especially why would it use servers in China when running in Europe? Wouldn't any loadbalancing rather prefer server that are closer?
I hope somebody can help me. Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions