Server Version#: 1.24.1.4931
Player Version#: Plexamp 3.5.0
I have successfully set up Plex to be usable both internally and external to my network, such that I can play music on Plexamp on and off of the network. However, when I attempt to use Chromecast while on my local network to connect to any of my Google Home & Chromecast devices I get the error “Could not switch to player”. The device does seem to at least do an initial handshake: for instance, my google home devices make a chime sound. But that’s followed immediately by the “could not switch to player” message.
Specifics I should note about my setup:
-
I have an external domain that is passing through Cloudflare, a local firewall, and then nginx such that incoming requests to music.mydomain.com:443 are redirected to plex’s port 32400. This setup works fine for Plexamp both remotely and locally, but somehow seems to be a problem for Chomecast and I’m not sure why.
-
Something odd about the logs below to me is that it’s trying to hit some kind of plex.direct subdomain that has my plex server’s local IP address in its URL. What is going on there?
I look at the messages below and don’t have a feel for what is actionable/what’s actually going wrong. Anyone have any experience with this?
— Logs from Plexamp during the connection failure —
Sep 04, 2021 09:06:39.908 [Javascript] INFO - Cast: State is currently Connected.
Sep 04, 2021 09:06:39.908 [Javascript] INFO - Cast: Ending existing session to [LOCAL_DEVICE ID] so we can connect to [GOOGLE HOME LIVING ROOM DEVICE ID]
Sep 04, 2021 09:06:39.919 [Javascript] INFO - Cast: Session ending.
Sep 04, 2021 09:06:39.919 [Javascript] INFO - Cast: Session ending.
Sep 04, 2021 09:06:39.938 [Javascript] INFO - Cast: Session ended null
Sep 04, 2021 09:06:39.939 [Javascript] INFO - Cast: Session ended null
Sep 04, 2021 09:06:39.940 [Javascript] INFO - Cast: Starting new session.
Sep 04, 2021 09:06:41.727 [Javascript] INFO - Cast: Session started.
Sep 04, 2021 09:06:41.727 [Javascript] INFO - Cast: Session started.
Sep 04, 2021 09:06:41.727 [Javascript] INFO - Cast: Starting channel.
Sep 04, 2021 09:06:41.730 [Javascript] INFO - Cast: Successfully connected to [GOOGLE HOME LIVING ROOM DEVICE ID].
Sep 04, 2021 09:06:41.730 [Javascript] INFO - Audio Route: Switched over to player Living Room (volume: NaN).
Sep 04, 2021 09:06:41.731 [Javascript] INFO - Cast: using https / undefinedmusic.mydomain.com / 443 for connection URI https://music.mydomain.com:443.
Sep 04, 2021 09:06:41.770 [Javascript] INFO - Cast: unknown player state.
Sep 04, 2021 09:06:41.830 [0x22ad0cc0] DEBUG - Networking: Completed request 29: (GET https://music.mydomain.com:443/security/token?type=delegation&scope=all&includeFields=thumbBlurHash&X-Plex-Device-Name=Android) with code 200 (have 86 bytes) in 91 ms.
Sep 04, 2021 09:06:41.905 [Javascript] INFO - Cast: unknown player state.
Sep 04, 2021 09:06:41.905 [Javascript] INFO - Cast: Got event for state stopped.
Sep 04, 2021 09:06:41.905 [Javascript] INFO - Audio Route: Waiting for something other than stopped, currently stopped.
Sep 04, 2021 09:06:41.913 [Javascript] INFO - Cast: unknown player state.
Sep 04, 2021 09:06:41.921 [Javascript] INFO - Cast: unknown player state.
Sep 04, 2021 09:06:43.393 [0x22ad0cc0] DEBUG - Networking: Completed request 26: (GET https://192-168-2-245.cca7e40b4b0a4a468dacf67dbdc230db.plex.direct:32400/) with code -28 (have 0 bytes) in 15003 ms.
Sep 04, 2021 09:06:43.396 [Javascript] WARNING - DEVICE: Server connection [SAME AS LINE ABOVE, had to remove because Plex won’t let me post more than 5 links as a new user] didn’t work for plex: HTTP status -28
Sep 04, 2021 09:06:44.020 [Javascript] INFO - Player: Ignoring event local paused
Sep 04, 2021 09:06:48.565 [Javascript] INFO - Sync: Error cleaning up: failed to lstat path /data/user/0/tv.plex.labs.plexamp/files/Offline
because it does not exist or it is not a folder.
Sep 04, 2021 09:06:49.015 [Javascript] INFO - Player: Ignoring event local paused
Sep 04, 2021 09:06:51.923 [Javascript] INFO - Audio Route: Issued play, waited for start with success false.
Sep 04, 2021 09:06:51.923 [Javascript] INFO - Cast: Sending message ‘STOP’.
Sep 04, 2021 09:06:51.923 [Javascript] WARNING - Audio Route: Error switching player to Living Room.