Possible?: PlexConnect AND Plex Server on Raspberry Pi 3B+

I’m currently having a Plex Server on my Raspberry Pi 3B+. This RPi is also running Pi-hole (including webserver port 80).

Now I want my non jailbroken Apple TV 2 to connect to the Plex Server. As I understand I then need to setup PlexConnect.

Questions:

  1. Can PlexConnect be installed on the RPi that already has a Plex Server?

  2. Will Pi-hole cause problems to PlexConnect? I think PlexConnect also have a webserver and a DNS-server included, just like Pi-hole.

  3. Is there any tutorial on how to setup PlexConnect on a RPi?

Thanks!

Some hints:

  1. PlexConnect requires Python 2.7.12 or above, if this is available for Pi 3B+ then you should be able to install PlexConnect using the Linux install guide
  2. PlexConnect requires ports 80 and 443, if these are used by Pi-hole then you need to create reverse proxy rules (the latest version includes samples for apache and nginx)
  3. PlexConnect normally requires port 53 but you can disable its DNS service and use another DNS

There’s also the alternative to jailbrake your ATV2 and install PlexConnect on it

Hi again

I can confirm that Python is available for Pi3B+. Current version on my system is Python 2.7.13.

I’ve followed the Linux install guide and have installed PlexConnect.

Pi-hole is including lighttpd webserver on port 80. I don’t think port 443 is used. I’m not sure how to set up reverse proxy rules and I’m also not able to find the examples you are referring to. Would it be possible to setup reverse proxy rules for lighttpd server?

Thank you!

I’m afraid I can’t help setting reverse proxies with lighttpd server. There’s an alternative, configure lighttpd to listen to another port, and not port 80, such as said here.

Unfortionately, Pi-hole will not work if I configure lighttpd to listen to another port. So my only hope is to setup a reverse proxy with lighttpd server.

What I’ve done is to added the following to /etc/lighttpd/external.conf.

$HTTP["host"] == "trailers.apple.com" {
        proxy.server = ( ( (
                "host" => "127.0.0.1",
                "port" => 8080
        ) ) )
}

$SERVER["socket"] == "127.0.0.1:443" {
        $HTTP["host"] == "trailers.apple.com" {
                ssl.engine = "enable"
#               ssl.pemfile = "/usr/local/lib/PlexConnect/trailers.pem"
                ssl.ca-file = "/usr/local/lib/PlexConnect/trailers.crt"
                server.name = "trailers.apple.com"
                proxy.server = ( ( (
                        "host" => "127.0.0.1",
                        "port" => 4433
                ) ) )
        }
}

When uncommenting the line that starts with ssl.pemfile I get an error.

I’ve also modified the PlexConnect Settings.cfg and Settings.py to use 8080 instead of 80 and 4433 instead of 443.

Pi-hole also includes a DNS server. I think maby disabling the PlexConnect DNS server is the easiest solution. But not sure how to configure lighttpd server.

Not sure if I’m on the right path or not. Maby someone who knows can help.

I would suggest that you follow two steps:

  1. See if reverse proxy in lighttpd works (with DNS enabled in PlexConnect). When this is Ok, then
  2. Disable DNS in PlexConnect and parametrize your DNS/dnsmasq server accordingly

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