Plex and Sonos - "unable to browse music"

Relay is itself an SSH tunnel. Having external access is required for Sonos since the service runs in the cloud, not on your LAN. We make every effort to give the speakers the LAN address of your PMS to actually stream the music from, but unfortunately we get zero indication of any failures or chances to try a different URL so we have to opt for safety. In the event that PMS is not aware of your speakers on the LAN, usually due to using an advanced network configuration or installation of PMS, we have to fall back to the public connection the service uses. Even then, if your router doesn’t support hairpin NAT we have to fall back to relay, which means that your music gets streamed up through the relay endpoint and back down to the speakers.

Thanks for the reply @johnclayton, it’s a bummer that Sonos’s service has these requirements but I appreciate your effort making this all work. For future reference, I did something that appears to help: changing the firewall settings from DROP (silently ignore) to REJECT (send a message rejecting the packet). My guess is that Sonos is timing out connecting to the port every time – since DROP doesn’t send a response Sonos first has to wait and then falls back after a timeout. By REJECTing, it can get a response and fall back immediately. It seems to work much better now, not as good as when the ports were opened but better than nothing. I don’t 100% know that this explanation matches reality, but it seems to work so I’m going to keep the settings as-is.

I am having a strange issue since the last PMS update on my Shield TV. I can see no longer see my Plex music. I removed Plex and added it back into Sonos and it connects just fine but does not show me my local music. It only shows me:

I have some more information (and am happy to make a new forum post if this issue is separate from the others). Now Plex can reliably connect to Sonos and the traffic is streamed locally (woohoo!), but Plexamp keeps… pausing the playback?

  • If I start playing an album and immediately disconnect Plexamp, Sonos happily plays the song and will even continue playing through the album.
  • If I start playing an album and keep Plexamp connected, it pauses playback after a period of 30 seconds to a few minutes. Pressing play starts playback again, which is paused after another few minutes.
  • Playing Plexamp locally on my laptop or phone’s speakers works fine.
  • Here’s the weird part: if I connect Plexamp to Sonos and don’t play anything, it repeatedly connects and disconnects. I even get a MacOS notification every few minutes, as if Plexamp has reconnected to the Sonos, discovered a (paused) song playing, and wanted to notify me about it. I’ve attached a video of Plexamp doing this below.
  • I am wondering if this is because I have multiple Plexamps connected to Sonos (work laptop, personal laptop, phone) and they are somehow “fighting” each other. I tried disconnecting other ones and it didn’t seem to help, but I didn’t rigorously check this.

Here is a video of Plexamp repeatedly connecting and disconnecting to Sonos, even when nothing is playing. I’d like to point out that I’m not clicking anywhere, nor am I manipulating Sonos from somewhere else. I’m also getting MacOS notifications about the song playing (not captured in the video).

Screen Recording 2021-01-14 at 10.48.18.mov.zip (3.3 MB)

Happy give more information / do some additional debugging if required. Thanks!

1 Like

SImilar Problem.

Had been accessing plex for a while via sonos (although it did lose connection every now and then.

Tonight i lost all access to plex from sonos. Plex is remote from where I currently am.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.