# PlexConnect Not Working

**URL:** <https://forums.plex.tv/t/plexconnect-not-working/58165>\
**Category:** Apps & Creations\
**Created:** [February 22, 2014, 5:35pm UTC](https://forums.plex.tv/t/plexconnect-not-working/58165 "2014-02-22T17:35:35Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alan.Carslaw](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@Alan.Carslaw](https://forums.plex.tv/u/Alan.Carslaw)\
**Post date:** [February 22, 2014, 5:35pm UTC](https://forums.plex.tv/t/plexconnect-not-working/58165/1 "2014-02-22T17:35:35Z")

</div>

Unable to accèss Plex on ATV3 have installed PlexConnect on ubuntu and set required config along with certificate between ATV and the Server but still no joy. When I open up iMovie App it opens up as standard and does not switch to Plex..... I have set DNS as the PMS server IP.&nbsp;

&nbsp;

Please see config and log:

&nbsp;

view PlexConnect.log

&nbsp;

22:43:25 PlexConnect: started: 22:43:25

22:43:25 PlexConnect: Version: 0.3.1+

22:43:25 PlexConnect: Python: 2.7.5+ (default, Sep 19 2013, 13:48:49)

[GCC 4.8.1]

22:43:25 PlexConnect: Host OS: linux2

22:43:25 PlexConnect: IP\_self: 192.168.100.20

22:43:25 DNSServer: started: 22:43:25

22:43:25 DNSServer: \*\*\*

22:43:25 DNSServer: DNSServer: Serving DNS on 192.168.100.20 port 53.

22:43:25 DNSServer: \*\*\*

22:43:25 WebServer: started: 22:43:25

22:43:25 WebServer: started: 22:43:25

22:43:25 WebServer: \*\*\*

22:43:25 WebServer: WebServer: Serving HTTP on 192.168.100.20 port 80.

22:43:25 WebServer: \*\*\*

22:43:25 WebServer: \*\*\*

22:43:25 WebServer: WebServer: Serving HTTPS on 192.168.100.20 port 443.

22:43:25 WebServer: \*\*\*

&nbsp;

[PlexConnect]

enable\_plexgdm = True

ip\_pms = 192.168.100.20

port\_pms = 32400

enable\_dnsserver = True

port\_dnsserver = 53

ip\_dnsmaster = 8.8.8.8

prevent\_atv\_update = True

enable\_plexconnect\_autodetect = True

ip\_plexconnect = 192.168.100.20

hosttointercept = icloud.apple.com

port\_webserver = 80

enable\_webserver\_ssl = True

port\_ssl = 443

certfile = /home/alancarslaw/PlexConnect/assets/certificates/trailers.pem

loglevel = Normal

logpath = .

&nbsp;

&nbsp;

ps -ef | grep -i plex

avahi&nbsp; &nbsp; &nbsp; 489 &nbsp; &nbsp; 1&nbsp; 0 Feb15 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:44 avahi-daemon: running [**plex** mediaserver.local]

**plex** &nbsp; &nbsp; &nbsp; 9082&nbsp; 9080&nbsp; 0 Feb20 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 /bin/sh /usr/sbin/start\_pms

**plex** &nbsp; &nbsp; &nbsp; 9083&nbsp; 9082&nbsp; 0 Feb20 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:09:51 ./ **Plex** Media Server

**plex** &nbsp; &nbsp; &nbsp; 9092&nbsp; 9083&nbsp; 0 Feb20 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:08:49 **Plex** Plug-in [com. **plex** app.system] /var/lib/ **plex** mediaserver/Library/Application Support/ **Plex** Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 0.9.9.3.402-c7906ea /var/lib/ **plex** mediaserver/Library/Application Support/ **Plex** Media Server/Plug-ins/System.bundle

**plex** &nbsp; &nbsp; &nbsp; 9142&nbsp; 9083&nbsp; 0 Feb20 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:01:18 /usr/lib/ **plex** mediaserver/ **Plex** DLNA Server

1000 &nbsp; &nbsp; 11061 10844&nbsp; 0 17:33 pts/0&nbsp; &nbsp; 00:00:00 grep --color=auto -i **plex**

root &nbsp; &nbsp; 13048 &nbsp; &nbsp; 1&nbsp; 0 Feb20 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 python /home/alancarslaw/ **Plex** Connect/ **Plex** Connect.py 2\>&1 \>/dev/null

root &nbsp; &nbsp; 13051 13048&nbsp; 0 Feb20 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:04 python /home/alancarslaw/ **Plex** Connect/ **Plex** Connect.py 2\>&1 \>/dev/null

root &nbsp; &nbsp; 13052 13048&nbsp; 0 Feb20 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:25 python /home/alancarslaw/ **Plex** Connect/ **Plex** Connect.py 2\>&1 \>/dev/null

root &nbsp; &nbsp; 13053 13048&nbsp; 0 Feb20 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:25 python /home/alancarslaw/ **Plex** Connect/ **Plex** Connect.py 2\>&1 \>/dev/null

&nbsp;

&nbsp;

Hope someone will be able to help me here

---

<div class="post-metadata">

**Author:** ![sander1](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@sander1](https://forums.plex.tv/u/sander1)\
**Post date:** [February 22, 2014, 5:47pm UTC](https://forums.plex.tv/t/plexconnect-not-working/58165/2 "2014-02-22T17:47:24Z")

</div>

> hosttointercept = icloud.apple.com

This seems wrong. Did you manually change anything in one of the Python files?

---

<div class="post-metadata">

**Author:** ![Alan.Carslaw](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@Alan.Carslaw](https://forums.plex.tv/u/Alan.Carslaw)\
**Post date:** [February 22, 2014, 5:48pm UTC](https://forums.plex.tv/t/plexconnect-not-working/58165/3 "2014-02-22T17:48:53Z")

</div>

I thought you had to change it to icloud.apple.com to use the likes of iMovie theatre app etc.... what do you have down in your config for this?&nbsp;

---

<div class="post-metadata">

**Author:** ![sander1](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@sander1](https://forums.plex.tv/u/sander1)\
**Post date:** [February 22, 2014, 6:05pm UTC](https://forums.plex.tv/t/plexconnect-not-working/58165/4 "2014-02-22T18:05:31Z")

</div>

> [...] to use the likes of iMovie theatre app etc

That I don't know. For the default setup of PlexConnect the "Trailers" app is used. If you want to see if you can make it work with that first (before trying to use a different app), quit PlexConnect, [remove the _Settings.cfg_ file](https://github.com/iBaa/PlexConnect/wiki/Settings-for-advanced-use-and-troubleshooting#wiki-overview), put back the original, unedited&nbsp;_Settings.py_ file and try again.

**Edit:** I just found the instructions on how to use the iMovies app: [https://forums.plex.tv/topic/86012-how-to-use-imovie-theater-instead-of-the-trailers-app/](https://forums.plex.tv/topic/86012-how-to-use-imovie-theater-instead-of-the-trailers-app/) I have not tested this, but the only thing I see that's different from your config is the hosttointercept value (yours:&nbsp;icloud.apple.com; from the tutorial:&nbsp;www.icloud.com).

**Edit 2:** You need to do some extra steps for the iMovies certificates as well, I think.

---

<div class="post-metadata">

**Author:** ![f00b4r](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/f00b4r/32/768_2.png) [@f00b4r](https://forums.plex.tv/u/f00b4r)\
**Post date:** [February 22, 2014, 8:20pm UTC](https://forums.plex.tv/t/plexconnect-not-working/58165/5 "2014-02-22T20:20:08Z")

</div>

Yeah just run and cleanly shut down PlexConnect to create settings.cfg, change host to intercept and create the relevant cert with the correct name.

---

<div class="post-metadata">

**Author:** ![Alan.Carslaw](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@Alan.Carslaw](https://forums.plex.tv/u/Alan.Carslaw)\
**Post date:** [February 23, 2014, 5:03pm UTC](https://forums.plex.tv/t/plexconnect-not-working/58165/6 "2014-02-23T17:03:21Z")

</div>

Ok have done that and re-created certificate using www.icloud.com as original one used iCloud.apple.com however when I remove old profile on ATV and try to add new one I get unable to add profile - An error occurred while adding the profile [-1004]. Check the URL and try again. I have double checked and made sure its using the correct URL and that the ATV is connected on WIFI/Network. Can someone help?

---

<div class="post-metadata">

**Author:** ![baa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baa/32/2026_2.png) [@baa](https://forums.plex.tv/u/baa)\
**Post date:** [February 23, 2014, 5:21pm UTC](https://forums.plex.tv/t/plexconnect-not-working/58165/7 "2014-02-23T17:21:19Z")

</div>

What URL are you trying? Did you restart PlexConnect after changing Settings.cfg?

---

<div class="post-metadata">

**Author:** ![Alan.Carslaw](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@Alan.Carslaw](https://forums.plex.tv/u/Alan.Carslaw)\
**Post date:** [February 23, 2014, 5:32pm UTC](https://forums.plex.tv/t/plexconnect-not-working/58165/8 "2014-02-23T17:32:37Z")

</div>

Yes I have restarted PlexConnect.... put in full user [http://ipaddress/home/alancarslaw/PlexConnect/assets/certificates/trailers.cer&nbsp;](http://ipaddress/home/alancarslaw/PlexConnect/assets/certificates/trailers.cer%C2%A0)

---

<div class="post-metadata">

**Author:** ![Alan.Carslaw](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@Alan.Carslaw](https://forums.plex.tv/u/Alan.Carslaw)\
**Post date:** [February 23, 2014, 5:33pm UTC](https://forums.plex.tv/t/plexconnect-not-working/58165/9 "2014-02-23T17:33:04Z")

</div>

also tried it with trailers.pem as well still no joy :(&nbsp;

---

<div class="post-metadata">

**Author:** ![f00b4r](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/f00b4r/32/768_2.png) [@f00b4r](https://forums.plex.tv/u/f00b4r)\
**Post date:** [February 23, 2014, 6:06pm UTC](https://forums.plex.tv/t/plexconnect-not-working/58165/10 "2014-02-23T18:06:30Z")

</div>

try :

[http://ipaddress/trailers.cer](http://ipaddress/trailers.cer)

As per the [wiki](https://github.com/iBaa/PlexConnect/wiki/Install-Guide-Certificate-via-Ethernet)&nbsp;(you can use the IP address instead, especially as you are no longer configured to hijack trailers)

Although you should really have named it imove.cer instead so you knew which one it was ;)

---

<div class="post-metadata">

**Author:** ![Alan.Carslaw](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@Alan.Carslaw](https://forums.plex.tv/u/Alan.Carslaw)\
**Post date:** [February 23, 2014, 7:04pm UTC](https://forums.plex.tv/t/plexconnect-not-working/58165/11 "2014-02-23T19:04:37Z")

</div>

Surely you have to pull full path to where trailers.cer is located so the above would not work just to put&nbsp;[http://ipaddress/trailers.cer](http://ipaddress/trailers.cer "External link")

---

<div class="post-metadata">

**Author:** ![f00b4r](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/f00b4r/32/768_2.png) [@f00b4r](https://forums.plex.tv/u/f00b4r)\
**Post date:** [February 23, 2014, 7:40pm UTC](https://forums.plex.tv/t/plexconnect-not-working/58165/12 "2014-02-23T19:40:02Z")

</div>

> Surely you have to pull full path to where trailers.cer is located so the above would not work just to put&nbsp;[http://ipaddress/trailers.cer](http://ipaddress/trailers.cer)

  
It's being hosted on the webserver part of PlexConnect so the full normal directory path means nothing.  
Just make sure you are actually replacing ipaddress with your actual PlexConnect device IP.

---

<div class="post-metadata">

**Author:** ![roidy](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/roidy/32/128627_2.png) [@roidy](https://forums.plex.tv/u/roidy)\
**Post date:** [February 23, 2014, 7:41pm UTC](https://forums.plex.tv/t/plexconnect-not-working/58165/13 "2014-02-23T19:41:44Z")

</div>

As long as the trailers.cer file is in the same directory as the trailers.pem file, which is setup in Settings.cfg, then PlexConnect will add the correct path.

---

<div class="post-metadata">

**Author:** ![Alan.Carslaw](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@Alan.Carslaw](https://forums.plex.tv/u/Alan.Carslaw)\
**Post date:** [February 23, 2014, 10:08pm UTC](https://forums.plex.tv/t/plexconnect-not-working/58165/14 "2014-02-23T22:08:57Z")

</div>

alancarslaw@plexmediaserver:~/PlexConnect/assets/certificates$ ls -l

total 16

-rw-r--r-- 1 alancarslaw alancarslaw&nbsp; 921 Feb 20 19:48 certificates.txt

-rw-r--r-- 1 alancarslaw alancarslaw&nbsp; 860 Feb 23 16:31 trailers.cer

-rw-r--r-- 1 alancarslaw alancarslaw 1675 Feb 23 16:31 trailers.key

-rw-r--r-- 1 alancarslaw alancarslaw 2895 Feb 23 16:31 trailers.pem

alancarslaw@plexmediaserver:~/PlexConnect$ sudo view Settings.cfg

[sudo] password for alancarslaw:&nbsp;

&nbsp;

[PlexConnect]

enable\_plexgdm = False

ip\_pms = 192.168.100.20

port\_pms = 32400

enable\_dnsserver = True

port\_dnsserver = 53

ip\_dnsmaster = 8.8.8.8

prevent\_atv\_update = True

enable\_plexconnect\_autodetect = True

ip\_plexconnect = 192.168.100.20

hosttointercept = www.icloud.com

port\_webserver = 80

enable\_webserver\_ssl = True

port\_ssl = 443

certfile = /home/alancarslaw/PlexConnect/assets/certificates/trailers.pem

loglevel = Normal

logpath = .

&nbsp;

---

<div class="post-metadata">

**Author:** ![Alan.Carslaw](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@Alan.Carslaw](https://forums.plex.tv/u/Alan.Carslaw)\
**Post date:** [February 24, 2014, 5:46pm UTC](https://forums.plex.tv/t/plexconnect-not-working/58165/15 "2014-02-24T17:46:24Z")

</div>

any ideas?

---

<div class="post-metadata">

**Author:** ![baa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baa/32/2026_2.png) [@baa](https://forums.plex.tv/u/baa)\
**Post date:** [February 24, 2014, 6:01pm UTC](https://forums.plex.tv/t/plexconnect-not-working/58165/16 "2014-02-24T18:01:47Z")

</div>

Why did you modify the certfile setting - adding the full path from /home/alan...? Is this for sure the same as "~"?

---

<div class="post-metadata">

**Author:** ![Alan.Carslaw](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@Alan.Carslaw](https://forums.plex.tv/u/Alan.Carslaw)\
**Post date:** [February 25, 2014, 5:34pm UTC](https://forums.plex.tv/t/plexconnect-not-working/58165/17 "2014-02-25T17:34:38Z")

</div>

I don't know what you mean here Baa?&nbsp;

---

<div class="post-metadata">

**Author:** ![baa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baa/32/2026_2.png) [@baa](https://forums.plex.tv/u/baa)\
**Post date:** [February 25, 2014, 6:53pm UTC](https://forums.plex.tv/t/plexconnect-not-working/58165/18 "2014-02-25T18:53:44Z")

</div>

\>\>certfile = /home/alancarslaw/PlexConnect/assets/certificates/trailers.pem

This is not the default line - and I have no idea if this translates to the folder you showed the content of previously.

---

<div class="post-metadata">

**Author:** ![Alan.Carslaw](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@Alan.Carslaw](https://forums.plex.tv/u/Alan.Carslaw)\
**Post date:** [February 25, 2014, 8:03pm UTC](https://forums.plex.tv/t/plexconnect-not-working/58165/19 "2014-02-25T20:03:19Z")

</div>

Can you advise me what the default line should be for this please?&nbsp;

---

<div class="post-metadata">

**Author:** ![Alan.Carslaw](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@Alan.Carslaw](https://forums.plex.tv/u/Alan.Carslaw)\
**Post date:** [February 25, 2014, 8:14pm UTC](https://forums.plex.tv/t/plexconnect-not-working/58165/20 "2014-02-25T20:14:29Z")

</div>

I ran the following to create certificate:

&nbsp;

openssl req -new -nodes -newkey rsa:2048 -out ~/Desktop/trailers.pem -keyout ~/Desktop/trailers.key -x509 -days 7300 -subj "/C=US/CN=www.icloud.com"

&nbsp;

then&nbsp;

&nbsp;

openssl x509 -in ~/Desktop/trailers.pem -outform der -out ~/Desktop/trailers.cer && cat ~/Desktop/trailers.key \>\> ~/Desktop/trailers.pem

[Next page](https://forums.plex.tv/t/plexconnect-not-working/58165.md?page=2)
