Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web server URL #611

Open
UKenGB opened this issue Dec 22, 2021 · 1 comment
Open

Web server URL #611

UKenGB opened this issue Dec 22, 2021 · 1 comment

Comments

@UKenGB
Copy link

UKenGB commented Dec 22, 2021

I am trying to get PlexConnect on ATV3 talking to the web server of PlexConnect running on Mac that is also the PMS. As far as I can tell, the front end on the ATV is all javascript and uses 'baseURL' when sending any web queries. Currently these are sent to the PlexConnect web server running on the same machine (i.e. the ATV), but I see no reason why they could not instead be directed to a PlexConnect web server on a different machine that would be faster and able to serve multiple ATVs each running the PlexConnect front end. But…

Can anyone explain how the js front end gets that 'baseURL'. It seems to get it from the ATV system, but I don't see how that knows anything about that, but I'm not an iOS or TVOS developer. So if anyone can shed any light on how the js front end obtains the baseURL for its queries to the web server, that would be enormously helpful.

@UKenGB
Copy link
Author

UKenGB commented Jan 1, 2022

Have now got it all running, with PlexConnect fully hosted on the same Mac as PMS itself and with purely a bag.plist on the JB'd ATV3,2 - no PlexConnect required on there at all.

However since the Mac in question also runs another web server on port 80, I had to use a different port for PlexConnect. Easily enough added into Settings.cfg, but it is then not used so nothing works. The baseURL is set in PlexConnect.py which uses the 'hosttointercept' setting, but currently without adding on the specified port. I changed that to add the port and it all works.

Seems to me this needs to be incorporated into the core code, but I have no idea how this needs to be done., so could do with some advice on that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant