I’m using Plexamp 4.10.1 on iOS. It works well on my local network, but it runs into trouble when I’m accessing via a reverse proxy on the public Internet. I found some relevant lines in the plexamp log files:
Jun 22, 2024 11:04:54.091 [Javascript] INFO - DEVICE: Initializing manager.
Jun 22, 2024 11:04:54.091 [Javascript] INFO - DEVICE: Fetching latest provider list from cloud.
Jun 22, 2024 11:04:54.091 [Javascript] INFO - DEVICE: Fetching latest list from cloud.
Jun 22, 2024 11:04:54.091 [Javascript] INFO - DEVICE: Fetching latest cloud player list from https://sonos.plex.tv
Jun 22, 2024 11:04:54.091 [Javascript] INFO - DEVICE: Starting connection test.
Jun 22, 2024 11:04:54.091 [Javascript] INFO - LRUCache: Loading 0 entries into Loudness cache.
Jun 22, 2024 11:04:54.091 [Javascript] INFO - LRUCache: Loading 0 entries into AlbumCodec cache.
Jun 22, 2024 11:04:54.091 [0x6af6f000] DEBUG - Networking: Create request 2: (GET https://plex.tv/media/providers) network type -1.
Jun 22, 2024 11:04:54.091 [0x6af6f000] DEBUG - Networking: Create request 3: (GET https://sonos.plex.tv/resources) network type -1.
Jun 22, 2024 11:04:54.091 [Javascript] INFO - DEVICE: Looking for an active server in 2 total servers.
Jun 22, 2024 11:04:54.091 [Javascript] INFO - DEVICE: Finding best connection for transpi XXX.
Jun 22, 2024 11:04:54.091 [0x6af6f000] DEBUG - Networking: Create request 4: (GET https://XXX.plex.direct:32400/) network type -1.
Jun 22, 2024 11:04:54.096 [0x6af6f000] DEBUG - Networking: Create request 5: (GET https://my-custom-domain.com:22078/) network type -1.
Jun 22, 2024 11:04:54.096 [0x6af6f000] DEBUG - Networking: Create request 6: (GET http://my-custom-domain.com:22078/) network type -1.
Jun 22, 2024 11:04:54.096 [0x6af6f000] DEBUG - Networking: Create request 7: (GET https://plex.tv/api/v2/user/privacy.json) network type -1.
Jun 22, 2024 11:04:54.097 [0x6af6f000] DEBUG - Networking: Create request 8: (GET https://plex.tv/api/v2/resources?includeHttps=1&includeRelay=1) network type -1.
Jun 22, 2024 11:04:54.097 [Javascript] INFO - ACCOUNT: Refreshing data.
Jun 22, 2024 11:04:54.098 [0x6baeb000] DEBUG - Networking: Create request 9: (GET https://plex.tv/api/v2/user.json?includeSubscriptions=1&includeProviders=1) network type -1.
Jun 22, 2024 11:04:54.105 [0x6b7a3000] DEBUG - Networking: Completed request 5: (GET https://my-custom-domain.com:22078/) with code -7 (have 0 bytes) in 8 ms.
Jun 22, 2024 11:04:54.105 [Javascript] WARNING - DEVICE: Server connection https://my-custom-domain.com:22078 didn't work for transpi: HTTP status -7
Jun 22, 2024 11:04:54.105 [0x6b7a3000] DEBUG - Networking: Completed request 6: (GET http://my-custom-domain.com:22078/) with code -7 (have 0 bytes) in 8 ms.
Jun 22, 2024 11:04:54.105 [Javascript] WARNING - DEVICE: Server connection http://my-custom-domain.com:22078 didn't work for transpi: HTTP status -7
Jun 22, 2024 11:04:54.123 [0x6b7a3000] DEBUG - Networking: Completed request 4: (GET https://XXX.plex.direct:32400/) with code 200 (have 8334 bytes) in 26 ms.
Jun 22, 2024 11:04:54.123 [Javascript] INFO - DEVICE: Server connection worked for transpi ~ https://XXX.plex.direct:32400
Jun 22, 2024 11:04:54.123 [Javascript] INFO - DEVICE: Reading libraries and features from transpi
Jun 22, 2024 11:04:54.123 [0x6af6f000] DEBUG - Networking: Create request 10: (GET https://XXX.plex.direct:32400/media/providers?includePreferences=1) network type -1.
Jun 22, 2024 11:04:54.195 [0x6b7a3000] DEBUG - Networking: Completed request 10: (GET https://XXX.plex.direct:32400/media/providers?includePreferences=1) with code 200 (have 30275 bytes) in 71 ms.
Jun 22, 2024 11:04:54.197 [Javascript] INFO - DEVICE: Found 5 libraries from transpi: Home, Movies, TV Shows, Music, Playlists
Jun 22, 2024 11:04:54.197 [Javascript] INFO - DEVICE: Got working server of transpi
I have replaced my server id with XXX, and my custom domain with my-custom-domain.com in the above logs.
Both https://my-custom-domain.com and http://my-custom-domain.com were configured as “Custom server access URLs” in the Plex server configuration, and I’m able to access the Plex instance via https://my-custom-domain.com using a web browser.
I was confused as to where the 22078 port is coming from in the logs. My reverse-proxy is not listerning on this port at all, hence the CURLE_COULDNT_CONNECT errors in the logs for these requests.
I thought of updating the “Custom server access URLs” to include explicit port numbers (https://my-custom-domain.com:443), and Plexamp immediately started working! I’m confused as to why this is required though, I didn’t see 22078 in the settings anywhere, is this expected behavior? If so, where is it documented?