Plex HTPC - Cant connecto to server

Server Version#: 4.132.2
Player Version#: Plex HTPC for Linux 1.65.3.199-97fd8691

I try to manually define/connect from the HTPC player to my plex server.

Dunno why this does not work.
From the same client i can open the server in the browser and can fetch information with curl. http://192.168.2.196:32400

marc@workstation:~$ curl -v http://192.168.2.196:32400
* processing: http://192.168.2.196:32400
*   Trying 192.168.2.196:32400...
* Connected to 192.168.2.196 (192.168.2.196) port 32400
> GET / HTTP/1.1
> Host: 192.168.2.196:32400
> User-Agent: curl/8.2.1
> Accept: */*
> 
< HTTP/1.1 200 OK
< X-Plex-Protocol: 1.0
< Content-Type: text/xml;charset=utf-8
< Content-Length: 4611
< Connection: Keep-Alive
< Keep-Alive: timeout=20
< Cache-Control: no-cache
< Date: Thu, 01 Aug 2024 16:09:49 GMT
< 
<?xml version="1.0" encoding="UTF-8"?>
<MediaContainer size="24" allowCameraUpload="0" allowChannelAccess="1" allowSharing="1" allowSync="0" allowTuners="1" backgroundProcessing="1" companionProxy="1" countryCode="" diagnostics="logs,databases,streaminglogs" eventStream="1" friendlyName="plex.lan" hubSearch="1" itemClusters="1" livetv="7" machineIdentifier="fe3e53f5d1d28127d4a10601ed3df505b61706f0" mediaProviders="1" multiuser="1" musicAna
...

On my SmartTVs i use the same combination of host&port and it works just fine.

Could this be CORS related?

grep -i "192.168.2.196" Plex\ HTPC.log 
Aug 01, 2024 18:23:46.768 [137715910770048] ERROR - [Web] Access to XMLHttpRequest at 'http://192.168.2.196:32400/identity?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx' from origin 'file://' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://app.plex.tv' that is not equal to the supplied origin.
Aug 01, 2024 18:23:46.893 [137715910770048] ERROR - [Web] 07/04/2024 18:23:46:893 [null:83zxt62xt5iqdzdwc1tilgms] WARN 07/04/2024 18:23:46:769 [null:83zxt62xt5iqdzdwc1tilgms] WARN [discoverServers] Failed to get identity for manual server 192.168.2.196:32400.
Aug 01, 2024 18:23:46.895 [137715910770048] INFO - [Web] 07/04/2024 18:23:46:894 [null:83zxt62xt5iqdzdwc1tilgms] INFO 07/04/2024 18:23:46:772 [null:83zxt62xt5iqdzdwc1tilgms] INFO [Server] Testing connections to 192.168.2.196:32400
Aug 01, 2024 18:23:46.898 [137715910770048] ERROR - [Web] Access to XMLHttpRequest at 'http://192.168.2.196:32400/identity' from origin 'file://' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://app.plex.tv' that is not equal to the supplied origin.
Aug 01, 2024 18:23:46.899 [137715910770048] INFO - [Web] 07/04/2024 18:23:46:898 [null:83zxt62xt5iqdzdwc1tilgms] INFO [Server] Finished testing 192.168.2.196:32400. Result: Could not get a server identifier. Status: notConnected
Aug 01, 2024 18:23:51.501 [137715910770048] INFO - [Web] 07/04/2024 18:23:51:500 [null:83zxt62xt5iqdzdwc1tilgms] INFO [Server] Testing connections to 192.168.2.196:32400
Aug 01, 2024 18:23:51.509 [137715910770048] ERROR - [Web] Access to XMLHttpRequest at 'http://192.168.2.196:32400/identity' from origin 'file://' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://app.plex.tv' that is not equal to the supplied origin.
Aug 01, 2024 18:23:51.510 [137715910770048] INFO - [Web] 07/04/2024 18:23:51:509 [null:83zxt62xt5iqdzdwc1tilgms] INFO [Server] Finished testing 192.168.2.196:32400. Result: Could not get a server identifier. Status: notConnected
Aug 01, 2024 18:23:51.511 [137715910770048] INFO - [Web] 07/04/2024 18:23:51:511 [null:83zxt62xt5iqdzdwc1tilgms] INFO [Server Retry] Starting connection retries to 192.168.2.196:32400 (notConnected)
Aug 01, 2024 18:23:53.513 [137715910770048] INFO - [Web] 07/04/2024 18:23:53:513 [null:83zxt62xt5iqdzdwc1tilgms] INFO [Server Retry] Retrying connection to 192.168.2.196:32400 (notConnected)

Plex HTPC.log (299.5 KB)

Tested the Windows version of Plex HTPC in a VM.
Seems like it works in the Windows version and the problem is Linux specific.

have you tried changing DNS to a public one like Google’s

A CORS error as in the log shown, has absolutly nothing todo with DNS.
But i gave it a try and as said, nothing changed.

Tried with Cloudflare (1.1.1.1), Google DNS (8.8.8.8) & Quad9 (9.9.9.9).
The all resolve app.plex.tv to the same IPs:

  • 104.18.1.127
  • 104.18.0.127

The error has something todo with a browser/webview.
I assume from the output on stdout when started via terminal you use QT & QWebEngineView, correct?

There need the CORS header to be adjusted.

Is there a list of cli arguments to pass to the application?
--help, -h, ? are not recognized as arguments, and there is no man page.

Perhaps there is a option to override/disable the CORS check for testing.

Anything new here?
Can a developer look into this/confirm?

The plex-htpc player for linux is defacto useless.

OS: Ubuntu 22.04.4 LTS

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