2023-09-08, 07:57 PM
Hi all, got a bit of a headscratcher here:
I've set up my Jellyfin instance, put it behind a reverse proxy (caddy) and I have a DNS entry setup to point to my server so I can easily access it from outside the local network. To get it to play nicely with some other web servers running on the same computer, I have enabled the baseUrl functionality giving it a suffix of /jellyfin.
When I:
connect locally, by directly using the local IP address of the server (e.g., 192.168.1.3:8096/jellyfin) it works perfectly.
connect remotely, on a different network, by using the FQDN (e.g., mydomain.com/jellyfin) it works perfectly. Due to this I don't think the issue is with the reverse proxy setup
However, when I connect locally by using the same FQDN (e.g., mydomain.com/jellyfin), it does not work. The browser directs me to a "server selection" screen, and when I select my server, I get a message "We're unable to connect to the selected server right now. Please ensure it is running and try again.". When I look into the developer console, I can see that the call to https://mydomain.com/jellyfin/system/info/public succeeds. The only potentially concerning thing in that response is that it returns back in the LocalAddress field, a value similar to, http://192.168.1.3:8096/jellyfin (but going to this URL directly works fine). In the console logs, I see the following message: "http request succeeded, but found a different server Id than what was expected"
I'd really like to get this working so that I can use the remote URL of mydomain.com/jellyfin anywhere I go, especially on my mobile devices.
Thanks!
I've set up my Jellyfin instance, put it behind a reverse proxy (caddy) and I have a DNS entry setup to point to my server so I can easily access it from outside the local network. To get it to play nicely with some other web servers running on the same computer, I have enabled the baseUrl functionality giving it a suffix of /jellyfin.
When I:
connect locally, by directly using the local IP address of the server (e.g., 192.168.1.3:8096/jellyfin) it works perfectly.
connect remotely, on a different network, by using the FQDN (e.g., mydomain.com/jellyfin) it works perfectly. Due to this I don't think the issue is with the reverse proxy setup
However, when I connect locally by using the same FQDN (e.g., mydomain.com/jellyfin), it does not work. The browser directs me to a "server selection" screen, and when I select my server, I get a message "We're unable to connect to the selected server right now. Please ensure it is running and try again.". When I look into the developer console, I can see that the call to https://mydomain.com/jellyfin/system/info/public succeeds. The only potentially concerning thing in that response is that it returns back in the LocalAddress field, a value similar to, http://192.168.1.3:8096/jellyfin (but going to this URL directly works fine). In the console logs, I see the following message: "http request succeeded, but found a different server Id than what was expected"
I'd really like to get this working so that I can use the remote URL of mydomain.com/jellyfin anywhere I go, especially on my mobile devices.
Thanks!