You are right - the logs do appear to show the remote IP connection still. I’m not entirely sure why that is. I could have sworn the media I was testing was direct playing and no longer transcoding due to bitrate limitations. Looks like it went back to using local a little while later, per a different set of server logs that day.
What I don’t understand is why only the Android app seems to have a problem connecting to the local IP, why it fails back to the internet connection immediately and seemingly doesn’t fail back until much later?
I can see other local clients communicating with the Plex server in those server logs, at the same time the Android app claims the server is inaccessible. API call from 192.168.1.24 was successful literally one second before the Android app claims the server is unavailable.
Sep 24, 2021 14:28:16.051 [0x8159cfe00] DEBUG - Request: [192.168.1.24:43920 (Allowed Network (Subnet))] GET /status/sessions (14 live) GZIP Signed-in Token ()
Sep 24, 2021 14:28:16.051 [0x8159cfe00] DEBUG - [Now] Adding 0 sessions.
Sep 24, 2021 14:28:16.052 [0x8070fa800] DEBUG - Completed: [192.168.1.24:43920] 200 GET /status/sessions (14 live) GZIP 0ms 397 bytes (pipelined: 19)
Sep 24, 2021 14:28:16.206 [0x807538800] DEBUG - [MediaProviderManager] HTTP/1.1 (0.2s) 200 response from GET https://plex.tv/media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (reused)
Sep 24, 2021 14:28:16.206 [0x807538800] DEBUG - [MediaProviderManager] discovered cloud provider (Metadata)
Sep 24, 2021 14:28:16.206 [0x807538800] DEBUG - [MediaProviderManager] loading cloud provider details (Metadata) (alive: 1)
Sep 24, 2021 14:28:16.206 [0x807538800] DEBUG - [MediaProviderManager] we had 1 cloud providers online, we now have 1
Sep 24, 2021 14:28:16.206 [0x807538800] DEBUG - [MediaProviderManager] cloud provider (Metadata) is online and available
Plex Android app sends the API call at 14:28:17 and then these messages appear in the server log:
Sep 24, 2021 14:28:18.451 [0x8070fad00] DEBUG - WebSocket: client initiated close
Sep 24, 2021 14:28:18.451 [0x8070fa800] DEBUG - NotificationStream: Removing because of close
Sep 24, 2021 14:28:18.453 [0x8070fad00] DEBUG - handleStreamRead code 2: End of file
Sep 24, 2021 14:28:18.454 [0x8070fad00] DEBUG - Completed after connection close: [192.168.1.193:55508] -3 GET /:/websockets/notifications (14 live) TLS GZIP 5983ms 4 bytes
Sep 24, 2021 14:28:19.612 [0x8070fa800] DEBUG - handleStreamRead code 1: stream truncated
Sep 24, 2021 14:28:19.612 [0x8070fa800] DEBUG - NotificationStream: Removing because of error
Sep 24, 2021 14:28:19.613 [0x8070fa800] DEBUG - Completed after connection close: [192.168.1.193:55458] -3 GET /:/websockets/notifications (9 live) TLS GZIP 1357302ms 3803473 bytes
Sep 24, 2021 14:28:25.082 [0x8070fad00] DEBUG - Request came in with unrecognized domain / IP ‘98.144.67.139’ in header Host; treating as non-local
Sep 24, 2021 14:28:25.082 [0x8070fad00] DEBUG - Auth: authenticated user 1 as Pow4Life181
Why is the stream truncated? Why was it removed? What is the error? Why is the client closing that socket?
Why does the Android app try once on the local network and immediately fail to remote? What is the error of the local network failure?
Plex server continues to handle other local API calls, proving it is accessible, IMO?
Sep 24, 2021 14:28:26.688 [0x8070fad00] DEBUG - Auth: authenticating user as guest
Sep 24, 2021 14:28:26.688 [0x808e48000] DEBUG - Request: [192.168.1.24:43920 (Allowed Network (Subnet))] GET /clients (17 live) GZIP Signed-in Token ()
Sep 24, 2021 14:28:26.688 [0x8070fad00] DEBUG - Completed: [192.168.1.24:43920] 200 GET /clients (17 live) GZIP 0ms 610 bytes (pipelined: 20)