Now that we can cast to Sonos, any tips on how to actually get it work? I’m using a Pixel2 running Android 9.
The zones correctly propagate in the list of castable devices.
 
And the app certainly appears to have no issues connecting to the Sonos zone once selected.
 
However playback always fails and wants to fallback to local playback.
 
Playing to the same zone from within the Sonos app works so it’s doesn’t seem to be an issue with the Sonos network.
 
 
             
            
               
               
               
            
            
           
          
            
            
              I’m checking if casting to a zone is suppose to work.  Are you able to cast to a single speaker?
             
            
               
               
               
            
            
           
          
            
            
              Can you provide the log from the app after recreating the issue?
             
            
               
               
               
            
            
           
          
            
            
              I can do that. Just wanted to make sure this was an actual feature now, or if the June blog post was a little ahead of itself.
06-28 22:27:06.672  i: [Cast] Application focused, performing active scan.
06-28 22:27:06.699  i: [Cast] onRouteAdded (description=SONOS, id=com.sonos.acr/.media.SonosRouteProviderService:Sonos_XWfiXU9Rn48SlCV2RxvI93495k::RINCON_5CAAFDF2140C01400:337, playback stream=-1, playback type=1)
06-28 22:27:06.699  i: [Cast] Ignoring route (com.sonos.acr/.media.SonosRouteProviderService:Sonos_XWfiXU9Rn48SlCV2RxvI93495k::RINCON_5CAAFDF2140C01400:337) as no extras provided
06-28 22:27:06.718  w: [Sonos] Discovery socket has been closed
06-28 22:27:07.805  i: [Cast] onRouteChanged (description=SHIELD Android TV, id=com.google.android.gms/.cast.media.CastMediaRouteProviderService:3b2689db0e4906d550ed5468766ab4a6, playback stream=-1, playback type=1)
06-28 22:27:07.882  i: Resuming PreplayAlbumActivity.
06-28 22:27:09.498  i: [Cast] Starting aggressive device scanning.
06-28 22:27:09.559  i: [Cast] onRouteChanged (description=SHIELD Android TV, id=com.google.android.gms/.cast.media.CastMediaRouteProviderService:3b2689db0e4906d550ed5468766ab4a6, playback stream=-1, playback type=1)
06-28 22:27:10.101  i: [EventSource] Connected to https://pubsub.plex.tv/sub/eventsource/182341/4deaa9215feb8873-com-plexapp-android?X-Plex-Token=...xhup.
06-28 22:27:11.006  i: [PlayerManager] Setting selected player: Play:5 Right + 5
06-28 22:27:11.006  i: [device] Setting selected server to com.plexapp.plex.net.remote.b.f@c799734e
06-28 22:27:11.007  i: [LongPollingRemotePlayerSubscriptionManager] - Attempting to connect to Play:5 Right + 5
06-28 22:27:11.008  i: [Remote] Sending message (/player/timeline/poll?protocol=http&port=32500&commandID=9) to Play:5 Right + 5
06-28 22:27:11.008  i: Fetching [method:GET] https://sonos.plex.tv:443/player/timeline/poll?protocol=http&port=32500&commandID=9&X-Plex-Token=...xhup&includeExternalMedia=1
06-28 22:27:11.016  i: [Remote Notification] - Cancelling notification for RINCON_5CAAFDF2140C01400:337, type video
06-28 22:27:11.016  i: [Remote Notification] - Cancelling notification for RINCON_5CAAFDF2140C01400:337, type music
06-28 22:27:11.016  i: [Remote Notification] - Cancelling notification for RINCON_5CAAFDF2140C01400:337, type photo
06-28 22:27:11.017  i: [Remote Control Manager] - Updating player (Play:5 Right + 5) by cancelling.
06-28 22:27:11.017  i: [Remote Control Manager] Cancelling
06-28 22:27:11.017  i: [Player][RemotePlayer] onPlayerSelected
06-28 22:27:11.028  i: [Cast] Stopping aggressive device scanning.
06-28 22:27:11.037  i: [Cast] onRouteChanged (description=SHIELD Android TV, id=com.google.android.gms/.cast.media.CastMediaRouteProviderService:3b2689db0e4906d550ed5468766ab4a6, playback stream=-1, playback type=1)
06-28 22:27:17.900  i: Fetching [method:GET] https://sonos.plex.tv/resources?X-Plex-Token=...xhup&X-Plex-Client-Identifier=4deaa9215feb8873-com-plexapp-android&includeExternalMedia=1
06-28 22:27:24.400  i: [LongPollingRemotePlayerSubscriptionManager] - Connection successful
06-28 22:27:24.402  i: [LongPollingRemotePlayerSubscriptionManager] - Attempting to connect to Play:5 Right + 5
06-28 22:27:24.403  i: [Player][RemotePlayer] Finished connecting, restartings
06-28 22:27:24.403  i: [Remote] Sending message (/player/timeline/poll?wait=1&protocol=http&port=32500&commandID=9) to Play:5 Right + 5
06-28 22:27:24.403  i: [Player][RemotePlayer] Switching to newly selected remote player
06-28 22:27:24.404  i: Fetching [method:GET] https://sonos.plex.tv:443/player/timeline/poll?wait=1&protocol=http&port=32500&commandID=9&X-Plex-Token=...xhup&includeExternalMedia=1
06-28 22:27:24.404  i: [Remote Notification] - Cancelling notification for RINCON_5CAAFDF2140C01400:337, type video
06-28 22:27:24.404  i: [Remote Notification] - Cancelling notification for RINCON_5CAAFDF2140C01400:337, type music
06-28 22:27:24.405  i: [Remote Notification] - Cancelling notification for RINCON_5CAAFDF2140C01400:337, type photo
06-28 22:27:24.405  i: [Remote Control Manager] - Updating player (Play:5 Right + 5) by cancelling.
06-28 22:27:24.405  i: [Remote Control Manager] Cancelling
06-28 22:27:26.350  i: [conn] Merged Play:5 Right + 5 with 1 connection, now we have 1 total connections.
06-28 22:27:26.351  i: [PlayerManager] Preparing to update reachability of a set of 1 devices (force=true). com.plexapp.plex.net.bd@ffcf506
06-28 22:27:26.352  i: [PlayerManager] Updating reachability of device Play:5 Right + 5 (force=true).
06-28 22:27:26.352  i: [conn] Updating reachability for Play:5 Right + 5 with 1 connections.
06-28 22:27:26.353  i: [conn] Testing connection for Play:5 Right + 5: https://sonos.plex.tv:443 (Active Pool: 0)
06-28 22:27:26.648  i: Fetching [method:GET] https://sonos.plex.tv:443/resources?X-Plex-Token=...xhup&includeExternalMedia=1
06-28 22:27:26.840  i: [FocusService] App focus lost.
06-28 22:27:26.840  i: [EventSource] Application unfocused, disconnecting...
06-28 22:27:26.841  i: [EventSource] Disconnected from https://pubsub.plex.tv/sub/eventsource/182341/4deaa9215feb8873-com-plexapp-android?X-Plex-Token=...xhup (reconnect: false)
06-28 22:27:26.842  i: [EventSource] Application unfocused, disconnecting...
06-28 22:27:26.842  i: [EventSource] Disconnected from http://127.0.0.1:40736/:/eventsource/notifications?X-Plex-Token=...xhup (reconnect: false)
06-28 22:27:26.856  i: [Cast] Application unfocused, stopping active scan.
06-28 22:27:28.291  i: [conn] Device Play:5 Right + 5 response time is 1643.5441 ms
06-28 22:27:28.292  i: [conn] Connection SUCCESS Play:5 Right + 5 ~ localConn: false conn: https://sonos.plex.tv:443
06-28 22:27:28.292  i: [conn] (Play:5 Right + 5) We found the first connection.
06-28 22:27:28.292  i: [PlexDevice] Setting Play:5 Right + 5 as the new active connection
06-28 22:27:28.293  i: [conn] Connectivity test to Play:5 Right + 5 completed in 1.9 SECONDS -> Connection: https://sonos.plex.tv:443 token used: false types: [sonos] state: Reachable
06-28 22:27:45.192  i: [LongPollingRemotePlayerSubscriptionManager] - Connection successful
06-28 22:27:45.194  i: [LongPollingRemotePlayerSubscriptionManager] - Attempting to connect to Play:5 Right + 5
06-28 22:27:45.195  i: [Remote Notification] - Cancelling notification for RINCON_5CAAFDF2140C01400:337, type video
06-28 22:27:45.195  i: [Remote Notification] - Cancelling notification for RINCON_5CAAFDF2140C01400:337, type music
06-28 22:27:45.195  i: [Remote Notification] - Cancelling notification for RINCON_5CAAFDF2140C01400:337, type photo
06-28 22:27:45.195  i: [Remote Control Manager] - Updating player (Play:5 Right + 5) by cancelling.
06-28 22:27:45.195  i: [Remote Control Manager] Cancelling
06-28 22:27:45.195  i: [Remote] Sending message (/player/timeline/poll?wait=1&protocol=http&port=32500&commandID=9) to Play:5 Right + 5
06-28 22:27:45.195  i: Fetching [method:GET] https://sonos.plex.tv:443/player/timeline/poll?wait=1&protocol=http&port=32500&commandID=9&X-Plex-Token=...xhup&includeExternalMedia=1
06-28 22:27:51.742  i: [pms]
 
             
            
               
               
               
            
            
           
          
            
            
              Hey there @wwwizzarrdry  looks from the logs like your server is remotely inaccessible. When you try to cast something the service is unable to reach your PMS either via your public IP & configured port or via relay. Rebooting PMS would be a good start, and then make sure that you properly have the port forwarded.
             
            
               
               
               
            
            
           
          
            
            
              I just saw in the logs that you are going over the internet to cast to the local Sonos speakers. That’s going to be an issue.
