michaelherger / Spotty-Plugin

A Spotify plugin for the Lyrion Music Server (fka. Logitech Media Server) and Squeezebox compatible players
115 stars 20 forks source link

Connect only working from one device #58

Open amsound opened 2 years ago

amsound commented 2 years ago

Hi Michael,

Not sure what's going on but my phone connects to Spotty via Connect fine but a couple of other devices do not work. The device shows it's connected however LMS doesn't play or show anything.

I have uploaded a log for you on your dropbox "alex server connect logging.log"

You help would be much appreciated.

michaelherger commented 2 years ago

This would happen in a few cases:

Anything that might apply to your situation?

amsound commented 2 years ago

All devices def on the same wifi network. Not sure what are local announcements are? Running on a pretty vanilla version of Debian 9

michaelherger commented 2 years ago

Check the Spotty settings. there's a checkbox to "disable local announcements" (which can get checked automatically if it repeatedly fails to use them). When these announcements are disabled, only the account connected to LMS would be able to see the player.

amsound commented 2 years ago

No, this is not selected and there are no other options selected. I should re-iterate all devices can "see" the player. This isn't the issue.

I have just re-installed my whole system using Debian 11 64bit and LMS 8.3 and I'm experiencing the same.

amsound commented 2 years ago

Any thoughts Michael?

KlausMu commented 1 year ago

I have the same issue. No matter if the option

Don't announce Squeezebox players running in Spotify Connect mode in your network. Check this option if you don't want your Spotify Connect enabled Squeezebox player to show up in all Spotify apps in your network.

is set or not, I have the following behaviour: I have two spotifiy accounts registered in "Spotty Spotify for Squeezebox". When I select "My Apps - Spotty - 'Account name' - Albums", the device immediately disappears in the Spotify Connect device list in one account and appears at the same second in the other account (checked with the Spotify Android app running on two phones with different accounts). No way to have the spotty device in two accounts at the same time.

Any hint?

michaelherger commented 1 year ago

Make sure you do NOT disallow announcements using that option. And once you've reset that switch, give it some time. And make sure your devices are all on the same network. Mobile phones sometimes stick to cell instead of switching to wifi etc.

KlausMu commented 1 year ago

I think I found the issue. I'm running LMS in docker. As mentioned here, Spotty only works correctly when it is running in host mode. Only when running in host mode, I can see Spotty listening on these ports (sudo netstat -tulpn | grep LISTEN). Otherwise these entries are missing: tcp 0 0 0.0.0.0:35963 0.0.0.0:* LISTEN 2196328/spotty tcp 0 0 0.0.0.0:35397 0.0.0.0:* LISTEN 2196330/spotty
tcp 0 0 0.0.0.0:37369 0.0.0.0:* LISTEN 2196327/spotty

sophof commented 7 months ago

I think I found the issue. I'm running LMS in docker. As mentioned here, Spotty only works correctly when it is running in host mode. Only when running in host mode, I can see Spotty listening on these ports (sudo netstat -tulpn | grep LISTEN). Otherwise these entries are missing: tcp 0 0 0.0.0.0:35963 0.0.0.0:* LISTEN 2196328/spotty tcp 0 0 0.0.0.0:35397 0.0.0.0:* LISTEN 2196330/spotty tcp 0 0 0.0.0.0:37369 0.0.0.0:* LISTEN 2196327/spotty

Thanks, this was the issue for me as well!