Unable to connect to Sonos speakers

Is there a way to reauth to sonos from plexamp? Since the latest update, i get this error when selecting a sonos speaker.

“Could not switch to player”

I can successfully switch to the sonos speaker using airplay.

Cast to sonos also works flawlessly in spotify spotufy

Should be possible here https://plex.tv/users/other-services

Keep in mind that you need a functioning remote access to your server for Sonos to work.

Thanks @OttoKerner i removed and readded the sonos service.

Unfortunately that didnt help at all.

I’ve been running pms-docker for a year now and havent had any issues with sonos until now.

Also My server shows that its remotely accessible

Plexamp logs would be helpful.

Sure @elan please see attached
Plexamp-Logs-2022-09-25-2.zip (165.5 KB)

Sep 25, 2022 21:53:26.392 [Javascript] WARNING - PLAYER: Error issuing request to player Kitchen: /player/playback/playMedia?source=ca8b84105a3f4843ea21dfb3f008f3ce3523fe09&containerKey=%2FplayQueues%2F4249%3Fown%3D1&key=%2Flibrary%2Fmetadata%2F28159&offset=31622&paused=1&token=<token>&includeExternalMedia=1&type=music&protocol=https&address=192-168-1-238.b321b689102f4fd39f8c5842195019b8.plex.direct&port=32400&machineIdentifier=ca8b84105a3f4843ea21dfb3f008f3ce3523fe09&commandID=7, HTTP status 500, [object Object]

It looks like the cloud service is returning a 500, it’s unclear why :thinking: It’s possible relinking with Sonos service might help.

Yeah i Removes then readded the sonos service but still getting the error.

Anything else i can look at @elan ?
Worth mentioning that other services (e.g. Spotify) are able to connect without any issue. The Plex service in the Sonos app works fine too.

Tested and failed:

  • Plexamp on MacOS
  • Plexamp on iOS
  • Plex on iOS
  • Plex Web on MacOS

Bonjour, j’éprouve le même problème sur Android, Windows, et sur le mon serveur sur Nas Synology. Impossible de faire jouer sur mon système Sonos. Je ne vois tout simplement pas mes appareils Sonos dans la liste de diffusion sur Plex amp,


J’ai cependant accès à l’onglet pour associer mon compte Sonos:

La procédure fonctionne jusqu’à terme, mais sans résultat. L’option association compte Sonos reviens en boucle.

Tout fonctionnait sams problème depuis longtemps, je ne saurais cibler le moment ou ça a planté.. Plex et bien entendu accessible de l’extérieur. Je l’utilise d’ailleurs continuellement sur la route..

Hi Marc - I too was getting to my wit’s end trying to get past this error in PlexAmp. I ended up adding the following rules in my network for port forwarding and NAT hairpin:
iptables -I FORWARD -p tcp -d 192.168.100.XXX --dport 32400 -j ACCEPT
iptables -t nat -I INPUT -p tcp -m tcp -s 0.0.0.0/0 -d 192.168.100.XXX --dport 32400 -j ACCEPT
iptables -t nat -I PREROUTING -p tcp -m tcp --dport 32400 -j DNAT --to 192.168.100.XXX:32400
iptables -t nat -I POSTROUTING -p tcp -m tcp -s 0.0.0.0/0 -d 192.168.100.XXX --dport 32400 -j ACCEPT

So with this, 1 FORWARD rule and 3 NAT rules to get it working with my firewall. The last rule (POSTROUTING) was the final piece to get the Sonos speakers to be connected in PlexAmp. It may also help to get Sonos visible as a Player by going to Authorized Devices in your PMS, removing ALL of devices (I had 50 that accumulated over time - they never get cleared out/de-authorized for some reason). Then go through Sonos app. and setup Plex - either Authorize/Re-Authorize to allow Sonos to access Plex.

NOTE: I am still running into issues playing music from PlexAmp to Sonos whether at home or on mobile but initial connection ALWAYS works (I can select Sonos from cast/Select Player icon in PlexAmp). Connection to Sonos is almost instant and I even get taken back to the last track I tried playing via Sonos on PlexAmp. However, as soon as I click ‘Play’, PlexAmp sits and spins on Play…never get any music to come through Sonos. Connection is instant to Sonos and I can even control Sonos volume through PlexAmp…playing music though…NOPE :(.

I have an open question about this here below…maybe devs. will be able to help?

Good luck!
JB

1 Like

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