We’re nat’d here and a few months ago all the services I run stopped working, remote Plex access included. Is there even a reason you’re connecting to sonos.plex.tv  to cast to a local subnet?
             
            
               
               
               
            
            
           
          
            
            
              I believe the stream is still local, but the discover is done through the internet.  Similar to how Alexa works.  Do you not have remote access set up?
             
            
               
               
               
            
            
           
          
            
            
              No worries, I wrote a node app to stream my plex music to Sonos. I was just hoping that I could abandon it now. Looks like you guys will only cater to people who have ISPs that don’t Nat their clients
             
            
               
               
               
            
            
           
          
            
            
              
Yes, the service that facilitates the link between Sonos and PMS runs in the cloud, which is why a PMS needs to be remotely accessible in order to be played on Sonos…even on the local network.
Absolutely not the case. Many people, myself included, run PMS behind a NAT. We understand that some folks are unable to punch a port through which is why we provide the relay service. From what I’ve seen in logs your PMS is saying it has a relay connection  setup that the service should be able to use, but that connection is timing out indicating the connection is not setup or published correctly. PMS logs  might offer some clues if you could export them a few minutes after restarting PMS.
             
            
               
               
               
            
            
           
          
            
            
              Just wanted to say thanks for the quick feedback from you and your team. After some discussion with my provider, I was able to get a public IP address again. After forwarding the requisite ports, I can now see my service again from outside, but the problem still persists.
Any ideas?
             
            
               
               
               
            
            
           
          
            
            
              @wwwizzarrdry  just a quick update - the logs show the same failure trying to connect remotely to your PMS. More unusual is that it’s somehow reporting multiple public IP addresses, which shouldn’t be the case. I’m following up with other teams internally to try to sort this out and will DM you, but it may not be until next week as I’m traveling for the 4th.
             
            
               
               
               
            
            
           
          
            
              
                system  
                
                  Closed 
               
              
                  
                    September 28, 2019,  7:07pm
                   
                   
              12 
               
             
            
              This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.