fbpx
Skip to content

Installing PlexConnect On Windows 7, 8 and 8.1 After Apple TV Update

Update:Ā How To Install PlexConnect On Windows 10
Update: PlexConnect on Windows: How To Hijack iMovie Theatre Or WSJ Instead Of Trailers App
Update:Ā OpenPlex App Installs And Manages PlexConnect on Mac OS X
Update:Ā PlexĀ On Apple TV WithoutĀ PlexConnectĀ Or Jailbreak via AirPlay
Plex LogoI’ve already reported about that PlexConnect still works on Apple TV Software 6.0 Beta (5.4 Seed 3, iOS 7) after the silent updateĀ from August, 27, 2013 and how to fix PlexConnect to get it running again on Apple TV 2 or Apple TV 3. However, getting PlexConnect installed on a Windows system like windows 7, 8 or 8.1 is a little bit tricky. AlthoughĀ Paul Kehrer published immediately a tweak to get PlexConnect working again on Apple TV 2 and 3, aĀ lot of people are reporting about installation is failing, especially on Windows systems.Ā The most common problem there is to get the certificate or profile correctly installed onĀ the Apple TV. In the following I give you a simple step-by-step guide to get PlexConnect running again on Windows 7, 8 and 8.1. For installing PlexConnect on Mac OS X follow the fix described on the post ‘PlexConnect still works on Apple TV Software 6.0 Beta (5.4 Seed 3, iOS 7) after the silent update‘.

I conducted the installation on my Acer Aspire 1810T (64-bit) running on Windows 8.1 with Windows 8 Media Center installed. This fix should work for Windows 7 and 8 as well.

Step 1: Prepare your Windows system!

  • Download and install the latest Python version 2.7.6Ā (“Python 2.7.6 Windows Installer”)Ā for your windows system (Do not install in any case versions 3.X nor “Python 2.7.6 Windows X86-64 Installer”!).
  • Download and installĀ Win32 OpenSSLĀ Win32 v1.0.2oĀ (Nor the light version, neither Win64 version!).Ā If Microsoft Visual C++ 2008 Redistributable Package (x64) is missing for installing OpenSSL, then download it from here.Ā You need to install the version dated 11/29/2007!
  • Download and installĀ iPhone Configuration Utility.
  • Download and extract the Plex Media Server, version 0.9.8.6.175.
  • First, delete all previous files of older PlexConnect versions from your Windows PC. Then download and extract the latest PlexConnect ZIP-file from GithubĀ (Do not download from PlexConnect.org!) to the folder C:\PlexConnect (create the folder, if it doesn’t exist).
  • Create the folder C:\Cert on your Windows root directory. Download the batch file ‘cert.create.bat‘ and copy the file into C:\Cert:Ā 
  • Note:Ā Some people face problems with ‘trailers.der‘. They got the error message ‘ValueError: unknown url type: /trailers.der‘ instead. In this case use the alternate file ‘cert.create-2.bat‘ which creates a ‘trailer.cer‘ file instead of a ‘trailers.der‘ file (Kudos to commentator Mark!). If you downloaded ‘cert.create-2.bat‘, you should change the command in step 2 toĀ ‘cert.create-2‘:Ā 

Step 2: Getting started to create the profile for Apple TV!

  • Open the windows Explorer and navigate to C:\Cert, left click on the screen below the name of cert.create.bat, so that no files are highlighted!
  • Press the shift key and right click on the screen. You will see the following Windows open:
Source: miApple.me

Source: miApple.me

 

  • Now click on ‘Open Command Window Here‘ and theĀ command prompt will open and start at the folder C:\Cert.
  • Run the cert.create.bat (alternate retype all the commands in the cert.create.txt file). The folder C:\Cert should now contain 5 files: .rnd, cert.create.bat, trailers.der, trailers.key and trailers.pem. And a window ‘Certificate‘ opens automatically:
Source: miApple.me

Source: miApple.me

 

  • Click on the button ‘Install Certificate…‘, then click twice on ‘Next’ and at the ending on ‘Finish’. you should get the message ‘The import was successful‘.
  • CloseĀ the command prompt window and click on the ‘Certificate‘ the ‘OK‘ button now!
  • Go to C:\CertĀ select and copy the filesĀ .rnd, trailers.der, trailers.key andĀ trailers.pem,Ā navigate to C:\PlexConnect where you have extracted the PlexConnect ZIP-file on your Windows PC.
  • Go to the folder C:\PlexConnect\assets and create a subfolder named ‘certificates‘.
  • Go to the newly created folder C:\PlexConnect\assets\certificatesĀ and paste the copy of theĀ files .rnd, trailers.der, trailers.key and trailers.pem.

Step 3: Installing the Certificate Profile on your Apple TV

Updates:Ā Ā iPhone Configuration UtilityĀ for Windows isn’t officially available anymore. You have to install the certificate files later onĀ without USB.

  • Start the iPhone Configuration Utility. You should find the iPCU.exe file there: C:Program Files (x86)\iPhone Configuration UtilityĀ and click on ‘Configuration Profiles‘. Then click on ‘New+‘.
  • Give it a Name and Identifier (I suggest one word without any special characters).
Source: miApple.me

Source: miApple.me

 

  • Scroll down and click on ‘Credentials‘, click on ‘Configure‘ andĀ scroll down to find the certificate you just created and installed. It is named ‘trailers.apple.com‘. Click on it and then click ‘OK‘:
Source: miApple.me

Source: miApple.me

 

  • Now plug in your Apple TV 2 or 3 to a power source, wait till the light stops flashing and then connect it to the Windows PC via a micro USB cable. Wait till your Apple TV is recognized by your PC and the iPhone Configuration Utility program.
  • Click on your device and then the Configuration Profiles tab.
  • Click the install button. Wait tillĀ this button will have changed from ‘Install‘ to ‘Remove‘!
Source: miApple.me

Source: miApple.me

 

  • Close the iPhone Configuration Utility andĀ disconnect the Apple TV from the computer and connect the Apple TV to your TV.
  • Change the DNS of your Apple TV to the IP-address of your Windows PC on which is Plex Media Server is running, following the part ‘Configuring your ATV’ of guide on github.

Step 4: Finish!

  • Restart PlexConnect.py fromĀ C:\PlexConnect.
  • Go to your Apple TV and try the Trailers it should be working now. you should see the following:
Source: miApple.me

Source: miApple.me

 

Note:Ā Normally, you should not need to make any changes in the settings.cfg file of PlexConnect. I used the unchanged PlexConnect files!

If you followed this installation guide step-by-step PlexConnect on your Windows 7, 8 or 8.1 PC should be fixed after the silent Apple TV update and should now work again on your Apple TV 2 or Apple TV 3! Does it? Let us know and comment! Does it not? Let me know and I try to help you!

Stay tuned! šŸ˜‰

213 thoughts on “Installing PlexConnect On Windows 7, 8 and 8.1 After Apple TV Update”

  1. Pingback: PlexConnect Still Works On Apple TV Software 6.0 Beta (5.4 Seed 3, iOS 7) After Update | miApple.me

    1. Hi Paul,

      test it. But meanwhile I think that there’s something, in general, wrong with your permissions on your Windows PC. Do you have Windows 8 running? Do you have administrator rights?

      Cheers,
      Gee Are

  2. super !!
    fonctionne pour moi alors que la premiĆØre version n’avait mĆŖme pas fonctionnĆ© (ou peut-ĆŖtre qu’Apple Ć©tait passĆ© par lĆ  avant…).
    en tout cas, maintenant j’ai accĆØs Ć  tous mes mĆ©dias.
    super !!!
    enfin mon apple tv 3 va me servir ! car il faut avouer que sans Ƨa, je n’en vois pas trop l’intĆ©rĆŖt…

    1. Bonsoir, sa fais une semaine que je test plein de truc chaque soir, sur mon apple TV 3 en 6.0.2.
      Je sais que y’a de gens que sa fonctionne sous 6.0.2 donc le problĆØme il est ou :S
      Svp si une personne aimerais ce faire 5 Euro (10$ Canadien) Via paypal, Pour me trouver le problĆØme via TeamViewer ou autres. Contactez moi sur alex.bergeron94@icloud.com merci,

  3. Pingback: Guida per utenti Windows: Installare PlexConnect su Apple TV 2/3 | khriss.com

  4. Pingback: Tecnico Apple Cerveteri, Ladispoli, Civitavecchia, Fregene

  5. Pingback: Installare PlexConnect, Apple TV 3 jailbreak per utenti windows | AppleTvItalia - Guide, News e jailbreak per la tua Apple TV

  6. Thanks for the detailed instruction… everything went very smooth, no error or anything, however ATV3 says “trailers not available, try later”?

    1. Hi Bubakhon,

      there must be something wrong if you got this error message. I can only recommend to start to process from the very beginning. Did you use the batch file for producing the cert files? This is the most common failure.

      Cheers,
      Gee Are

  7. Hi Gee Are,
    Thanks for your prompt response. yes I did use the batch file to create the cert file. following is what I get when I run PlexConnect::

    13:01:11 PlexConnect: started: 13:01:11
    13:01:11 PlexConnect: IP_self: 192.168.1.5
    13:01:12 DNSServer: started: 13:01:12
    13:01:12 DNSServer: ***
    13:01:12 DNSServer: DNSServer: Serving DNS on 192.168.1.5 port 53.
    13:01:12 DNSServer: intercept: [‘trailers.apple.com’, ‘atv.plexconnect’] => 192.168.1.5
    13:01:12 DNSServer: restrain: [‘mesu.apple.com’, ‘appldnld.apple.com’, ‘appldnld.apple.com.edgesuite.net’] => 127.0.0.1
    13:01:12 DNSServer: forward other to higher level DNS: 192.168.1.1
    13:01:12 DNSServer: ***
    13:01:12 WebServer: started: 13:01:12
    13:01:12 WebServer: ***
    13:01:12 WebServer: WebServer: Serving HTTP on 192.168.1.5 port 80.
    13:01:12 WebServer: ***
    13:01:12 PlexGDM: ***
    13:01:12 PlexGDM: looking up Plex Media Server
    13:01:12 PlexGDM: ***
    13:01:12 WebServer: started: 13:01:12
    13:01:12 WebServer: ***
    13:01:12 WebServer: WebServer: Serving HTTPS on 192.168.1.5 port 443.
    13:01:12 WebServer: ***
    13:01:13 PlexGDM: servers discovered: 1
    13:01:13 XMLConverter: PlexGDM – PMS: 192.168.1.5:32400
    13:01:20 DNSServer: DNS request received!
    13:01:20 DNSServer: Source: (‘192.168.1.7’, 63011)
    13:01:20 DNSServer: Domain: init.itunes.apple.com
    13:01:20 DNSServer: ***forward request
    13:01:20 DNSServer: -> DNS response from higher level
    13:01:20 DNSServer: DNS request received!
    13:01:20 DNSServer: Source: (‘192.168.1.7’, 60778)
    13:01:20 DNSServer: Domain: xp.apple.com
    13:01:20 DNSServer: ***forward request
    13:01:21 DNSServer: -> DNS response from higher level
    13:01:21 DNSServer: DNS request received!
    13:01:21 DNSServer: Source: (‘192.168.1.7’, 53274)
    13:01:21 DNSServer: Domain: itunes.apple.com
    13:01:21 DNSServer: ***forward request
    13:01:21 DNSServer: -> DNS response from higher level
    13:04:43 DNSServer: DNS request received!
    13:04:43 DNSServer: Source: (‘192.168.1.7’, 56489)
    13:04:43 DNSServer: Domain: trailers.apple.com
    13:04:43 DNSServer: ***intercept request
    13:04:43 DNSServer: -> DNS response: 192.168.1.5

    Also, in my ATV, I have change the DNS to 192.168.1.5 from “192.168.1.1” . Also, following is my batch file content:
    C:\OpenSSL-Win32\bin\openssl.exe req -new -nodes -newkey rsa:2048 -out C:.\trailers.pem -keyout C:.\trailers.key -x509 -days 7300 -subj “/C=US/CN=trailers.apple.com” -config C:\OpenSSL-Win32\bin\openssl.cfg

    C:\OpenSSL-Win32\bin\openssl.exe x509 -in C:.\trailers.pem -outform der -out C:.\trailers.der

    type C:.\trailers.key >> C:.\trailers.pem

    trailers.der

    I greatly appreciate any help on this.

    1. Hi Bubakhon,

      at the first time, I got the same output: Your certificate is either not properly installed or located at the wrong place on your PC. Repeat the part of creating and installing the certificate (delete all of the previous cert files from your PC before). Further more, you need to use exactly the software versions mentioned in step 1!

      Cheers,
      Gee Are

      1. Gee Are,

        I tried to get the OpenSSL file and Visual C++ files you mention but they’re no longer available. Is there another source that I can get them from? The reason I ask is I’m getting the “trailers not available” error. Thanks for your help.

  8. Hi, thanks again for a quick response….
    I went back & deleted everything and started all over….same result šŸ™
    My path to trailers.pem is “C:\PlexConnect\assets\certificates\”

    is it possible my port 80 being used by other prgm? if yes, how can I change it?

    Thx,
    Bubakhon

    1. Hi Bubakhon.

      all created files in c:\cert must remain there, meaning you should copy the trailers.pem to C:\PlexConnect\assets\certificates\ and not move it!

      Regarding the ports, port 443 is important, too. Have a look into your router settings, there must be something like ‘port forwarding’ in connection with the different IP adresses your devices are using. Check in your router if there are devices using the ports 80 and 443. what kind of router are you using?

      However, I think it is a certificate issue.

      Cheers,
      Gee Are

  9. I have the “frontier” router…
    Actually, I went ahead and reset my router to factory setting…
    checked port forwarding, don’t see port 80 or 443 being used by any application

    What could be wrong with my certificate? By the way, when I unziped the PlexConnect, the certificate directory was already there and there is file name “certificates” already there which is a text file. Do I need to do anything with this?

    very frustrating now,

    Regards,
    -Bubakhon

  10. Hi Gee Are,

    You were correct, fixed the certificate path and it’s all up and running. Thanks for all your help.

    I was able to add Channels , created a Movie & TV shows section in my library however I don’t know how to add contents to theses sections from the web/internet. Any idea?

    Regards,
    -Abe

    1. Hi Bubakhon,

      that’s great! Sorry for not reaching miApple.me, but my hoster alfahosting.de got massive problems. My blog couldn’t be reached for 14,5 hours! However, miApple.me is back again!

      Regarding your question to add content from the web, go to My Plex (https://my.plexapp.com/queue/help) and add the bookmark ā€šPlex it’ to your browser. Then go to the website where the content is you want to add and click on the bookmark ‘Plex it’. The content should now be added to your ‘My Plex’.

      Cheers,
      Gee Are

    2. Hi bubakon,

      Could you tell me what path did you finally use for the certificate? I have this feeling that I could have the same troubles you had.

      Greetings,

      Angelo

    3. Can’t download the bat files. Why does it keep asking for a user name and password. If I need to join something to get the downloads how do I do that or where does the download files exist.

  11. Hi Gee Are,

    Glad to see miApple.me is back, this is a very ressourceful site…keep up the good work !

    After “plex’ing” it and adding it to “my plex”, how do I view on my TV? Where do they show up on plex lib?

    Regards.
    Bubakhon

    1. Hi Bubakhon,

      thank you very much for that compliment!

      What computer do you have? If you got a Mac, you can use AirPlay to see the movie on your TV via your Apple TV. If you got a Windows PC, just take AirServer (https://miapple.me/2013/05/12/airserver-1-8-and-1-9-beta-on-windows-8-one-step-forward-one-step-backwards-airplay/) or AirParrot (https://miapple.me/2013/07/20/airplay-fixing-airparrot-sound-and-video-problems-on-windows-7-8-and-8-1-preview/) to AirPlay the movies to your Apple TV. Before buying, check AirServer or AirParrot in the trial mode on your system because there could be some compatibility issues.
      Another way is to get the Plex App on an iPad and then use AirPlaying.

      Cheers,
      Gee Are

  12. Hi

    I followed all instruction but unable to install profile on apple tv 3. in iPhone configuration utility install button is appearing but when I click it remain same. I waited long to convert in remove sign but nothing happen….please advice

    Sanjay

    1. Hi Sanjay,

      there are two common reasons for not getting profiles installed on an Apple TV
      – using a ‘wrong’ micro-USB cable, e.g. I’ve got one which doesn’t work, using another cable worked (I don’t know why the one works and the other not, you have to try it)
      – if you previously tried to get PlexConnect running on your Apple TV before and you changed the DNS to ‘manual’ you should which back to ‘automatic’ and after that try installing the profile again.

      Cheers,
      Gee Are

  13. following error shown in console log
    causing not installing profile on apple tv
    :25 Apple-TV AppleTV[16] : T:[Main] BRSystemLog : Failed to setup time: Error Domain=com.apple.time Code=1 “Error from timed” UserInfo=0x4a7470 {NSLocalizedDescription=Error from timed}
    Jan 1 05:30:28 Apple-TV mc_mobile_tunnel[67] : (Note ) MC: mc_mobile_tunnel starting.
    Jan 1 05:30:28 Apple-TV mc_mobile_tunnel[67] : (Note ) MC: mc_mobile_tunnel shutting down.
    Jan 1 05:30:30 Apple-TV softwareupdated[34] : 3ede3d98 : Cleaning up unused prepared updates
    Jan 1 05:30:31 Apple-TV timed[29] : (Error) CoreTime: Can’t set time zone to nil!
    Jan 1 05:30:34 Apple-TV mc_mobile_tunnel[68] : (Note ) MC: mc_mobile_tunnel starting.
    Jan 1 05:30:34 Apple-TV profiled[21] : (Note ) MC: Profile -a-p-p-l-e-t-v-f-i-a-x -q-u-e-u-e-d -f-o-r -i-n-s-t-a-l-l-a-t-i-o-n-.
    Jan 1 05:30:34 Apple-TV mc_mobile_tunnel[68] : (Note ) MC: mc_mobile_tunnel shutting down.
    Jan 1 05:31:03 Apple-TV wifid[27] : WiFi:[-978307136.422117]: Client apsd set type to background application
    Jan 1 05:31:03 Apple-TV wifid[27] : WiFi:[-978307136.419230]: Enable WoW requested by “apsd”
    Jan 1 05:31:25 Apple-TV mc_mobile_tunnel[71] : (Note ) MC: mc_mobile_tunnel starting.
    Jan 1 05:31:25 Apple-TV profiled[21] : (Note ) MC: Profile -a-p-p-l-e-t-v-f-i-a-x -q-u-e-u-e-d -f-o-r -i-n-s-t-a-l-l-a-t-i-o-n-.
    Jan 1 05:31:25 Apple-TV mc_mobile_tunnel[71] : (Note ) MC: mc_mobile_tunnel shutting down.
    Jan 1 05:31:27 Apple-TV mc_mobile_tunnel[72] : (Note ) MC: mc_mobile_tunnel starting.
    Jan 1 05:31:27 Apple-TV profiled[21] : (Note ) MC: Profile -c-o-m-.-a-p-p-l-e-t-v-f-i-x -q-u-e-u-e-d -f-o-r -i-n-s-t-a-l-l-a-t-i-o-n-.
    Jan 1 05:31:27 Apple-TV mc_mobile_tunnel[72] : (Note ) MC: mc_mobile_tunnel shutting down.

  14. It works! Thanks a lot, Gee!
    Just one question: Should I run PlexConnect.py every time I want connect apple TV to Plex?
    Thanks in advance.
    Leo

  15. When I get to the part where I have to enter this command:

    “type C:.\trailers.key >> C:.\trailers.pem”

    I get an error that reads that .key isn’t recognized. What do I do to fix this?

    P.S. I’m doing this on a Win7 machine.

    1. Hi Adam,

      it seems that there is something wrong with your OpenSSL installation. Please, check that OpenSSL is in the root directory and you didn’t change anything (folder names, etc…). Did you install the right version as I mentioned? Deinstall and reinstall OpenSSL and try again.

      Cheers,
      Gee Are

  16. Hi Gee Are,

    I’m pretty sure I have done everything you explain. But my aTV3 keeps sending me this message when I try to open Trailers: “Trailers not available. Try later.”

    When I run PlexConnect python file, I get this :

    PlexConnect : ***
    PlexConnect : PlexConnect
    PlexConnect : Press ENTER to shut down.
    PlexConnect : ***
    PlexConnect : IP_self: 192.168.1.2
    PlexGDM : ***
    PlexGDM : looking up Plex Media Server
    PlexGDM : ***
    PlexGDM : servers discovered: 1
    DNSServer : ***
    DNSServer : Starting up.
    DNSServer : intercept trailers.apple.com: 192.168.1.2
    DNSServer : forward other to higher level DNS: 8.8.8.8
    DNSServer : ***
    WebServer : ***
    WebServer : WebServer: Serving HTTP on 0.0.0.0 port 80.
    WebServer : ***

    And when I try to access to Trailers I get this message on the python:

    DNSServer : DNS request received!
    DNSServer : Source: (‘192.168.1.33’, 55637)
    DNSServer : Domain: trailers.apple.com
    DNSServer : ***intercept request
    DNSServer : -> DNS response: 192.168.1.2

    And after a while i get:

    DNSServer : DNS request received!
    DNSServer : Source: (‘192.168.1.33’, 49921)
    DNSServer : Domain: iphonesubmissions.apple.com
    DNSServer : ***forward request
    DNSServer : -> DNS response from higher level

    The file “trailers.pem” is located at C:\PlexConnect\assets\certificates

    The files “cert.create.bat” “.rnd” “trailers.der” “trailers.key” “trailers.pem” are located at C:\Cert

    I hope you can detect what is wrong here. By the way I’m using Windows 8 pro with media center and I have the firewall deactivated (just for now, to make sure that isnĀ“t interfering).

    Thank you very much for taking the time to help people like me that clearly doesn’t do very well at these kind of things hahah.

  17. More info:

    Python version: 2.7.5
    Plex Media Center version: 0.9.8.10.215
    Open SSL version: Win32 v1.0.1e
    iPhone Configuration Utility version: 3.6.2

    I downloaded the certificate and the PlexConnect files from the links that you give.

    Thanks!

    1. Hi Angelo,

      in most cases for problems with PlexConnect the source of that is the certificate. Hence, check the certificate on your Apple TV. Connect it via micro-USB cable ro your Windows PC (wait till the light of the Apple TV stops blinking and start the iPhone configuration utility and look for the certificate. You should have a ‘remove’ in the line of the certificate. If not, there should be ‘install’ (click on it).

      But before this, reboot your PC and unplug the Apple TV from power supply and try again: First start Plex on your PC, then start PlexConnect and after that restart your Apple TV.

      Cheers,
      Gee Are

      1. Did everything as you told me, but still not functioning. There are some things that grab my attention I would like to ask:

        1) When I executed the setup for Open SSL it told me that it will not function properly without Microsoft Visual C++ 2008 redistributable (even when I have installed it). Is this generating a problem? Cause I have the impression that, despite of the message, my Open SSL is working whithout any trouble, as I could follow every step you described.

        2) The first time I ran PlexConnect python file it generated a bunch of compiled python files with the same names of the python files on the folder. So now, what PlexConnect file do I have to open to get this to work, the pytohn one or the compiled python one?

        3) I read something about some micro usb cables just doesn’t work. Im using a cable that came with my Blackberry. Could this be the problem? (Notest that my computer DOES detect the ATV3 when I use this cable and i can perform everything you listed. But maybe.. I don’t know.. It just won’t save the changes I make on my aTV)

        4) “WebServer: Serving HTTP on 0.0.0.0 port 80.” Isn’t weird that is is serving on 0.0.0.0 shouldn’t it be on the IP of my serving computer?

        I appreciate your help. Sorry for being such a newbie on this things. I just want to get this done.

        1. Hi Angelo,

          to answer your questions:

          1) I’ve got exactly the same message after upgrading from Windows 8.1 Pro Preview to the final version of Windows 8.1 Pro. But I had created the cert file before upgrading. Now I tried it again and got a failure message regarding that OpenSSL cannot process a file. The cert file was created though, but it will not work. This means your problem is the creating of a correct working cert file! You should resolve the ‘Microsoft Visual C++ 2008 redistributable’ issue. I will have a look into this, too. And I will come back as soon as I found a solution…

          2) The generation of such files is a correct behaviour. You have to start PlexConnect by double-clicking the file ‘plexconnect.py’.

          3) That’s true, I experienced this also. If your Apple TV is recognized by the iPhone configuration utility you’ve got a properly working micro-USB-cable.

          4) No, you shouldn’t (despite you’ve got your own DNS server). 0.0.0.0 is the address of the Google DNS server. Works perfectly.

          Cheers,
          Gee Are

            1. Thank you Gee Are, it worked like a charm!

              Now I did’t have trouble installing OpenSSL. But after doing everything again it just gave me the same results as before.

              DNS request received!
              Source: (‘192.168.1.33’, 57149)
              Domain: trailers.apple.com
              ***intercept request
              -> DNS response: 192.168.1.2

              What else could be wrong with the certificate?

              1. Did you install the correct certificate? I’m asking this because you must now have 2: The wrong one from your first trial and (at least) a second one after installing OpenSSL properly. Go to iPhone configuration utility and look for the two certificates…..

                1. Finally it works!! It appears that the problem was on the zip of PlexConnect I had. I downloaded one called “PlexConnect-master” and installed the certificates through CMD.

                  Thank you very much for your patience and your diligence šŸ™‚

  18. Worked a treat, the only change I had to make was to edit settings.cfg to change IP address from 0.0.0.0 to my local machine IP.

    Now to add some channels!

  19. Pingback: PlexConnect: Installling Certificates On Apple TV Without USB | miApple.me

  20. hello,

    it didnt work from the step PlexConnect: Installling Certificates On Apple TV Without USB.
    im using windows 7 ultimate.

    18:44:46 WebServer: serving .xml: /trailers.der
    —————————————-
    Exception happened during processing of request from (‘192.168.1.100’, 49384)
    Traceback (most recent call last):
    File “C:\Python27\lib\SocketServer.py”, line 295, in _handle_request_noblock
    self.process_request(request, client_address)
    File “C:\Python27\lib\SocketServer.py”, line 321, in process_request
    self.finish_request(request, client_address)
    File “C:\Python27\lib\SocketServer.py”, line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
    File “C:\Python27\lib\SocketServer.py”, line 649, in __init__
    self.handle()
    File “C:\Python27\lib\BaseHTTPServer.py”, line 340, in handle
    self.handle_one_request()
    File “C:\Python27\lib\BaseHTTPServer.py”, line 328, in handle_one_request
    method()
    File “C:\PlexConnect\WebServer.py”, line 182, in do_GET
    XML = XMLConverter.XML_PMS2aTV(PMSaddress, self.path + args, options)
    File “C:\PlexConnect\XMLConverter.py”, line 346, in XML_PMS2aTV
    PMS = PlexAPI.getXMLFromPMS(PMS_baseURL, path, options, authtoken=auth_token
    )
    File “C:\PlexConnect\PlexAPI.py”, line 318, in getXMLFromPMS
    response = urllib2.urlopen(request, timeout=10)
    File “C:\Python27\lib\urllib2.py”, line 127, in urlopen
    return _opener.open(url, data, timeout)
    File “C:\Python27\lib\urllib2.py”, line 396, in open
    protocol = req.get_type()
    File “C:\Python27\lib\urllib2.py”, line 258, in get_type
    raise ValueError, “unknown url type: %s” % self.__original
    ValueError: unknown url type: /trailers.der
    —————————————-

    1. Hi Eran,

      it seems to me that there is a failure with the Python installation and the creation of the cert file. Deinstall Python and reinstall it as ‘administrator’ and repeat the entire process to set up PlexConnect.

      Cheers,
      Gee Are

      1. I had the same problem when I downloaded the PlexConnect-master zip file.. however when if I choose PlexConnect-0.2 the “unknown url” error stopped. But now when I click trailer, it says unavailable

        1. Hi Einar,

          If you got ‘trailers unavailable’ then the certificate was not correctly created or was not installed properly in most cases. In the first case, Python was not correct installed, in the second case you have to install it again. Please, take care that all cert files have to be in two places:
          – C:\cert and
          – C:\PlexConnect\assets\certificates!
          Take care to use exactly this folder names.

          Cheers,
          Gee Are

  21. Hi. I have problem to generate 5 files from cert.create.bat. I run command in C:\Cert like you said and just one file is generating: trailers.pem 0kb Would you help me with this small problem, please?

  22. I have followed your instructions but when i goto trailers on my apple i get it is not available at the moment please try later

    what files do i need to send so you can check my settings

  23. sorry for the length of dos screen but this is what i have

    13:31:42 DNSServer: Domain: e905.b.akamaiedge.net
    13:31:42 DNSServer: ***forward request
    13:31:42 DNSServer: -> DNS response from higher level
    13:31:47 DNSServer: DNS request received!
    13:31:47 DNSServer: Source: (‘192.168.0.10’, 57026)
    13:31:47 DNSServer: Domain: trailers.apple.com
    13:31:47 DNSServer: ***intercept request
    13:31:47 DNSServer: -> DNS response: 192.168.0.17
    13:31:53 DNSServer: DNS request received!
    13:31:53 DNSServer: Source: (‘192.168.0.10’, 54505)
    13:31:53 DNSServer: Domain: se.itunes.apple.com
    13:31:53 DNSServer: ***forward request
    13:31:53 DNSServer: -> DNS response from higher level
    13:31:53 DNSServer: DNS request received!
    13:31:53 DNSServer: Source: (‘192.168.0.10’, 54595)
    13:31:53 DNSServer: Domain: a3.mzstatic.com
    13:31:53 DNSServer: ***forward request
    13:31:53 DNSServer: -> DNS response from higher level
    13:31:53 DNSServer: DNS request received!
    13:31:53 DNSServer: Source: (‘192.168.0.10’, 63201)
    13:31:53 DNSServer: Domain: ocsp.verisign.net
    13:31:54 DNSServer: ***forward request
    13:31:54 DNSServer: -> DNS response from higher level
    13:31:54 DNSServer: DNS request received!
    13:31:54 DNSServer: Source: (‘192.168.0.10’, 57376)
    13:31:54 DNSServer: Domain: a2.mzstatic.com
    13:31:54 DNSServer: ***forward request
    13:31:54 DNSServer: -> DNS response from higher level
    13:31:54 DNSServer: DNS request received!
    13:31:54 DNSServer: Source: (‘192.168.0.10’, 63214)
    13:31:54 DNSServer: Domain: a4.mzstatic.com
    13:31:54 DNSServer: ***forward request
    13:31:54 DNSServer: -> DNS response from higher level
    13:31:54 DNSServer: DNS request received!
    13:31:54 DNSServer: Source: (‘192.168.0.10’, 60425)
    13:31:54 DNSServer: Domain: a1.mzstatic.com
    13:31:54 DNSServer: ***forward request
    13:31:54 DNSServer: -> DNS response from higher level
    13:31:56 DNSServer: DNS request received!
    13:31:56 DNSServer: Source: (‘192.168.0.10’, 60416)
    13:31:56 DNSServer: Domain: iphonesubmissions.apple.com
    13:31:56 DNSServer: ***forward request
    13:31:56 DNSServer: -> DNS response from higher level
    13:31:59 DNSServer: DNS request received!
    13:31:59 DNSServer: Source: (‘192.168.0.10’, 62353)
    13:31:59 DNSServer: Domain: ld-5.itunes.apple.com
    13:31:59 DNSServer: ***forward request
    13:32:00 DNSServer: -> DNS response from higher level
    13:32:00 DNSServer: DNS request received!
    13:32:00 DNSServer: Source: (‘192.168.0.10’, 49253)
    13:32:00 DNSServer: Domain: e905.b.akamaiedge.net
    13:32:00 DNSServer: ***forward request
    13:32:00 DNSServer: -> DNS response from higher level
    13:32:03 DNSServer: DNS request received!
    13:32:03 DNSServer: Source: (‘192.168.0.10’, 64621)
    13:32:03 DNSServer: Domain: a338.phobos.apple.com
    13:32:03 DNSServer: ***forward request
    13:32:04 DNSServer: -> DNS response from higher level
    13:32:48 DNSServer: DNS request received!
    13:32:48 DNSServer: Source: (‘192.168.0.10’, 57514)
    13:32:48 DNSServer: Domain: init.itunes.apple.com
    13:32:48 DNSServer: ***forward request
    13:32:48 DNSServer: -> DNS response from higher level
    13:32:49 DNSServer: DNS request received!
    13:32:49 DNSServer: Source: (‘192.168.0.10’, 57272)
    13:32:49 DNSServer: Domain: EVIntl-ocsp.verisign.com
    13:32:49 DNSServer: ***forward request
    13:32:49 DNSServer: -> DNS response from higher level
    13:32:49 DNSServer: DNS request received!
    13:32:49 DNSServer: Source: (‘192.168.0.10’, 55790)
    13:32:49 DNSServer: Domain: EVSecure-ocsp.verisign.com
    13:32:49 DNSServer: ***forward request
    13:32:50 DNSServer: -> DNS response from higher level
    13:32:50 DNSServer: DNS request received!
    13:32:50 DNSServer: Source: (‘192.168.0.10’, 50738)
    13:32:50 DNSServer: Domain: setup.icloud.com
    13:32:50 DNSServer: ***forward request
    13:32:51 DNSServer: -> DNS response from higher level
    13:32:51 DNSServer: DNS request received!
    13:32:51 DNSServer: Source: (‘192.168.0.10’, 60779)
    13:32:51 DNSServer: Domain: upp.itunes.apple.com
    13:32:51 DNSServer: ***forward request
    13:32:51 DNSServer: -> DNS response from higher level
    13:32:51 DNSServer: DNS request received!
    13:32:51 DNSServer: Source: (‘192.168.0.10’, 64652)
    13:32:51 DNSServer: Domain: bookkeeper.itunes.apple.com
    13:32:51 DNSServer: ***forward request
    13:32:52 DNSServer: -> DNS response from higher level
    13:32:52 DNSServer: DNS request received!
    13:32:52 DNSServer: Source: (‘192.168.0.10’, 53499)
    13:32:52 DNSServer: Domain: itunes.apple.com
    13:32:52 DNSServer: ***forward request
    13:32:52 DNSServer: -> DNS response from higher level
    13:32:52 DNSServer: DNS request received!
    13:32:52 DNSServer: Source: (‘192.168.0.10’, 49408)
    13:32:52 DNSServer: Domain: xp.apple.com
    13:32:52 DNSServer: ***forward request
    13:32:52 DNSServer: -> DNS response from higher level
    13:32:52 DNSServer: DNS request received!
    13:32:52 DNSServer: Source: (‘192.168.0.10’, 52246)
    13:32:52 DNSServer: Domain: e673.g.akamaiedge.net
    13:32:52 DNSServer: ***forward request
    13:32:52 DNSServer: -> DNS response from higher level
    13:32:52 DNSServer: DNS request received!
    13:32:52 DNSServer: Source: (‘192.168.0.10’, 61664)
    13:32:52 DNSServer: Domain: p20-buy.itunes.apple.com
    13:32:52 DNSServer: ***forward request
    13:32:52 DNSServer: -> DNS response from higher level
    13:32:59 DNSServer: DNS request received!
    13:32:59 DNSServer: Source: (‘192.168.0.10’, 60814)
    13:32:59 DNSServer: Domain: init-p01st.push.apple.com
    13:32:59 DNSServer: ***forward request
    13:32:59 DNSServer: -> DNS response from higher level
    13:32:59 DNSServer: DNS request received!
    13:32:59 DNSServer: Source: (‘192.168.0.10’, 60505)
    13:32:59 DNSServer: Domain: 31-courier.push.apple.com
    13:32:59 DNSServer: ***forward request
    13:32:59 DNSServer: -> DNS response from higher level
    13:33:01 DNSServer: DNS request received!
    13:33:01 DNSServer: Source: (‘192.168.0.10’, 50124)
    13:33:01 DNSServer: Domain: se.itunes.apple.com
    13:33:01 DNSServer: ***forward request
    13:33:01 DNSServer: -> DNS response from higher level
    13:33:01 DNSServer: DNS request received!
    13:33:01 DNSServer: Source: (‘192.168.0.10’, 49745)
    13:33:01 DNSServer: Domain: a3.mzstatic.com
    13:33:01 DNSServer: ***forward request
    13:33:01 DNSServer: -> DNS response from higher level
    13:33:01 DNSServer: DNS request received!
    13:33:01 DNSServer: Source: (‘192.168.0.10’, 58608)
    13:33:01 DNSServer: Domain: pd-nk.itunes.apple.com
    13:33:01 DNSServer: ***forward request
    13:33:02 DNSServer: -> DNS response from higher level
    13:33:02 DNSServer: DNS request received!
    13:33:02 DNSServer: Source: (‘192.168.0.10’, 57977)
    13:33:02 DNSServer: Domain: ld-5.itunes.apple.com
    13:33:02 DNSServer: ***forward request
    13:33:02 DNSServer: -> DNS response from higher level
    13:33:02 DNSServer: DNS request received!
    13:33:02 DNSServer: Source: (‘192.168.0.10’, 57562)
    13:33:02 DNSServer: Domain: configuration.apple.com
    13:33:02 DNSServer: ***forward request
    13:33:02 DNSServer: -> DNS response from higher level
    13:33:02 DNSServer: DNS request received!
    13:33:02 DNSServer: Source: (‘192.168.0.10’, 60757)
    13:33:02 DNSServer: Domain: a5.mzstatic.com
    13:33:02 DNSServer: ***forward request
    13:33:02 DNSServer: -> DNS response from higher level
    13:33:02 DNSServer: DNS request received!
    13:33:02 DNSServer: Source: (‘192.168.0.10’, 55561)
    13:33:02 DNSServer: Domain: a4.mzstatic.com
    13:33:02 DNSServer: ***forward request
    13:33:02 DNSServer: -> DNS response from higher level
    13:33:02 DNSServer: DNS request received!
    13:33:02 DNSServer: Source: (‘192.168.0.10’, 56100)
    13:33:02 DNSServer: Domain: a2.mzstatic.com
    13:33:02 DNSServer: ***forward request
    13:33:03 DNSServer: -> DNS response from higher level
    13:33:03 DNSServer: DNS request received!
    13:33:03 DNSServer: Source: (‘192.168.0.10’, 63135)
    13:33:03 DNSServer: Domain: a1.mzstatic.com
    13:33:03 DNSServer: ***forward request
    13:33:03 DNSServer: -> DNS response from higher level
    13:33:05 DNSServer: DNS request received!
    13:33:05 DNSServer: Source: (‘192.168.0.10’, 53648)
    13:33:05 DNSServer: Domain: trailers.apple.com
    13:33:05 DNSServer: ***intercept request
    13:33:05 DNSServer: -> DNS response: 192.168.0.17
    13:33:06 DNSServer: DNS request received!
    13:33:06 DNSServer: Source: (‘192.168.0.10’, 60069)
    13:33:06 DNSServer: Domain: e673.g.akamaiedge.net
    13:33:06 DNSServer: ***forward request
    13:33:06 DNSServer: -> DNS response from higher level
    13:33:09 DNSServer: DNS request received!
    13:33:09 DNSServer: Source: (‘192.168.0.10’, 63075)
    13:33:09 DNSServer: Domain: play.itunes.apple.com
    13:33:09 DNSServer: ***forward request
    13:33:09 DNSServer: -> DNS response from higher level
    13:33:09 DNSServer: DNS request received!
    13:33:09 DNSServer: Source: (‘192.168.0.10’, 62038)
    13:33:09 DNSServer: Domain: local
    13:33:09 DNSServer: ***forward request
    13:33:09 DNSServer: -> DNS response from higher level
    13:33:09 DNSServer: DNS request received!
    13:33:09 DNSServer: Source: (‘192.168.0.10’, 52751)
    13:33:09 DNSServer: Domain: local
    13:33:09 DNSServer: ***forward request
    13:33:10 DNSServer: -> DNS response from higher level
    13:33:10 DNSServer: Warning: DNS error (10054): An existing connection was forci
    bly closed by the remote host
    13:33:15 DNSServer: DNS request received!
    13:33:15 DNSServer: Source: (‘192.168.0.10’, 62757)
    13:33:15 DNSServer: Domain: init.ess.apple.com
    13:33:15 DNSServer: ***forward request
    13:33:15 DNSServer: -> DNS response from higher level
    13:33:15 DNSServer: DNS request received!
    13:33:15 DNSServer: Source: (‘192.168.0.10’, 64704)
    13:33:15 DNSServer: Domain: SVRSecure-G3-aia.verisign.com
    13:33:15 DNSServer: ***forward request
    13:33:20 DNSServer: DNS request received!
    13:33:20 DNSServer: Source: (‘192.168.0.10’, 64704)
    13:33:20 DNSServer: Domain: SVRSecure-G3-aia.verisign.com
    13:33:20 DNSServer: ***forward request
    13:33:21 DNSServer: -> DNS response from higher level
    13:33:21 DNSServer: DNS request received!
    13:33:21 DNSServer: Source: (‘192.168.0.10’, 64704)
    13:33:21 DNSServer: Domain: SVRSecure-G3-aia.verisign.com
    13:33:21 DNSServer: ***forward request
    13:34:00 DNSServer: DNS request received!
    13:34:00 DNSServer: Source: (‘192.168.0.10’, 58788)
    13:34:00 DNSServer: Domain: e673.g.akamaiedge.net
    13:34:00 DNSServer: ***forward request
    13:34:00 DNSServer: -> DNS response from higher level
    13:34:01 DNSServer: DNS request received!
    13:34:01 DNSServer: Source: (‘192.168.0.10’, 49759)
    13:34:01 DNSServer: Domain: ocsp.verisign.net
    13:34:01 DNSServer: ***forward request
    13:34:02 DNSServer: -> DNS response from higher level
    13:34:55 DNSServer: DNS request received!
    13:35:30 DNSServer: Source: (‘192.168.0.10’, 60884)
    13:35:30 DNSServer: Domain: mesu.apple.com
    13:35:30 DNSServer: ***restrain request
    13:35:30 DNSServer: -> DNS response: 192.168.0.17
    13:35:30 DNSServer: DNS request received!
    13:35:30 DNSServer: Source: (‘192.168.0.10’, 60884)
    13:35:30 DNSServer: Domain: mesu.apple.com
    13:35:30 DNSServer: ***restrain request
    13:35:30 DNSServer: -> DNS response: 192.168.0.17
    13:35:30 DNSServer: DNS request received!
    13:35:30 DNSServer: Source: (‘192.168.0.10’, 60884)
    13:35:30 DNSServer: Domain: mesu.apple.com
    13:35:30 DNSServer: ***restrain request
    13:35:30 DNSServer: -> DNS response: 192.168.0.17
    13:35:30 DNSServer: DNS request received!
    13:35:30 DNSServer: Source: (‘192.168.0.10’, 60884)
    13:35:30 DNSServer: Domain: mesu.apple.com
    13:35:30 DNSServer: ***restrain request
    13:35:30 DNSServer: -> DNS response: 192.168.0.17
    13:35:30 DNSServer: DNS request received!
    13:35:30 DNSServer: Source: (‘192.168.0.10’, 53553)
    13:35:30 DNSServer: Domain: mesu.apple.com
    13:35:30 DNSServer: ***restrain request
    13:35:30 DNSServer: -> DNS response: 192.168.0.17
    13:35:30 DNSServer: DNS request received!
    13:35:30 DNSServer: Source: (‘192.168.0.10’, 53553)
    13:35:30 DNSServer: Domain: mesu.apple.com
    13:35:30 DNSServer: ***restrain request
    13:35:30 DNSServer: -> DNS response: 192.168.0.17
    13:35:30 DNSServer: DNS request received!
    13:35:30 DNSServer: Source: (‘192.168.0.10’, 53553)
    13:35:30 DNSServer: Domain: mesu.apple.com
    13:35:30 DNSServer: ***restrain request
    13:35:30 DNSServer: -> DNS response: 192.168.0.17
    13:35:30 DNSServer: DNS request received!
    13:35:30 DNSServer: Source: (‘192.168.0.10’, 53553)
    13:35:30 DNSServer: Domain: mesu.apple.com
    13:35:30 DNSServer: ***restrain request
    13:35:30 DNSServer: -> DNS response: 192.168.0.17
    13:35:30 DNSServer: DNS request received!
    13:35:30 DNSServer: Source: (‘192.168.0.10’, 61719)
    13:35:30 DNSServer: Domain: mesu.apple.com
    13:35:30 DNSServer: ***restrain request
    13:35:30 DNSServer: -> DNS response: 192.168.0.17
    13:35:30 DNSServer: DNS request received!
    13:35:30 DNSServer: Source: (‘192.168.0.10’, 61719)
    13:35:30 DNSServer: Domain: mesu.apple.com
    13:35:30 DNSServer: ***restrain request
    13:35:30 DNSServer: -> DNS response: 192.168.0.17
    13:35:30 DNSServer: DNS request received!
    13:35:30 DNSServer: Source: (‘192.168.0.10’, 61719)
    13:35:30 DNSServer: Domain: mesu.apple.com
    13:35:30 DNSServer: ***restrain request
    13:35:30 DNSServer: -> DNS response: 192.168.0.17
    13:35:30 DNSServer: Warning: DNS error (10054): An existing connection was forci
    bly closed by the remote host
    13:35:30 DNSServer: Warning: DNS error (10054): An existing connection was forci
    bly closed by the remote host
    13:35:30 DNSServer: Warning: DNS error (10054): An existing connection was forci
    bly closed by the remote host
    13:35:30 DNSServer: Warning: DNS error (10054): An existing connection was forci
    bly closed by the remote host
    13:35:30 DNSServer: Warning: DNS error (10054): An existing connection was forci
    bly closed by the remote host
    13:35:30 DNSServer: Warning: DNS error (10054): An existing connection was forci
    bly closed by the remote host
    13:35:30 DNSServer: Warning: DNS error (10054): An existing connection was forci
    bly closed by the remote host
    13:35:30 DNSServer: Warning: DNS error (10054): An existing connection was forci
    bly closed by the remote host
    13:35:47 DNSServer: DNS request received!
    13:35:47 DNSServer: Source: (‘192.168.0.10’, 50524)
    13:35:47 DNSServer: Domain: ocsp.verisign.net
    13:35:47 DNSServer: ***forward request
    13:35:47 DNSServer: -> DNS response from higher level
    13:35:48 DNSServer: DNS request received!
    13:35:48 DNSServer: Source: (‘192.168.0.10’, 63256)
    13:35:48 DNSServer: Domain: upp.itunes.apple.com.akadns.net
    13:35:48 DNSServer: ***forward request
    13:35:48 DNSServer: -> DNS response from higher level

    1. Hi Paul,

      it looks like your DNS you use with your Apple TV is in use by another service. Do you have an FTP server running, too? If so, stop the FTP server and try again. Further more, it seems that the certificate is not properly installed.

      If it does not help, here are some common mistakes made:
      – not using excatly the Python version mentioned in this post
      – the certificate files are not in the directory c:\cert
      – the certificate is not installed properly, try installing it again

      Please, take care that you followed EXACTLY the instruction in this post.

      Cheers,
      Gee Are

      1. I don’t think I have an FTP server running the DNS ip is the sane as my main machine where plex is installed

        Aldo the version if python I installed was 2.75 and my Certs are at c:/cert

    1. Hi Lex,

      to be able to help you, I need more information about your problem to get PlexConnect running.

      Did you exactly follow every single step in this work around?

      Cheers,
      Gee Are

      1. My version of my Apple TV 3 is 6.0.2. the problem is that when I open the trailer app. I get an error saying that I do not access to the trailer for the moment.

    2. That my problem My version of my Apple TV 3 is 6.0.2. the problem is that when I open the trailer app. I get an error saying that I do not access to the trailer for the moment.

  24. 18:33:31 PlexConnect: ***
    18:33:31 PlexConnect: PlexConnect
    18:33:31 PlexConnect: Press CTRL-C to shut down.
    18:33:31 PlexConnect: ***
    18:33:31 PlexConnect: started: 18:33:31
    18:33:31 PlexConnect: IP_self: 192.168.1.117
    18:33:31 DNSServer: started: 18:33:31
    18:33:31 DNSServer: ***
    18:33:31 DNSServer: DNSServer: Serving DNS on 192.168.1.117 port 53.
    18:33:31 DNSServer: intercept: [‘trailers.apple.com’, ‘atv.plexconnect’] => 192.
    168.1.117
    18:33:31 DNSServer: restrain: [‘mesu.apple.com’, ‘appldnld.apple.com’, ‘appldnld
    .apple.com.edgesuite.net’] => 127.0.0.1
    18:33:31 DNSServer: forward other to higher level DNS: 8.8.8.8
    18:33:31 DNSServer: ***
    18:33:31 WebServer: started: 18:33:31
    18:33:31 WebServer: ***
    18:33:31 WebServer: WebServer: Serving HTTP on 192.168.1.117 port 80.
    18:33:31 WebServer: ***
    18:33:31 WebServer: started: 18:33:31
    18:33:31 WebServer: ***
    18:33:31 WebServer: WebServer: Serving HTTPS on 192.168.1.117 port 443.
    18:33:31 WebServer: ***
    18:33:47 WebServer: serving .xml: /trailer.der
    —————————————-
    Exception happened during processing of request from (‘192.168.1.116’, 49318)
    Traceback (most recent call last):
    File “C:\Python27\lib\SocketServer.py”, line 295, in _handle_request_noblock
    self.process_request(request, client_address)
    File “C:\Python27\lib\SocketServer.py”, line 321, in process_request
    self.finish_request(request, client_address)
    File “C:\Python27\lib\SocketServer.py”, line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
    File “C:\Python27\lib\SocketServer.py”, line 649, in __init__
    self.handle()
    File “C:\Python27\lib\BaseHTTPServer.py”, line 340, in handle
    self.handle_one_request()
    File “C:\Python27\lib\BaseHTTPServer.py”, line 328, in handle_one_request
    method()
    File “C:\PlexConnect\WebServer.py”, line 182, in do_GET
    XML = XMLConverter.XML_PMS2aTV(PMSaddress, self.path + args, options)
    File “C:\PlexConnect\XMLConverter.py”, line 346, in XML_PMS2aTV
    PMS = PlexAPI.getXMLFromPMS(PMS_baseURL, path, options, authtoken=auth_token
    )
    File “C:\PlexConnect\PlexAPI.py”, line 318, in getXMLFromPMS
    response = urllib2.urlopen(request, timeout=10)
    File “C:\Python27\lib\urllib2.py”, line 127, in urlopen
    return _opener.open(url, data, timeout)
    File “C:\Python27\lib\urllib2.py”, line 396, in open
    protocol = req.get_type()
    File “C:\Python27\lib\urllib2.py”, line 258, in get_type
    raise ValueError, “unknown url type: %s” % self.__original
    ValueError: unknown url type: /trailer.der
    —————————————-
    18:33:48 DNSServer: DNS request received!
    18:33:48 DNSServer: Source: (‘192.168.1.116’, 64583)
    18:33:48 DNSServer: Domain: gs-loc.apple.com
    18:33:48 DNSServer: ***forward request
    18:33:48 DNSServer: -> DNS response from higher level
    18:33:49 DNSServer: DNS request received!
    18:33:49 DNSServer: Source: (‘192.168.1.116’, 60741)
    18:33:49 DNSServer: Domain: cl2.apple.com
    18:33:49 DNSServer: ***forward request
    18:33:49 DNSServer: -> DNS response from higher level
    18:33:49 DNSServer: DNS request received!
    18:33:49 DNSServer: Source: (‘192.168.1.116’, 61632)
    18:33:49 DNSServer: Domain: http://www.apple.com
    18:33:49 DNSServer: ***forward request
    18:33:49 DNSServer: -> DNS response from higher level
    18:33:51 DNSServer: DNS request received!
    18:33:51 DNSServer: Source: (‘192.168.1.116’, 50508)
    18:33:51 DNSServer: Domain: a4.mzstatic.com
    18:33:51 DNSServer: ***forward request
    18:33:51 DNSServer: -> DNS response from higher level
    18:34:01 DNSServer: DNS request received!
    18:34:01 DNSServer: Source: (‘192.168.1.116’, 55754)
    18:34:01 DNSServer: Domain: e2843.g.akamaiedge.net
    18:34:01 DNSServer: ***forward request
    18:34:01 DNSServer: -> DNS response from higher level
    18:34:04 DNSServer: DNS request received!
    18:34:04 DNSServer: Source: (‘192.168.1.116’, 50707)
    18:34:04 DNSServer: Domain: trailers.apple.com
    18:34:04 DNSServer: ***intercept request
    18:34:04 DNSServer: -> DNS response: 192.168.1.117

    1. Hi Lex,

      the only advice I can give you, is to check the cert file installation again. If you can’t access the trailer, the reason lies always in a wrong cert file or wrong installation of the certificate.

      To check that the certificate is on your Apple TV: Go to settings, general and then to profiles: There should be ā€˜trailers.apple.com’ as a profile. If not, the certificate was not correctly installed.

      Cheers,
      Gee Are

  25. Pingback: AirParrot 1.1.7 For Windows: AirPlaying PC’s Screen To Apple TV Still Stutters | miApple.me

  26. I did everything like you said in the tutorial. When I click in trailers, AppleTv show me a message that say: “Trailers is unavailable. Try again later”
    Can you help me.

    1. Hi Toni,

      the advice I can give you, is to check the cert file installation again. If you can’t access the trailer, the reason always lies in a wrong cert file or wrong installation of the certificate.

      To check that the certificate is on your Apple TV: Go to settings, general and then to profiles: There should be ā€˜trailers.apple.com’ as a profile. If not, the certificate was not correctly installed.

      Cheers,
      Gee Are

  27. Pingback: PlexConnect Running On Apple TV 6.0.2 Update | miApple.me

  28. I am using AppleTV 3 with iOS 7.0.4
    I followed all the instructions but still can not connect to my plex server using the Trailers Channel.
    I created the pem and cert files, the PlexConnect start listening 80 and 443 because the cert file is inside assets\certificates, I run the IPhone Configuration Util to update AppleTV with the cert file I generate, I shutdown AppleTV and turn it on again, configure the DNS to point to my computer where Plex is running and yet it does not work.

    I did it 3 times and jumped to this tutorial that is much the same http://langui.sh/2013/08/27/appletv-ssl-plexconnect/

    09:32:37 PlexConnect: ***
    09:32:37 PlexConnect: PlexConnect
    09:32:37 PlexConnect: Press CTRL-C to shut down.
    09:32:37 PlexConnect: ***
    09:32:37 PlexConnect: started: 09:32:37
    09:32:37 PlexConnect: Version: 0.3.1
    09:32:37 PlexConnect: Python: 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500
    32 bit (Intel)]
    09:32:37 PlexConnect: Host OS: win32
    09:32:37 PlexConnect: IP_self: 192.168.1.106
    09:32:37 DNSServer: started: 09:32:37
    09:32:37 DNSServer: ***
    09:32:37 DNSServer: DNSServer: Serving DNS on 192.168.1.106 port 53.
    09:32:37 DNSServer: intercept: [‘trailers.apple.com’] => 192.168.1.106
    09:32:37 DNSServer: restrain: [‘mesu.apple.com’, ‘appldnld.apple.com’, ‘appldnld
    .apple.com.edgesuite.net’] => 127.0.0.1
    09:32:37 DNSServer: forward other to higher level DNS: 8.8.8.8
    09:32:37 DNSServer: ***
    09:32:37 WebServer: started: 09:32:37
    09:32:37 WebServer: ***
    09:32:37 WebServer: WebServer: Serving HTTP on 192.168.1.106 port 80.
    09:32:37 WebServer: ***
    09:32:37 WebServer: started: 09:32:37
    09:32:37 WebServer: ***
    09:32:37 WebServer: WebServer: Serving HTTPS on 192.168.1.106 port 443.
    09:32:37 WebServer: ***
    09:32:43 DNSServer: DNS request received!
    09:32:43 DNSServer: Source: (‘192.168.1.100’, 56234)
    09:32:43 DNSServer: Domain: a1.da1.akamai.net
    09:32:43 DNSServer: ***forward request
    09:32:43 DNSServer: -> DNS response from higher level

    Yet, nothing appears on my TV, only Trailers is unavailable. Try again later.

    1. Hi Daniel,

      the cert files have to remain in the folder C:/Cert, too!

      And you should exactly follow my tutorial because it is a improved one compared to Paul Kehrer’s one.

      Cheers,
      Gee Are

        1. I changed to 2.7.5
          The Plex finished every processing task regarding library update.
          The certificate was created using the bat files supplied by the link present in this tutorial.

          Still can’t connect to my Plex using Trailers.

          21:10:36 PlexConnect: ***
          21:10:36 PlexConnect: PlexConnect
          21:10:36 PlexConnect: Press CTRL-C to shut down.
          21:10:36 PlexConnect: ***
          21:10:36 PlexConnect: started: 21:10:36
          21:10:36 PlexConnect: Version: 0.3.1
          21:10:36 PlexConnect: Python: 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500
          32 bit (Intel)]
          21:10:36 PlexConnect: Host OS: win32
          21:10:36 PlexConnect: IP_self: 192.168.1.106
          21:10:36 DNSServer: started: 21:10:36
          21:10:36 DNSServer: ***
          21:10:36 DNSServer: DNSServer: Serving DNS on 192.168.1.106 port 53.
          21:10:36 DNSServer: intercept: [‘trailers.apple.com’] => 192.168.1.106
          21:10:36 DNSServer: restrain: [‘mesu.apple.com’, ‘appldnld.apple.com’, ‘appldnld
          .apple.com.edgesuite.net’] => 127.0.0.1
          21:10:36 DNSServer: forward other to higher level DNS: 8.8.8.8
          21:10:36 DNSServer: ***
          21:10:37 WebServer: started: 21:10:37
          21:10:37 WebServer: ***
          21:10:37 WebServer: WebServer: Serving HTTP on 192.168.1.106 port 80.
          21:10:37 WebServer: ***
          21:10:37 WebServer: started: 21:10:37
          21:10:37 WebServer: ***
          21:10:37 WebServer: WebServer: Serving HTTPS on 192.168.1.106 port 443.
          21:10:37 WebServer: ***
          21:11:36 DNSServer: DNS request received!
          21:11:36 DNSServer: Source: (‘192.168.1.100’, 61530)
          21:11:36 DNSServer: Domain: p37-buy.itunes.apple.com.akadns.net
          21:11:36 DNSServer: ***forward request
          21:11:36 DNSServer: -> DNS response from higher level
          21:11:38 DNSServer: DNS request received!
          21:11:38 DNSServer: Source: (‘192.168.1.100’, 55445)
          21:11:38 DNSServer: Domain: trailers.apple.com
          21:11:38 DNSServer: ***intercept request
          21:11:38 DNSServer: -> DNS response: 192.168.1.106

          1. Hi Daniel,

            I can’t see the Plex Media Server in the protocol.

            Just a few questions to check:
            – Is the Plex Media Server running on your PC?
            – Did you ‘Press CTRL-C’ to shut down Plex Server and reboot your PC and Apple TV (just unplug it)?

            Then restart your PC, run Plex Media Server on your PC, start PlexConnect and then restart your Apple TV.

            It should look like this:


            00:38:13 DNSServer: DNS request received!
            00:38:13 DNSServer: Source: (‘192.168.178.41’, 63013)
            00:38:13 DNSServer: Domain: atv.plexconnect
            00:38:13 DNSServer: ***intercept request
            00:38:13 DNSServer: -> DNS response: 192.168.178.49
            00:38:13 WebServer: serving .xml: /PlexConnect.xml
            00:38:13 PlexAPI: ***
            00:38:13 PlexAPI: looking up Plex Media Server
            00:38:13 PlexAPI: ***
            00:38:14 PlexAPI: GDM: Servers discovered: 1
            00:38:14 PlexAPI: Servers (local+MyPlex): 1
            …..

            Cheers,
            Gee Are

        2. [PlexConnect]
          port_pms = 32400
          port_webserver = 80
          ip_plexconnect = 0.0.0.0
          certfile = ./assets/certificates/trailers.pem
          ip_dnsmaster = 201.17.0.85
          loglevel = High
          enable_dnsserver = True
          logpath = ./log
          ip_pms = 192.168.1.106
          enable_plexgdm = True
          hosttointercept = trailers.apple.com
          port_ssl = 443
          enable_webserver_ssl = True
          prevent_atv_update = True
          port_dnsserver = 53
          enable_plexconnect_autodetect = True

          The Log file with High output shows

          21:32:02 DNSServer: -> DNS response from higher level
          21:32:02 DNSServer: DNS request received!
          21:32:02 DNSServer: Source: (‘192.168.1.100’, 61783)
          21:32:02 DNSServer: Domain: a5.mzstatic.com
          21:32:02 DNSServer: ***forward request
          21:32:02 DNSServer: -> DNS response from higher level
          21:32:02 DNSServer: DNS request received!
          21:32:02 DNSServer: Source: (‘192.168.1.100’, 56788)
          21:32:02 DNSServer: Domain: init.ess.apple.com
          21:32:02 DNSServer: ***forward request
          21:32:02 DNSServer: -> DNS response from higher level
          21:32:03 DNSServer: DNS request received!
          21:32:03 DNSServer: Source: (‘192.168.1.100’, 53079)
          21:32:03 DNSServer: Domain: a1.mzstatic.com
          21:32:03 DNSServer: ***forward request
          21:32:03 DNSServer: -> DNS response from higher level
          21:32:03 DNSServer: DNS request received!
          21:32:03 DNSServer: Source: (‘192.168.1.100’, 60435)
          21:32:03 DNSServer: Domain: a4.mzstatic.com
          21:32:03 DNSServer: ***forward request
          21:32:03 DNSServer: -> DNS response from higher level
          21:32:04 DNSServer: DNS request received!
          21:32:04 DNSServer: Source: (‘192.168.1.100’, 59487)
          21:32:04 DNSServer: Domain: trailers.apple.com
          21:32:04 DNSServer: ***intercept request
          21:32:04 DNSServer: -> DNS response: 192.168.1.106
          21:32:05 DNSServer: DNS request received!
          21:32:05 DNSServer: Source: (‘192.168.1.100’, 64685)
          21:32:05 DNSServer: Domain: SVRSecure-G3-aia.verisign.com
          21:32:05 DNSServer: ***forward request
          21:32:05 DNSServer: -> DNS response from higher level
          21:32:05 DNSServer: DNS request received!
          21:32:05 DNSServer: Source: (‘192.168.1.100’, 60293)
          21:32:05 DNSServer: Domain: init-p01st.push.apple.com
          21:32:05 DNSServer: ***forward request
          21:32:05 DNSServer: -> DNS response from higher level
          21:32:05 DNSServer: DNS request received!
          21:32:06 DNSServer: Source: (‘192.168.1.100’, 61990)
          21:32:06 DNSServer: Domain: 8-courier.push.apple.com
          21:32:06 DNSServer: ***forward request
          21:32:06 DNSServer: -> DNS response from higher level
          21:32:07 DNSServer: DNS request received!
          21:32:07 DNSServer: Source: (‘192.168.1.100’, 52235)
          21:32:07 DNSServer: Domain: play.itunes.apple.com
          21:32:07 DNSServer: ***forward request
          21:32:08 DNSServer: -> DNS response from higher level

          1. Hi Daniel,

            it must be something wrong with the certificate!

            – Deinstall the profile from the Apple TV.
            – Delete all PlexConnect files on your PC and reinstall it freshly.
            – Start creating the cert files again. Open the command prompt properly as mentioned in the post above: ‘Now click on ā€˜Open Command Window Hereā€˜ and the command prompt will open and start at the folder C:\Cert.’
            – Install the profile following the post ‘PlexConnect: Installling Certificates On Apple TV Without US’

            Cheers,
            Gee Are

  29. Just Updating…I made sure that the problem was not with certificate, so I entered on my Apple TV by Going to settings, general and then to profiles. There I found my Profile installed within AppleTV. The Profile identifier was trailers.apple.com (did it on IPhone Conf. Utility) and a Description so I could identify properly inside AppleTV because ATV shows only the name of the profile. Everything was correct. The certification inside Windows is tha same used by PlexConnect 0.3.1 and the same inside ATV.

    1. Hi Daniel,

      if the problem still persists then the certificate is wrongly created. Did you use the correct Python version 2.7.5 mentioned above? Do not use the x64-version!

      Cheers,
      Gee Are

  30. I have been unsuccessful. I noticed that as soon as I change the DNS on ATV to a manual static address different from the original automatically generated address, ATV is unable to communicate with netflix, the apple store etc.

    Does this mean that when Plex is configured these other sites are unavailable?

    When I assign the same ip address (as the ATV has by default 192.168.1.1) to the windows 7 machine then the windows machine can’t access the internet.

    Thank you for your help!

    1. Hi Zach,

      it should work. I can see YouTube, flickr, Apple Events,…

      The default address 192.168.1.1 is the IP address of your router. Therefore, it is normal that changing the IP address of your Windows PC leads to no internet access of your PC.

      Do you have the correct IP address of your PC given to your Apple TV? If your PC is connected to WLAN and LAN, it has got 2 different IP addresses. Choose the LAN IP address first and try again.

      Cheers,
      Gee Are

      1. Thank you Gee Are,

        Your reply was very helpful. I have Plex running on two ATV’s in different parts of my house. Works great.

        I was obviously having a conceptual problem. Now that I understand that the windows computer has to be turned on, plex media center and python have to to be functioning. I was getting hung up on changing the DNS address on Apple tv and noticing that immediately ATV was unable to communicate with the internet. I have seen this same question on other forums and it went unanswered, probably because it appears to be a very stupid question!

        I have 2 other issues on which I need some advice. If you have time I would love to get your input.

        1. Plex media center starts automatically when I start the windows computer. Is it advisable and is there a way to start plexconnect automatically? (Apologies if this is another basic question)
        2. I run PrivateInternet Access VPN and Vuze. Are there any modifications that should be made to allow Plexconnect to function when these are running?

        I read the instructions below on the Wiki about question 2 but when I edited the Settings.cfg file (maybe incorrectly) atv could no longer connect:

        Manual Override to PlexConnect’s IP
        In some environments PlexConnect is unable to figure out the local IP address of its host system. You can disable the auto detect feature by editing the following lines, specifying your local IP address.
        enable_plexconnect_autodetect = True
        ip_plexconnect = 0.0.0.0

        I changed the True to False and put in the same DNS address Instead of 0.0.0.0

        Thank you,

        Zach

        1. Hi Zach,

          thanks for your feedback! And there are never stupid questions!

          I will try to help you to solve your questions:

          1. If you are using Windows 8/8.1 check this: https://miapple.me/2013/08/15/adding-auto-start-items-to-windows-8-or-windows-8-1-start-screen/

          2. In this field I’m not very experienced, but I think the above mentioned ‘solution’ is not the right way. The problem is that Plex is using the same port as the VPN. But Plex can only run if it is using the port alone. You have to point Plex to an alternate Port. Port 110 seems to work. For further help go to https://forums.plex.tv/index.php/topic/64600-using-plex-server-with-a-vpn/

          An easy solution for the later problem could be Plex Cloud, a premium feature:
          https://plex.tv/subscription/about

          Please, let us all know about your further findings!

          Cheers,
          Gee Are

  31. Pingback: PlexConnect Running On Apple TV 6.0.1 And Mac OS X 10.9 Mavericks | miApple.me

  32. Hi Gee Are,

    Great help with the many people who have succeeded from your tutorial. I too have been stuck and doing this for many hours for a few days now. I downloaded OpenSSL (different versions) also with Python and uninstalled/reinstalled several times with several files. I suspect that I have to delete some old certificates. I don’ t know how to copy the details of the PlexConnect screen but i have an “intercept” statements on the screen. Can you tell me how to use the Iphone Config Utility to find any other certificates? I can’t seem to figure it out. Thanks a lot.

  33. Wow, you are fast Gee Are! Thanks so much for your help…I think you’ve aided many more people that haven’t bothered to post, but you are great! Actually, I went to: http://windows.microsoft.com/en-ca/windows-vista/view-or-manage-your-certificates since i run Windows 7 and found duplicate certificates. I decided to delete all and restart from the creation of the certificates again, then uninstalling the old certificate from ATV3 and reinstalling it manually using iPhone Config Utility.

    I used iCU because I wasn’t able to to it using wifi method (worked once then I screwed it up and never worked again). But the manual method worked great!

    After the certificate issue was dealt with, I’m good to go!!! Love it and Plex runs 1080p movies so smoothly so far! Happy New Year Gee and all the best to you and your family!

  34. Thanks for posting the steps to get plex running! I’ve had plex running in the (recent) past, but for some reason all of a sudden, when I load the trailers app on the ATV I jump immediately to the “trailers not available” screen.

    In hopes to fix this, I have tried all of your steps, so at least in that aspect we are so far on the same page. Now, it seems as though I’ve discovered AT&T (my ISP) has greedily taken over port 443, and I can’t avoid this. The only place I can seem to change this setting is in Settings.py, however when I re-launch PlexConnect.py I see the “Failed to connect to HTTPS on 192.168.1.6 port 443” etc etc error.

    Do you have any advice on how to change the port from 443 to something else my ISP has not taken from me? Thanks in advance!

    1. Hi Evan,

      I think you need to change your external port, not your internal one. Change the settings on your router. Check this for further instructions:
      https://plexapp.zendesk.com/hc/en-us/articles/200931138-Troubleshooting-myPlex-Server-connections

      … (Excerpt) Getting Help Setting Up a Port-forward
      If you’re having trouble understanding how to set up and configure a port-forward on your router, there are various resources available on the internet:
      Use your favorite Search Engine and search for “configure port forward [insert your router here]”…

      Let us know your findings!

      Cheers,
      Gee Are

      1. I don’t think that’s the issue to be honest. Plex was working fine previously, but I believe my ISP has changed their software, and as a result now uses port 443, hence the error when I start up plex:

        WebServer: Failed to connect to HTTPS on 192.168.1.6 port 443: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions.

        I’m pretty sure the issue is that Plex can’t use port 443, because it is already in use. Any thoughts on this? I’ve tried about everything I can possibly think of and am at my wits end!

        1. I should also note, I do see other normal traffic going through the plex server, such as netflix:

          18:51:01 DNSServer: -> DNS response from higher level
          18:51:02 DNSServer: DNS request received!
          18:51:02 DNSServer: Source: (‘192.168.1.10’, 60580)
          18:51:02 DNSServer: Domain: cdn-0.nflximg.com
          18:51:02 DNSServer: ***forward request

          192.168.1.10 of course being the AppleTV

        2. Hi Evan,

          this is exactly what I meant in my comment before: Your ISP changed something with the ports. Hence, the solutions should be found in the router settings.

          What kind of router do you have (model, firmware version)?

          Cheers,
          Gee Are

          1. Router: 2wire 3800HGV-B
            Software ver: 6.9.1.42-plus.tm
            Hardware ver: 2700-100531-006

            I did look into a few articles about port forwarding. I apologize for apparently missing your point here. The conclusion I came to (while looking at the router settings) was that since port 443 was already occupied, port forwarding wasn’t the culprit, and could not be used.

  35. Hi i followed every step and am positive i did it correctly but trailers still says its not available. Is there an easier way that this can be done? Please help.

    1. Hi Onur,

      in most cases it is always the certificate: Either it is not correctly created or not properly installed.

      For the first: Did you install the correct Python version mentioned in this post? And the created certificate must be on two places: In the folder c:\cert and in the above mentioned plexconnect folder.

      For the second: A easier way to install the certificate is mentioned in this post:
      https://miapple.me/2013/11/03/plexconnect-installling-certificates-on-apple-tv-without-usb/
      There you’ll find a description in a comment where to see the certificate on your Apple TV. Check that your certificate is indeed on your Apple TV.

      Cheers,
      Gee Are

  36. Hi! I did everything you explained but I have port 53 and 443 used by other programmes. IĀ“ve changed the conf to listen to port 54 and 444 but I get the “Trailers not available”.

    What can I do?

    1. Hi Mariano,

      If ‘Trailers is not available’, it is always a wrong certificate. Read my comment to Onur’s question to check and to get it resolved. I don’t think that the ports are the problem.

      Cheers,
      Gee Are

      1. You rock! It was a certificate problem. I deleted all my prevoius certificates from windows and reinstall it and everything works smooth! Thank you a lot!!

  37. i have win 7 32bit system
    which file i should download for Microsoft Visual C++ 2008 Redistributable Package

    cheers
    deep

  38. hi somebody help me

    ive done the following as described above but i get this error when i’m adding profile

    16:37:46 PlexConnect: ***
    16:37:46 PlexConnect: PlexConnect
    16:37:46 PlexConnect: Press CTRL-C to shut down.
    16:37:46 PlexConnect: ***
    16:37:46 PlexConnect: started: 16:37:46
    16:37:46 PlexConnect: Version: 0.3.1+
    16:37:46 PlexConnect: Python: 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500
    32 bit (Intel)]
    16:37:46 PlexConnect: Host OS: win32
    16:37:46 PlexConnect: IP_self: 192.168.0.5
    16:37:46 DNSServer: started: 16:37:46
    16:37:46 DNSServer: ***
    16:37:46 DNSServer: DNSServer: Serving DNS on 192.168.0.5 port 53.
    16:37:46 DNSServer: intercept: [‘trailers.apple.com’] => 192.168.0.5
    16:37:46 DNSServer: restrain: [‘mesu.apple.com’, ‘appldnld.apple.com’, ‘appldnld
    .apple.com.edgesuite.net’] => 127.0.0.1
    16:37:46 DNSServer: forward other to higher level DNS: 8.8.8.8
    16:37:46 DNSServer: ***
    16:37:46 WebServer: started: 16:37:46
    16:37:46 WebServer: ***
    16:37:46 WebServer: WebServer: Serving HTTP on 192.168.0.5 port 80.
    16:37:46 WebServer: ***
    16:37:46 WebServer: started: 16:37:46
    16:37:46 WebServer: ***
    16:37:46 WebServer: WebServer: Serving HTTPS on 192.168.0.5 port 443.
    16:37:46 WebServer: ***
    16:38:12 WebServer: serving .xml: /trailers.der
    —————————————-
    Exception happened during processing of request from (‘192.168.0.6’, 49321)
    Traceback (most recent call last):
    File “C:\Python27\lib\SocketServer.py”, line 295, in _handle_request_noblock
    self.process_request(request, client_address)
    File “C:\Python27\lib\SocketServer.py”, line 321, in process_request
    self.finish_request(request, client_address)
    File “C:\Python27\lib\SocketServer.py”, line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
    File “C:\Python27\lib\SocketServer.py”, line 649, in __init__
    self.handle()
    File “C:\Python27\lib\BaseHTTPServer.py”, line 340, in handle
    self.handle_one_request()
    File “C:\Python27\lib\BaseHTTPServer.py”, line 328, in handle_one_request
    method()
    File “C:\PlexConnect-master\WebServer.py”, line 215, in do_GET
    XML = XMLConverter.XML_PMS2aTV(PMSaddress, self.path + args, options)
    File “C:\PlexConnect-master\XMLConverter.py”, line 412, in XML_PMS2aTV
    PMS = PlexAPI.getXMLFromPMS(PMS_baseURL, path, options, authtoken=auth_token
    )
    File “C:\PlexConnect-master\PlexAPI.py”, line 350, in getXMLFromPMS
    response = urllib2.urlopen(request, timeout=20)
    File “C:\Python27\lib\urllib2.py”, line 127, in urlopen
    return _opener.open(url, data, timeout)
    File “C:\Python27\lib\urllib2.py”, line 396, in open
    protocol = req.get_type()
    File “C:\Python27\lib\urllib2.py”, line 258, in get_type
    raise ValueError, “unknown url type: %s” % self.__original
    ValueError: unknown url type: /trailers.der
    —————————————-
    can somebody plz help ive done uninstalled everything and re-install it back but i keep getting the same message

  39. hi can somebody help me ive tried my best to work plex connect on my apple tv but everytime i get the same out which is below

    16:37:46 PlexConnect: ***
    16:37:46 PlexConnect: PlexConnect
    16:37:46 PlexConnect: Press CTRL-C to shut down.
    16:37:46 PlexConnect: ***
    16:37:46 PlexConnect: started: 16:37:46
    16:37:46 PlexConnect: Version: 0.3.1+
    16:37:46 PlexConnect: Python: 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500
    32 bit (Intel)]
    16:37:46 PlexConnect: Host OS: win32
    16:37:46 PlexConnect: IP_self: 192.168.0.5
    16:37:46 DNSServer: started: 16:37:46
    16:37:46 DNSServer: ***
    16:37:46 DNSServer: DNSServer: Serving DNS on 192.168.0.5 port 53.
    16:37:46 DNSServer: intercept: [‘trailers.apple.com’] => 192.168.0.5
    16:37:46 DNSServer: restrain: [‘mesu.apple.com’, ‘appldnld.apple.com’, ‘appldnld
    .apple.com.edgesuite.net’] => 127.0.0.1
    16:37:46 DNSServer: forward other to higher level DNS: 8.8.8.8
    16:37:46 DNSServer: ***
    16:37:46 WebServer: started: 16:37:46
    16:37:46 WebServer: ***
    16:37:46 WebServer: WebServer: Serving HTTP on 192.168.0.5 port 80.
    16:37:46 WebServer: ***
    16:37:46 WebServer: started: 16:37:46
    16:37:46 WebServer: ***
    16:37:46 WebServer: WebServer: Serving HTTPS on 192.168.0.5 port 443.
    16:37:46 WebServer: ***
    16:38:12 WebServer: serving .xml: /trailers.der
    —————————————-
    Exception happened during processing of request from (‘192.168.0.6’, 49321)
    Traceback (most recent call last):
    File “C:\Python27\lib\SocketServer.py”, line 295, in _handle_request_noblock
    self.process_request(request, client_address)
    File “C:\Python27\lib\SocketServer.py”, line 321, in process_request
    self.finish_request(request, client_address)
    File “C:\Python27\lib\SocketServer.py”, line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
    File “C:\Python27\lib\SocketServer.py”, line 649, in __init__
    self.handle()
    File “C:\Python27\lib\BaseHTTPServer.py”, line 340, in handle
    self.handle_one_request()
    File “C:\Python27\lib\BaseHTTPServer.py”, line 328, in handle_one_request
    method()
    File “C:\PlexConnect-master\WebServer.py”, line 215, in do_GET
    XML = XMLConverter.XML_PMS2aTV(PMSaddress, self.path + args, options)
    File “C:\PlexConnect-master\XMLConverter.py”, line 412, in XML_PMS2aTV
    PMS = PlexAPI.getXMLFromPMS(PMS_baseURL, path, options, authtoken=auth_token
    )
    File “C:\PlexConnect-master\PlexAPI.py”, line 350, in getXMLFromPMS
    response = urllib2.urlopen(request, timeout=20)
    File “C:\Python27\lib\urllib2.py”, line 127, in urlopen
    return _opener.open(url, data, timeout)
    File “C:\Python27\lib\urllib2.py”, line 396, in open
    protocol = req.get_type()
    File “C:\Python27\lib\urllib2.py”, line 258, in get_type
    raise ValueError, “unknown url type: %s” % self.__original
    ValueError: unknown url type: /trailers.der
    —————————————-

    1. Hi Satwinder,

      your cert file is not correctly generated. The problem seems to be the python installation. Did you install the right one I mentioned in this post?
      First, repeat the generation of the cert dile. If this doesn’t work, deinstall python and reinstall it again using the right python version.

      Cheers,
      Gee Are

    1. Hi Satwinder,

      I don’t really know what you’re doing wrong, but your cert-file is not correct. The most common problem is a wrongly created cert-file. Repeat exactly the steps I describe in this post. If so, it must work.

      Cheers,
      Gee Are

  40. Hi, I’m struggling to get my plexconnect to work. I get the following error after completing all setup instructions,

    C:\windows\system32>C:\Users\Pete\Desktop\PlexConnect-master\PlexConnect.py
    00:28:11 PlexConnect: ***
    00:28:11 PlexConnect: PlexConnect
    00:28:11 PlexConnect: Press CTRL-C to shut down.
    00:28:11 PlexConnect: ***
    00:28:11 PlexConnect: started: 00:28:11
    00:28:11 PlexConnect: IP_self: 192.168.0.98
    00:28:12 DNSServer: started: 00:28:12
    00:28:12 DNSServer: ***
    00:28:12 DNSServer: DNSServer: Serving DNS on port 53.
    00:28:12 DNSServer: intercept: [‘trailers.apple.com’, ‘atv.plexconnect’] => 192.
    168.0.98
    00:28:12 DNSServer: restrain: [‘mesu.apple.com’, ‘appldnld.apple.com’, ‘appldnld
    .apple.com.edgesuite.net’] => 127.0.0.1
    00:28:12 DNSServer: forward other to higher level DNS: 118.127.33.48
    00:28:12 DNSServer: ***
    00:28:12 WebServer: started: 00:28:12
    00:28:12 WebServer: ***
    00:28:12 WebServer: WebServer: Serving HTTP on 0.0.0.0 port 80.
    00:28:12 WebServer: ***
    00:28:12 PlexGDM: ***
    00:28:12 PlexGDM: looking up Plex Media Server
    00:28:12 PlexGDM: ***
    00:28:12 WebServer: started: 00:28:12
    00:28:12 WebServer: Failed to connect to HTTPS on 0.0.0.0 port 443: [Errno 10013
    ] An attempt was made to access a socket in a way forbidden by its access permis
    sions
    00:28:13 PlexGDM: servers discovered: 2
    00:28:13 XMLConverter: PlexGDM – PMS: 192.168.0.18:32400
    00:28:13 XMLConverter: PlexGDM – PMS: 192.168.0.98:32400

    I have run plexconnect through cmd with administrator privelages but this doesn’t bind port 80 and 443. I should note that I’m running plex media server on my NAS and on my PC and I have changed the settings file DNS address to reflect that of my PC and ATV as I am an Australian using ATV3 for Netflix as well.

    Any ideas on where to from here, any help is greatly appreciated.

    Thanks

    1. Hi Peter,

      you should follow this post EXACTLY to get PlexConnect running. First, get it running on your PC. If PlexConnect is running on your PC go ahead and try it on your NAS.

      Your Problems:
      – The certificate is saved on the wrong place: C:\windows\system32>C:\Users\Pete\Desktop\PlexConnect-master\PlexConnect.py Save it on the two folders I mentioned in this post!
      – Check that your certificate profile is installed correctly on your Apple TV: Go to settings, general and then to profiles: There should be ā€˜trailers.apple.com’ as a profile.
      – Do not change the DNS address to get PlexConnect running on your PC!
      – For later, to get it running on your NAS, you maybe have to changed it on your account on plex.com, not in settings.py! For more information visit https://forums.plex.tv.

      Cheers,
      Gee Are

    1. Hi Rodrigo,

      in most cases this is not an issue of ports blocked by other applications but a signal that the cert file is either not correctly created or installed. Another user could fix it by checking and correcting the cert file path. You must use the folder path exactly as I described in this post.

      However, you can also check your router if there is any program already using these ports. Go to your router settings and look for something like “port forwarding”. There should be the information if any program is already using port 80 and 443.

      Cheers,
      Gee Are

  41. I had lots of trouble getting PlexConnect to be recognized on the Apple TV3 until I made a slight modification to the very end of the Windows 7-8-8-1 STEP 2.

    The step says to copy the new TRAILERS.PEM file into the ASSETS folder for PlexConnect. But copying TRAILERS.PEM wasn’t enough on my PC to connect with ATV3. So I also copied the files called-
    .RND
    TRAILERS.DER
    TRAILERS.KEY, and
    TRAILERS.PEM

    into the ASSETS folder for PlexConnect. And voila’ my Plex Media Server shows up.

    Maybe I just misread the steps? If not, this slight edit to step 2 may help others

    1. Hi Howard,

      thank you very much for your feedback! I updated this post on step 2 as recommended by you! I think this update is necessary because PlexConnect was updated some time ago.

      Cheers,
      Gee Are

  42. Hi, thanks for the great tutoria, i have a question, i am running on atv3 firmware 5.3 and have a certificate on plexconncet. My question is should i update firmware 5.3 to 6.2? is it better? Also i f i do update do i have to create again my certificate on plexconnect? Thanks in advance

  43. Hi. I’m trying to install Plex Connect for the first time on a Windows 7 PC. I’ve followed all instructions but menu in Trailers does not change to my personal library. Here are some obstacles I encountered during the process:
    1. Python 2.7.6 was no longer available, so I installed 2.7.8
    2. First installation did not work, so I created new cert with the cert.create-2.bat file

    Any suggestions?

    Gail

      1. No, I do not get an error message of any sort. When I open the Trailers app, it just defaults to the menu that was available before I made any changes.

        1. Hi Gail,

          just to clarify: You see the original Apple trailers menu? If so, PlexConnect isn’t installed in any way. If PlexConnect is installed you will get a failure message ‘Trailers unavailable’, at least.

          If PlexConnect isn’t installed, you should repeat the entire process, following exactly every step described.

          Cheers,
          Gee Are

  44. I would like to ask about the following, this is not my first time running the Plex on an aTV3, but for the last couple of months me and my brain had been struggle with this issue. None of both aTV I’ve are working with Plex.

    Did everything, DNS set as local machine running plex’s IP, cert created under C root as advise, software installed, everything. But after all this and even having the Trailers app inside aTV opening the Plex, none of the movies or files are watchable.

    Let me get this thru, aTV > Trailers > Plex… Movie covers are greyed, endless loading. Nothing further.

    Extract from PlexConnect.py

    19:01:52 PlexConnect: ***
    19:01:52 PlexConnect: PlexConnect
    19:01:52 PlexConnect: Press CTRL-C to shut down.
    19:01:52 PlexConnect: ***
    19:01:52 PlexConnect: started: 19:01:52
    19:01:52 PlexConnect: Version: 0.3.1+
    19:01:52 PlexConnect: Python: 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500
    32 bit (Intel)]
    19:01:52 PlexConnect: Host OS: win32
    19:01:52 PlexConnect: IP_self: 192.168.0.10
    19:01:52 DNSServer: started: 19:01:52
    19:01:52 DNSServer: ***
    19:01:52 DNSServer: DNSServer: Serving DNS on 192.168.0.10 port 53.
    19:01:52 DNSServer: intercept: [‘trailers.apple.com’] => 192.168.0.10
    19:01:52 DNSServer: restrain: [‘mesu.apple.com’, ‘appldnld.apple.com’, ‘appldnld
    .apple.com.edgesuite.net’] => 127.0.0.1
    19:01:52 DNSServer: forward other to higher level DNS: 8.8.8.8
    19:01:52 DNSServer: ***
    19:01:52 WebServer: started: 19:01:52
    19:01:52 WebServer: ***
    19:01:52 WebServer: WebServer: Serving HTTP on 192.168.0.10 port 80.
    19:01:52 WebServer: ***
    19:01:52 WebServer: started: 19:01:52
    19:01:52 WebServer: ***
    19:01:52 WebServer: WebServer: Serving HTTPS on 192.168.0.10 port 443.
    19:01:52 WebServer: ***
    19:01:54 DNSServer: DNS request received!
    19:01:55 DNSServer: Source: (‘192.168.0.11’, 57193)
    19:01:55 DNSServer: Domain: 14-courier.push.apple.com
    19:01:55 DNSServer: ***forward request
    19:01:55 DNSServer: -> DNS response from higher level

    Settings.py

    [PlexConnect]
    enable_plexgdm = True
    ip_pms = 192.168.0.10
    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 = 0.0.0.0
    hosttointercept = trailers.apple.com
    port_webserver = 80
    enable_webserver_ssl = True
    port_ssl = 443
    certfile = ./assets/certificates/trailers.pem
    loglevel = Normal
    logpath = .

    Please Gee Are… Tell me you know how to fix this!

    Thanks in advance. Sorry for the rough explanation

    1. Hi Bruno,

      first, check that you are using the latest Apple TV 6.2 software, Plex and PlexConnect.

      Then I think it is more a Problem of Plex Media Server than a problem of PlexConnect (your log file seems to be OK). I recommend to un-install Plex Media Server from your PC, reboot and install Plex Media Server again (Download: https://plex.tv/downloads).

      Cheers,
      Gee Are

      1. Yup, did that. But still no luck, I can see the Plex under Trailers shortcut on the aTV3 but yet movies are greyed out, in fact I did remove every Plex related thing inside the PC, AppData, ProgramData, & stuff.

        Let me past the current Python log for Plexconnect

        16:29:05 DNSServer: DNS request received!
        16:29:05 DNSServer: Source: (‘192.168.0.18’, 60980)
        16:29:05 DNSServer: Domain: s2.symcb.com
        16:29:05 DNSServer: ***forward request
        16:29:05 DNSServer: -> DNS response from higher level
        16:29:35 DNSServer: DNS request received!
        16:29:35 DNSServer: Source: (‘192.168.0.18’, 64572)
        16:29:35 DNSServer: Domain: init.itunes.apple.com
        16:29:35 DNSServer: ***forward request
        16:29:35 DNSServer: -> DNS response from higher level
        16:29:37 DNSServer: DNS request received!
        16:29:37 DNSServer: Source: (‘192.168.0.18’, 51769)
        16:29:37 DNSServer: Domain: init-p01st.push.apple.com
        16:29:37 DNSServer: ***forward request
        16:29:37 DNSServer: -> DNS response from higher level
        16:29:37 DNSServer: DNS request received!
        16:29:37 DNSServer: Source: (‘192.168.0.18’, 61022)
        16:29:37 DNSServer: Domain: http://www.apple.com
        16:29:37 DNSServer: ***forward request
        16:29:38 DNSServer: -> DNS response from higher level
        16:29:38 DNSServer: DNS request received!
        16:29:38 DNSServer: Source: (‘192.168.0.18’, 52466)
        16:29:38 DNSServer: Domain: xp.apple.com
        16:29:38 DNSServer: ***forward request
        16:29:39 DNSServer: -> DNS response from higher level
        16:29:39 DNSServer: DNS request received!
        16:29:39 DNSServer: Source: (‘192.168.0.18’, 49221)
        16:29:39 DNSServer: Domain: p10-buy.itunes.apple.com
        16:29:39 DNSServer: ***forward request
        16:29:39 DNSServer: -> DNS response from higher level
        16:29:39 DNSServer: DNS request received!
        16:29:39 DNSServer: Source: (‘192.168.0.18’, 50356)
        16:29:39 DNSServer: Domain: itunes.apple.com
        16:29:39 DNSServer: ***forward request
        16:29:39 DNSServer: -> DNS response from higher level
        16:29:39 DNSServer: DNS request received!
        16:29:39 DNSServer: Source: (‘192.168.0.18’, 53707)
        16:29:39 DNSServer: Domain: configuration.apple.com
        16:29:39 DNSServer: ***forward request
        16:29:39 DNSServer: -> DNS response from higher level
        16:29:39 DNSServer: DNS request received!
        16:29:39 DNSServer: Source: (‘192.168.0.18’, 53387)
        16:29:39 DNSServer: Domain: 10-courier.push.apple.com
        16:29:39 DNSServer: ***forward request
        16:29:39 DNSServer: -> DNS response from higher level
        16:29:39 DNSServer: DNS request received!
        16:29:39 DNSServer: Source: (‘192.168.0.18’, 61022)
        16:29:39 DNSServer: Domain: http://www.apple.com
        16:29:39 DNSServer: ***forward request
        16:29:39 DNSServer: -> DNS response from higher level
        16:29:39 DNSServer: DNS request received!
        16:29:39 DNSServer: Source: (‘192.168.0.18’, 52466)
        16:29:39 DNSServer: Domain: xp.apple.com
        16:29:39 DNSServer: ***forward request
        16:29:39 DNSServer: -> DNS response from higher level
        16:29:39 DNSServer: DNS request received!
        16:29:39 DNSServer: Source: (‘192.168.0.18’, 49221)
        16:29:39 DNSServer: Domain: p10-buy.itunes.apple.com
        16:29:39 DNSServer: ***forward request
        16:29:39 DNSServer: -> DNS response from higher level
        16:29:39 DNSServer: DNS request received!
        16:29:39 DNSServer: Source: (‘192.168.0.18’, 50356)
        16:29:39 DNSServer: Domain: itunes.apple.com
        16:29:39 DNSServer: ***forward request
        16:29:39 DNSServer: -> DNS response from higher level
        16:29:39 DNSServer: DNS request received!
        16:29:39 DNSServer: Source: (‘192.168.0.18’, 53707)
        16:29:39 DNSServer: Domain: configuration.apple.com
        16:29:39 DNSServer: ***forward request
        16:29:39 DNSServer: -> DNS response from higher level
        16:29:39 DNSServer: DNS request received!
        16:29:39 DNSServer: Source: (‘192.168.0.18’, 53387)
        16:29:39 DNSServer: Domain: 10-courier.push.apple.com
        16:29:39 DNSServer: ***forward request
        16:29:39 DNSServer: -> DNS response from higher level
        16:29:39 DNSServer: DNS request received!
        16:29:39 DNSServer: Source: (‘192.168.0.18’, 64020)
        16:29:39 DNSServer: Domain: pd-st.itunes.apple.com
        16:29:39 DNSServer: ***forward request
        16:29:39 DNSServer: -> DNS response from higher level
        16:29:39 DNSServer: Warning: DNS error (10054): Se ha forzado la interrupci?n de
        una conexi?n existente por el host remoto
        16:29:39 DNSServer: Warning: DNS error (10054): Se ha forzado la interrupci?n de
        una conexi?n existente por el host remoto
        16:29:39 DNSServer: Warning: DNS error (10054): Se ha forzado la interrupci?n de
        una conexi?n existente por el host remoto
        16:29:39 DNSServer: Warning: DNS error (10054): Se ha forzado la interrupci?n de
        una conexi?n existente por el host remoto
        16:29:39 DNSServer: Warning: DNS error (10054): Se ha forzado la interrupci?n de
        una conexi?n existente por el host remoto
        16:29:39 DNSServer: Warning: DNS error (10054): Se ha forzado la interrupci?n de
        una conexi?n existente por el host remoto
        16:30:03 DNSServer: DNS request received!
        16:30:03 DNSServer: Source: (‘192.168.0.11’, 59474)
        16:30:03 DNSServer: Domain: init.itunes.apple.com
        16:30:03 DNSServer: ***forward request
        16:30:04 DNSServer: -> DNS response from higher level
        16:30:06 DNSServer: DNS request received!
        16:30:06 DNSServer: Source: (‘192.168.0.11’, 49477)
        16:30:06 DNSServer: Domain: bookkeeper.itunes.apple.com
        16:30:06 DNSServer: ***forward request
        16:30:06 DNSServer: -> DNS response from higher level
        16:30:06 DNSServer: DNS request received!
        16:30:06 DNSServer: Source: (‘192.168.0.11’, 58034)
        16:30:06 DNSServer: Domain: xp.apple.com
        16:30:06 DNSServer: ***forward request
        16:30:06 DNSServer: -> DNS response from higher level
        16:30:07 DNSServer: DNS request received!
        16:30:07 DNSServer: Source: (‘192.168.0.11’, 52715)
        16:30:07 DNSServer: Domain: itunes.apple.com
        16:30:07 DNSServer: ***forward request
        16:30:07 DNSServer: -> DNS response from higher level
        16:30:07 DNSServer: DNS request received!
        16:30:07 DNSServer: Source: (‘192.168.0.11’, 57257)
        16:30:07 DNSServer: Domain: p10-buy.itunes.apple.com
        16:30:07 DNSServer: ***forward request
        16:30:07 DNSServer: -> DNS response from higher level
        16:30:07 DNSServer: DNS request received!
        16:30:07 DNSServer: Source: (‘192.168.0.11’, 62138)
        16:30:07 DNSServer: Domain: init-p01st.push.apple.com
        16:30:07 DNSServer: ***forward request
        16:30:07 DNSServer: -> DNS response from higher level
        16:30:07 DNSServer: DNS request received!
        16:30:07 DNSServer: Source: (‘192.168.0.11’, 49966)
        16:30:07 DNSServer: Domain: http://www.apple.com
        16:30:07 DNSServer: ***forward request
        16:30:07 DNSServer: -> DNS response from higher level
        16:30:07 DNSServer: DNS request received!
        16:30:07 DNSServer: Source: (‘192.168.0.11’, 54734)
        16:30:07 DNSServer: Domain: EVIntl-ocsp.verisign.com
        16:30:07 DNSServer: ***forward request
        16:30:07 DNSServer: -> DNS response from higher level
        16:30:07 DNSServer: DNS request received!
        16:30:07 DNSServer: Source: (‘192.168.0.11’, 60894)
        16:30:07 DNSServer: Domain: 48-courier.push.apple.com
        16:30:07 DNSServer: ***forward request
        16:30:08 DNSServer: -> DNS response from higher level
        16:30:08 DNSServer: DNS request received!
        16:30:08 DNSServer: Source: (‘192.168.0.11’, 57150)
        16:30:08 DNSServer: Domain: pd-st.itunes.apple.com
        16:30:08 DNSServer: ***forward request
        16:30:08 DNSServer: -> DNS response from higher level
        16:30:08 DNSServer: DNS request received!
        16:30:08 DNSServer: Source: (‘192.168.0.11’, 58086)
        16:30:08 DNSServer: Domain: upp.itunes.apple.com
        16:30:08 DNSServer: ***forward request
        16:30:08 DNSServer: -> DNS response from higher level
        16:30:08 DNSServer: DNS request received!
        16:30:08 DNSServer: Source: (‘192.168.0.11’, 62431)
        16:30:08 DNSServer: Domain: configuration.apple.com
        16:30:08 DNSServer: ***forward request
        16:30:09 DNSServer: -> DNS response from higher level
        16:30:12 DNSServer: DNS request received!
        16:30:12 DNSServer: Source: (‘192.168.0.11’, 55351)
        16:30:12 DNSServer: Domain: play.itunes.apple.com
        16:30:12 DNSServer: ***forward request
        16:30:12 DNSServer: -> DNS response from higher level
        16:30:19 DNSServer: DNS request received!
        16:30:19 DNSServer: Source: (‘192.168.0.18’, 54182)
        16:30:19 DNSServer: Domain: cl2.apple.com
        16:30:19 DNSServer: ***forward request
        16:30:20 DNSServer: -> DNS response from higher level
        16:30:20 DNSServer: DNS request received!
        16:30:20 DNSServer: Source: (‘192.168.0.18’, 58040)
        16:30:20 DNSServer: Domain: init.itunes.apple.com
        16:30:20 DNSServer: ***forward request
        16:30:20 DNSServer: -> DNS response from higher level
        16:30:20 DNSServer: DNS request received!
        16:30:20 DNSServer: Source: (‘192.168.0.18’, 56138)
        16:30:20 DNSServer: Domain: s2.symcb.com
        16:30:20 DNSServer: ***forward request
        16:30:21 DNSServer: -> DNS response from higher level
        16:30:21 DNSServer: DNS request received!
        16:30:21 DNSServer: Source: (‘192.168.0.18’, 50202)
        16:30:21 DNSServer: Domain: init.ess.apple.com
        16:30:21 DNSServer: ***forward request
        16:30:21 DNSServer: -> DNS response from higher level
        16:30:21 DNSServer: DNS request received!
        16:30:21 DNSServer: Source: (‘192.168.0.18’, 56138)
        16:30:21 DNSServer: Domain: s2.symcb.com
        16:30:21 DNSServer: ***forward request
        16:30:21 DNSServer: -> DNS response from higher level
        16:30:21 DNSServer: DNS request received!
        16:30:21 DNSServer: Source: (‘192.168.0.18’, 55865)
        16:30:21 DNSServer: Domain: SVRSecure-G3-aia.verisign.com
        16:30:21 DNSServer: ***forward request
        16:30:22 DNSServer: -> DNS response from higher level
        16:30:22 DNSServer: DNS request received!
        16:30:22 DNSServer: Source: (‘192.168.0.18’, 60099)
        16:30:22 DNSServer: Domain: gs-loc.apple.com
        16:30:22 DNSServer: ***forward request
        16:30:22 DNSServer: -> DNS response from higher level
        16:30:22 DNSServer: DNS request received!
        16:30:22 DNSServer: Source: (‘192.168.0.18’, 53420)
        16:30:22 DNSServer: Domain: xp.apple.com
        16:30:22 DNSServer: ***forward request
        16:30:22 DNSServer: -> DNS response from higher level
        16:30:22 DNSServer: DNS request received!
        16:30:22 DNSServer: Source: (‘192.168.0.18’, 60217)
        16:30:22 DNSServer: Domain: itunes.apple.com
        16:30:22 DNSServer: ***forward request
        16:30:22 DNSServer: -> DNS response from higher level
        16:30:22 DNSServer: DNS request received!
        16:30:22 DNSServer: Source: (‘192.168.0.18’, 50027)
        16:30:22 DNSServer: Domain: p10-buy.itunes.apple.com
        16:30:22 DNSServer: ***forward request
        16:30:23 DNSServer: -> DNS response from higher level
        16:30:23 DNSServer: DNS request received!
        16:30:23 DNSServer: Source: (‘192.168.0.18’, 49812)
        16:30:23 DNSServer: Domain: http://www.apple.com
        16:30:23 DNSServer: ***forward request
        16:30:23 DNSServer: -> DNS response from higher level
        16:30:23 DNSServer: DNS request received!
        16:30:23 DNSServer: Source: (‘192.168.0.18’, 58229)
        16:30:23 DNSServer: Domain: configuration.apple.com
        16:30:23 DNSServer: ***forward request
        16:30:23 DNSServer: -> DNS response from higher level
        16:30:24 DNSServer: DNS request received!
        16:30:24 DNSServer: Source: (‘192.168.0.18’, 61822)
        16:30:24 DNSServer: Domain: pd-st.itunes.apple.com
        16:30:24 DNSServer: ***forward request
        16:30:24 DNSServer: -> DNS response from higher level
        16:30:25 DNSServer: DNS request received!
        16:30:25 DNSServer: Source: (‘192.168.0.18’, 49992)
        16:30:25 DNSServer: Domain: init-p01st.push.apple.com
        16:30:25 DNSServer: ***forward request
        16:30:25 DNSServer: -> DNS response from higher level
        16:30:25 DNSServer: DNS request received!
        16:30:25 DNSServer: Source: (‘192.168.0.18’, 60732)
        16:30:25 DNSServer: Domain: 50-courier.push.apple.com
        16:30:25 DNSServer: ***forward request
        16:30:26 DNSServer: -> DNS response from higher level
        16:30:26 DNSServer: DNS request received!
        16:30:26 DNSServer: Source: (‘192.168.0.18’, 51929)
        16:30:26 DNSServer: Domain: se.itunes.apple.com
        16:30:26 DNSServer: ***forward request
        16:30:27 DNSServer: -> DNS response from higher level
        16:30:27 DNSServer: DNS request received!
        16:30:27 DNSServer: Source: (‘192.168.0.18’, 57180)
        16:30:27 DNSServer: Domain: a3.mzstatic.com
        16:30:27 DNSServer: ***forward request
        16:30:27 DNSServer: -> DNS response from higher level
        16:30:28 DNSServer: DNS request received!
        16:30:28 DNSServer: Source: (‘192.168.0.18’, 60726)
        16:30:28 DNSServer: Domain: a2.mzstatic.com
        16:30:28 DNSServer: ***forward request
        16:30:28 DNSServer: -> DNS response from higher level
        16:30:28 DNSServer: DNS request received!
        16:30:28 DNSServer: Source: (‘192.168.0.18’, 58189)
        16:30:28 DNSServer: Domain: a5.mzstatic.com
        16:30:28 DNSServer: ***forward request
        16:30:28 DNSServer: -> DNS response from higher level
        16:30:28 DNSServer: DNS request received!
        16:30:28 DNSServer: Source: (‘192.168.0.18’, 57420)
        16:30:28 DNSServer: Domain: a4.mzstatic.com
        16:30:28 DNSServer: ***forward request
        16:30:28 DNSServer: -> DNS response from higher level
        16:30:32 DNSServer: DNS request received!
        16:30:32 DNSServer: Source: (‘192.168.0.18’, 56493)
        16:30:32 DNSServer: Domain: play.itunes.apple.com
        16:30:32 DNSServer: ***forward request
        16:30:32 DNSServer: -> DNS response from higher level
        16:30:32 DNSServer: DNS request received!
        16:30:32 DNSServer: Source: (‘192.168.0.18’, 53630)
        16:30:32 DNSServer: Domain: trailers.apple.com
        16:30:32 DNSServer: ***intercept request
        16:30:32 DNSServer: -> DNS response: 192.168.0.10
        16:30:33 WebServer: serving /js/application.js
        16:30:33 WebServer: serving .xml: /
        16:30:33 ATVSettings: add section F6LMGCPEFF54
        16:30:33 PlexAPI: ***
        16:30:33 PlexAPI: looking up Plex Media Server
        16:30:33 PlexAPI: ***
        16:30:34 PlexAPI: GDM: Servers discovered: 1
        16:30:34 PlexAPI: Servers (local+MyPlex): 1
        16:30:34 WebServer: serving .xml: /PlexConnect.xml
        16:30:34 WebServer: serving /js/utils.js
        16:30:34 WebServer: serving .xml: /library/sections
        16:30:34 WebServer: serving /js/utils.js
        16:30:34 WebServer: serving /js/sectionHoldSelect.js
        16:30:35 WebServer: serving .xml: /library/sections/1/recentlyAdded
        16:30:40 DNSServer: DNS request received!
        16:30:40 DNSServer: Source: (‘192.168.0.18’, 61415)
        16:30:40 DNSServer: Domain: e2842.e9.akamaiedge.net
        16:30:40 DNSServer: ***forward request
        16:30:40 DNSServer: -> DNS response from higher level
        16:30:51 WebServer: serving .xml: /channels/all
        16:30:51 WebServer: serving /js/utils.js
        16:30:52 WebServer: serving .xml: /library/sections
        16:30:52 WebServer: serving /js/utils.js
        16:30:53 WebServer: serving /js/sectionHoldSelect.js
        16:30:53 WebServer: serving .xml: /library/sections/1/recentlyAdded
        16:30:54 WebServer: serving .xml: /library/sections/1
        16:30:54 WebServer: serving /js/utils.js
        16:30:54 WebServer: serving /js/updateXML.js
        16:30:54 WebServer: serving .xml: /library/sections/1
        16:30:55 WebServer: serving /js/utils.js
        16:30:55 WebServer: serving /js/updateXML.js
        16:30:55 WebServer: serving /js/settings.js

        Sorry the long-long-long post, just want to get rid of this.

        Thanks in advance!

        1. Hi Bruno,

          still looks like a Plex Media Server issue. My guess is that you have a corrupted Plex Media Server or some weird settings that is hard to diagnose for me.
          To solve this issue, you should ask the PlexConnect Pros on the Plex Forum. Please, post your issue here: https://forums.plex.tv/index.php/forum/136-appletv-plexconnect/

          I’m absolutely sure that these PlexConnect geek guys will help you and will solve this complicated problem! šŸ™‚

          Would be great, if you will post the solution here, too. Thanks!

          Cheers,
          Gee Are

  45. Hello, thank you for all your help, this was extremely simple to follow!
    I went through all the steps, and it worked first time, all my moves, TV shows and everything came through the Apple TV! I was ecstatic! Unfortunately, it was short lived, as once I tried to access this again after some time, the message comes up “Trailers is unavailable. Try again later”…furthermore, unless I change the DNS address back to automatic, I cannot access anything in the Apple TV?
    I had a look in the comments to see if someone else already raised this, but, it doesn’t seem like this has happened to anyone.
    I noticed that you suggested some people try re-doing again, which I just, I had the exact same problem, worked once I completed it, but,once the ATV goes to sleep, and I try to get back into it, no luck.

    Are you able to assist? Getting my media up from my PC in the study on my TV in the living room in that nice user friendly format is something I am very keen to get up and going.

    Thank you once again!

    1. Hi davemikhael,

      the DNS address has to be set to manual. Use the IP address of your PC on which Plex Media Server is running. Plex Media Server is needed to be on permanently.
      Yes, it is true that you have to switch the DNS address back to automatic to use all Apple TV features, especially software update, iCloud,…
      Check the IP address again or switch it back to the PC’s one. Then PlexConnect should work again without repeating the installation.

      Cheers,
      Gee Are

  46. I have followed your instructions, did not get any error messages.
    Im on a win7 pc.

    But when I go to trailers, it starts accessing trailers, and then after a minute or 2, it say: Trailers is unavailable. Try again later

    Any suggestions?

    1. Hi Leif-Harald,

      this message is typical for a not correctly created or installed certificate file or for a not running Plex Media Server on your Windows 7 PC.
      First, check that Plex Media Server is running on your PC while trying to access Plex on your Apple TV.
      Second, if this doesn’t help, create again the cert file and install the cert file / profile following this instruction: https://miapple.me/plexconnect-installling-certificates-on-apple-tv-without-usb/

      Cheers,
      Gee Are

  47. Hello,

    (I’m not sure if my last comments from a few days came through as they were not posted on the site)
    I had followed the instructions you laid out with the greatest of ease, thanks for taking the time to post this up, it was a great help.
    Once I followed these instructions, I went into the Trailers app on the ATV3, and it worked without a problem. Once the device is off, and I tried to get back into it later, it tells me that it is unavailable, on top of that, I cannot access anything on the ATV, it is like there is no internet connection and the only way to get the basic ATV functions working on it is to change the DNS address back to what it was.
    As per some of the other suggestions you left for other users, I tried to repeat these steps, with the exact same thing happening again.
    Your help would be greatly appreciated as I do not know what I have done wrong here.

    Thank you very much.

    1. Sorry mate, just saw the reply to my original post – yes, I set the ATV to manual and entered in the PC’s IP address.
      I did not turn the PC off, but, maybe it was in sleep mode, does this effect it? Is that why it worked initially but not after I tried to access it at a later date?

      1. Hi davemikhael,

        if you PC is in sleep mode, the Plex Media Server is off, too! The PC has to be running all the time. Change the settings: Switch sleep mode off and hard disk always on.

        BTW, you can automatically follow by email these comments by activating “Follow Comment”…

        Cheers,
        Gee Are

  48. Hi, Great tutorial. Got everything working fine, profile is installed etc except when I go to the trailers app on my ATV 3 it opens the normal trailers page, even though I have Plexconnect running. Any ideas?

  49. If i want to use iMoves instead of “trailers” on Apple TV, what changes in the steps that you have documented above?

    1. Hi Usman,

      to use iMovie Theater app instead of Trailers app, do the following:

      Get the latest version of PlexConnect from GitHub and run it, it will add the “hosttointercept” config parameter. You’ll need to add another cert onto your ATV. It can be installed alongside the one you’ve already installed in your profile

      Change the “cert.create.bat” to:

      C:\OpenSSL-Win32\bin\openssl.exe req -new -nodes -newkey rsa:2048 -out C:.\imovie.pem -keyout C:.\imovie.key -x509 -days 7300 -subj “/C=US/CN=www.icloud.com” -config C:\OpenSSL-Win32\bin\openssl.cfg

      C:\OpenSSL-Win32\bin\openssl.exe x509 -in C:.\trailers.pem -outform der -out C:.\imovie.der

      type C:.\imovie.key >> C:.\imovie.pem

      imovie.der

      Then, run the “cert.create.bat” as described in this post.

      Next, edit your “Settings.cfg” file to hosttointercept = http://www.icloud.com.

      Finally, add the new certificate as a new profile to your ATV as described in this post, restart your PC and ATV.

      Cheers,
      Gee Are

      1. Hi Gee,
        Thanks – i will try it out today and let you know my findings. Hopefully it should go smoothly, but if not, will come back to you asking for more help šŸ™‚

        appreciate your help…
        –Usman

        1. Update:
          first things first:

          C:\OpenSSL-Win32\bin\openssl.exe req -new -nodes -newkey rsa:2048 -out C:.\imovie.pem -keyout C:.\imovie.key -x509 -days 7300 -subj ā€œ/C=US/CN=www.icloud.comā€ -config C:\OpenSSL-Win32\bin\openssl.cfg

          C:\OpenSSL-Win32\bin\openssl.exe x509 -in C:.\trailers.pem -outform der -out C:.\imovie.der

          type C:.\imovie.key >> C:.\imovie.pem

          imovie.der

          *****
          in the above, the command you have recommended:
          C:\OpenSSL-Win32\bin\openssl.exe x509 -in C:.\trailers.pem -outform der -out C:.\imovie.der

          I am assuming is a typo, where it says C:.\trailers.pem? this should be C:.\imovie.pem… do I have that correct?

          Assuming that it was a typo, I replaced trailers with iMovie.

          I moved the certs to the C:\PlexConnect\assets\certificates folder.

          When I try to push the certificate to my Apple TV (with the following command http:///imove.der, I am getting the following error on the Apple TV:

          Unable to add profile
          An error occurred while adding the profile [4001]. Check the URL and try again.

          Also, when I run the PlexConnect on the machine where I have my PMS, I am getting following it shows it cannot access the 443 port (even though it is open and allows for incoming connections.
          Would that have any issues?

          Any thoughts on what the issue could be, that is preventing the certs from being added to the Apple TV?
          –Usman

          1. Hi Usman,

            first, you’re right it is a typo: It should be iMovie… šŸ™‚

            Second, you have to point to http://your-computer-IP-address/imovie.der. If you try to install the cert file without USB and you get still stuck, check the installation via USB and iPhone Configuration utility. It seems that there are general issues without USB. I got similar problems at the moment.

            Third, shut down PlexConnect and PMS and reboot your PC. This should solve the 443 issue. After that, start PMS and PlexConnect again.

            BTW, I’m writing a detailed step-by-step tutorial about this right now. I hope I can finish it within the next days (maybe on Monday). šŸ™‚

            Cheers,
            Gee Are

            1. Hi Gee,
              Thanks – I will give the cert installation via USB a try just now.

              I tried shutting down the PMS, PlexConnect and Server and rebooting it, but I am still getting the same issues. Cannot seem to figure out why this is happening.

              Will report back how the cert installation goes, with the USB option.

              Will be looking forward to the detailed tutorial (do try to include as many screenshots as possible. I have found that screenshots are very helpful šŸ™‚
              –Usman

              1. don’t know what the problem is, but for some reason my notebook does not recognize the Apple TV when I connect to it via USB….
                any suggestions?

                1. Hi Usman,

                  check another micro USB cable. I got 5 micro USB cables and only one (a HTC) is working. don’t know why, but there seems to be quality differences in the USB cables.

                  Cheers,
                  Gee Are

              2. Hi Usmann,

                first, check your original set up with the trailers app. This should work before you start to set up any alternative. Which ATV software version do you use? And which ATV model do you have? Is it jailbroken or not?

                If you got problems with the iMovie certificate, check this alternative:
                C:\OpenSSL-Win32\bin\openssl.exe req -new -nodes -newkey rsa:2048 -out C:.\trailers.pem -keyout C:.\trailers.key -x509 -days 7300 -subj “/C=US/CN=www.icloud.com” -config C:\OpenSSL-Win32\bin\openssl.cfg

                C:\OpenSSL-Win32\bin\openssl.exe x509 -in C:.\trailers.pem -outform der -out C:.\trailers.der

                type C:.\trailers.key >> C:.\trailers.pem

                trailers.der

                Only the “www.cloud.com” is changed. Maybe there could be a problem of PlexConnect to recognize other names as “trailers.xyz”.

                My tutorial will contain a lot of screenshots. šŸ™‚
                Right now, I’m also struggling with some issues. I don’t know, maybe something is changed… We will see.

                I’ll be back…

                Cheers,
                Gee Are

                1. Hi Gee,
                  Thanks for the suggestions. I will try using a different USB cable and see if I am able to get thru recognizing the device on my notebook.

                  I do not want to mess with the current certificates on my Apple TV, because I have Plexify running perfectly fine. That’s why I wanted to go the iMovie route.

                  I don’t want to get into a position where the PlexConnect does work and my Plexify installation also gets messed up šŸ™‚
                  if you know what I mean.

                  Having PlexConnect run via a Windows notebook, will be more awesome, as I will be able to free up my mac air.

                  I am running Apple TV 3, with fw 6.2 and it is NOT jail broken. Does that change any of the steps?
                  –Usman

                    1. Hi Gee,
                      Thanks for the suggestion. But the whole idea is to free up my mac book šŸ™‚
                      I want to use OpenConnect on a Windows platform, so that I am free to take my apple notebook around with me, right now, since I have Plexify running on it, and Plex is heavily used at my home… I have to leave my mac at home šŸ™

                      so, seeing the option of running OpenConnect on a windows box is making my mouth watery, since I can take back my mac air for my own use šŸ™‚

                      thoughts?
                      –Usman

                      1. Hi Gee,
                        Many thanks for the steps.

                        Any thoughts on how I can free up the 443 port? I have not been able to figure out which app is using the 443 port? when I check for open ports, I can see that 443 is open, but everytime I run PlexConnect, I get the same error:
                        “Failed to connect to HTTPS on 10.x.x.x port 443: [Errno 10013]. An attempt was made to access a socket in a way forbidden by its access permissions”

                        very baffling… any suggestions/thoughts here?

                        –Usman

                        1. Hi Usman,

                          which app are you trying to hijack? Does it work with trailers app? Have you already tested WSJ? I got some problems with iMovie, WSJ is running seamlessly…

                          Cheers,
                          Gee Are

                        2. Have not tried with WSJ – what changes in the settings would I need to do if I wanted to hijack WSJ? if you can give me the changes, I can give that a shot right now.

                          1. Hi Gee,
                            Awesome – thanks. Sorry, didn’t notice it before.
                            Let me give that a shot and will report back with any new issues I run into.

                            Many thanks for all your suggestions and advice… and not to mention the detailed steps šŸ™‚
                            –Usman

                          2. Hi Gee,
                            So I was finally able to successfully install the certificate on the Apple TV.

                            I followed the WSJ certificate. Now the issue I am seeing is that the WSJ on the Apple TV is returning trailers not found error.

                            I was also able to isolate the 443 port, turned out it was Remote Access controlling this port, so I disabled it.

                            Any thoughts, why I am seeing this issue?

                            1. Hi Usman,

                              please, check the following:
                              – Check that the cert is installed correctly. On your ATV go to ‘General’, scroll down to ‘Send datat to Apple’ and press the Play-button of your ATV remote. Now you should see your profile/certificate.
                              – Stop and Restart Plex and PlexConnect.
                              – Reboot your Apple TV (before rebooting switch back to automatic DNS, then switch back to your Plex Media Server DNS

                              If this all doesn’t help then most properly the cert file was not either generated properly or installed. Then you should repeat the entire process.

                              Cheers,
                              Gee Are

              3. Hi Gee,

                Just to be clear, the “send data to apple” should be showing “no”. Right? Because that is where it is set to right now as well.
                –Usman

          2. hello, come with me following error. can I get help?
            05:53:15 PlexConnect: ***
            05:53:15 PlexConnect: PlexConnect
            05:53:15 PlexConnect: Press CTRL-C to shut down.
            05:53:15 PlexConnect: ***
            05:53:15 PlexConnect: started: 05:53:15
            05:53:15 PlexConnect: Version: 0.4+
            05:53:15 PlexConnect: Python: 2.7.6 (default, November 10, 2013, 19:24:24) [MSC v.1500
            Ā  64 bit (AMD64)]
            05:53:15 PlexConnect: Host OS: win32
            05:53:15 PlexConnect: IP_self: 192.168.192.12
            05:53:15 DNSServer: started: 05:53:15
            05:53:15 DNSServer: ***
            05:53:15 DNS server: DNS server: DNS Serving on 192.168.192.12 port 53rd
            05:53:15 DNSServer: intercept: [‘trailers.apple.com’] => 192.168.192.12
            05:53:15 DNSServer: restrain: [‘mesu.apple.com’, ‘appldnld.apple.com’, ‘appldnld
            .apple.com.edgesuite.net ‘] => 127.0.0.1
            05:53:15 DNSServer: forward to other higher level DNS: 8.8.8.8
            05:53:15 DNSServer: ***
            05:53:15 WebServer: started: 05:53:15
            05:53:15 webserver: Failed to connect to HTTP port 80 on 192.168.192.12: [Errno
            10013] Access to a socket was due to the access rights of the socket
            unzulƵssig
            05:53:15 WebServer: started: 05:53:15
            05:53:15 WebServer: ***
            05:53:15 WebServer: WebServer: Serving HTTPS on 192.168.192.12 port 443rd
            05:53:15 WebServer: ***

            1. Hi Pat,

              the port 80 is occupied by another application. First, reboot your computer and try again. If this doesn’t help, you must look for the application which is using port 80 (FTP client?) and then deactivate it.

              Cheers,
              Gee Are

          3. Pingback: PlexConnect on Windows: How To Hijack iMovie Theatre Or WSJ Instead Of Trailers App - miApple.me

          4. Pingback: jailbreak Apple TV 3 con PlexConnect (utenti windows) - AppleTvItalia

          5. Thanks for the detailed instruction… everything went very smooth, no error or anything, however ATV3 says ā€œtrailers not available, try laterā€?

            32 bit (Intel)]
            19:24:40 PlexConnect: Host OS: win32
            19:24:40 PlexConnect: IP_self: 192.168.1.81
            19:24:40 DNSServer: started: 19:24:40
            19:24:40 DNSServer: ***
            19:24:40 DNSServer: DNSServer: Serving DNS on 192.168.1.81 port 53.
            19:24:40 DNSServer: intercept: [‘trailers.apple.com’] => 192.168.1.81
            19:24:40 DNSServer: restrain: [‘mesu.apple.com’, ‘appldnld.apple.com’, ‘appldnld
            .apple.com.edgesuite.net’] => 127.0.0.1
            19:24:40 DNSServer: forward other to higher level DNS: 8.8.8.8
            19:24:40 DNSServer: ***
            19:24:41 WebServer: started: 19:24:41
            19:24:41 WebServer: ***
            19:24:41 WebServer: WebServer: Serving HTTP on 192.168.1.81 port 80.
            19:24:41 WebServer: ***
            19:24:41 WebServer: started: 19:24:41
            19:24:41 WebServer: ***
            19:24:41 WebServer: WebServer: Serving HTTPS on 192.168.1.81 port 443.
            19:24:41 WebServer: ***
            19:25:00 DNSServer: DNS request received!
            19:25:00 DNSServer: Source: (‘192.168.1.6’, 64063)
            19:25:00 DNSServer: Domain: trailers.apple.com
            19:25:00 DNSServer: ***intercept request
            19:25:00 DNSServer: -> DNS response: 192.168.1.81

            1. Hi Nuwanda,

              it’s always the certificate (“golden rule” for PlexConnect issues). Check that your certificate is installed on your Apple TV (Go to Settings on your ATV). If not, install it again, if it is installed, delete the profile and install it again. if this does not help, the certificate file is defect. Generate it again and install it via USB method.

              Cheers,
              Gee Are

          6. Hi Are,
            i’ve follow the guide step to step…I can able to create certificate without errors, I copy on certificates folder, I run PlexConnect.py, I change ATV DNS but when I try to add profile I’ve back error 4001 from ATV. The certificate is correctly installed on Windows Home Server 2011. How can I solve the problem?
            Thank You

            1. Hi Erik,

              If you cannot correctly add the profile to your ATV, then the cert file is mostly not correctly generated. Generate it again and check your Python and OpenSSL versions!

              Cheers,
              Gee Are

          7. In have tried all of the above but when I run the create cert, I only find there are five files but only one called trailer not trailers.der or trailers.cer depending which file I use.

            1. Hi Ian,

              the certificate file must be named either trailers.der or trailers.cer depending on the method you had chosen. If the certificate file is not named in that way, there must be a mistake in the creating of the cert file. Repeat the entire process and follow every single step EXACTLY as I described it in this post.

              Cheers,
              Gee Are

          8. Hi Gee Are,

            I enjoy reading your posts! Very informative. I just read “Plex, PlexConnect And OpenPlex Running On Mac OS X 10.10.2 Yosemite Beta 4” and it got me thinking.

            I have been using Plex on Apple tv 3 for about a year. I have Plexmedia server (v0.9.11.1) running on Windows 7. I was wondering if I should update my plexconnect(v0.3). And rather than reinstalling everything couldn’t the downloaded folder just be placed in the same location (C:/Plexconnect) and the old certificates placed in the new C:\PlexConnect\assets\certificates folder? I haven’t tried this yet because everything works right now but I would like to use the new features.

            Have I overlooked anything? Your instructions are very clear; perhaps you could do a post on updating Plexconnect on Apple TV.

            Thanks for your advice,

            Iggy

            1. Hi Igor,

              thanks for posting. It should work as you described. Save your old cert files on another location. Then update plexconnect. After that copy the cert files back. I’ll check to post on updating PlexConnect on Apple TV….

              Cheers,
              Gee Are

              1. Hi Gee Are,

                What we discussed above worked perfectly. Now I have a new puzzle. My Windows 7 computer is quite old and slow so I built a new more powerful windows 7 machine for the express purpose of being the Plex server. I didn’t shut down my old computer yet and installed Plex media server, plexconnect and Python on the new machine. I copied the certificates from my old machine and placed them in the certificates folder on the new machine. So now I have 2 plex servers running on my home network. In order to connect to the new server I changed the DNS address in the ATV settings to the new machine’s static IP address. I had assumed that I could go back and forth between servers by manually changing the DNS address on the ATV.

                For some reason the ATV is not connecting with the Plex media server on the new machine. I can go to Netflix, Flickr etc and the Plexconnect program is forwarding that. I suspect the certificates. I don’t understand the workings of these. Are they specific to each computer? Should I generate them on my new machine? Will I have to reconnect the ATV and then install the newly generated certificate? If I do this will this mean that the old machine will no longer be accessible to the ATV?

                Thank you for your interesting website!

                Igor

                  1. Yes I did copy the three cert files (.key;.pem; trailers certificate) to both the root directory C:/ and the Assets/Certificates. So it is intercepting the ATV requests but can’t connect to the Plex media server. This is what the error message in python is “GDM: No Servers discovered”

                    1. Hi Igor,

                      please, check the following options:
                      – Is Plex Media Server properly installed and running???
                      – Is the cert file properly installed on your PC (double-click trailers.der for installing the cert file)?
                      – Check the IP address of your PC and Plex Media Server
                      – Restart your PC and your Apple TV and check the IP address again.

                      Cheers,
                      Gee Are

          9. Gee Are:
            Sorry to bother you, but I’m at my wit’s end. I’ve done everything in the instructions, but the profile will not load to the atv.
            I have the atv3, and Plex is on a Windows 7 Pro computer. I have added the following programs to the windows firewall: python, plexconnect.py, plex media server, itunes.

            Here’s what I have done:

            Installed Python 2.7.6
            Installed Win32 OpenSSL Win32 v1.0.2a
            Have Plex Media Server 9.12.1
            Used your link to download PlexConnect from Github. Unzipped to c:\Plexconnect. [Note: it has a Plexconnect Master folder that contains all of the files. I moved everything to c:\Plexconnect]
            Created c:\cert, ran .bat file, installed certificate, copied certificates to assets\certificates
            Started plexconnect.py, changed atv DNS to IP address of of ipself.
            Used the following for address of profile: http://192.168.1.5/trailers.cer

            Result: atv was unable to add profile. I must be doing something wrong, but I have no idea what. Any help would be appreciated.

            1. Hi Ron,

              all you have done looks OK. did you also install the Cert file on windows? And did you copy the cert file to the root C:/?

              Please, read my post carefully and you EXACTLY everything as described. Try to repeat the entire process step by step.

              Cheers,
              Gee Are

              1. I’m not sure what you mean, but the files created by cert.create.bat are in c:\cert and also in c:\plexconnect\assets\certificates.
                I would try using the iphone configuration utility, but the link only goes to a mac file, not windows. Is there a way to use the configuration utility on windows?

                1. Hi Ron,

                  use instead of the iPhone configuration Utility (no longer available!) this method: https://miapple.me/2013/11/03/plexconnect-installling-certificates-on-apple-tv-without-usb/.

                  The latest PlexConnect tutorial is here: https://miapple.me/plexconnect-windows-hijack-imovie-theatre-wsj-instead-trailers-app/
                  Especially, have a look at step 2: “Copy all iMovie and/or all WSJ app certificate files to default directory of your Windows PC (C:/).”

                  Cheers,
                  Gee Are

          10. Pingback: How To Install PlexConnect On Windows 10 - miApple.me

          11. Hi,

            I had this setup in Win7 and it worked perfectly. Upgraded to Win10 and now i get the following error when I try to run PlexConnect
            09:24:26 PlexConnect: started: 09:24:26
            09:24:26 PlexConnect: Version: 0.5-dev-101215
            09:24:26 PlexConnect: Python: 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)]
            09:24:26 PlexConnect: Host OS: win32
            09:24:26 PlexConnect: PILBackgrounds: Is PIL installed? False
            09:24:26 PlexConnect: IP_self: 10.0.0.3
            09:24:26 DNSServer: started: 09:24:26
            09:24:26 DNSServer: ***
            09:24:26 DNSServer: DNSServer: Serving DNS on 10.0.0.3 port 53.
            09:24:26 DNSServer: ***
            09:24:26 WebServer: started: 09:24:26
            09:24:26 WebServer: Failed to connect to HTTP on 10.0.0.3 port 80: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions
            09:24:26 PlexConnect: WebServer not alive. Shutting down.
            09:24:26 PlexConnect: Shutting down.
            09:24:31 DNSServer: Shutting down.
            09:24:31 PlexConnect: shutdown
            09:24:31 PlexConnect: shutdown

            No settings on my router or isp has chnaged. There must be an account access/ permission problem in Win10.

            Do you know how i can fix this?

              1. Install Certificate:
                Is the iPhone Configuration Utility no longer available for windows? I have tried to download several times but keep getting a message stating “iPhone Configuration Utility failed to locate Apple Mobile Device Support reinstall”

                I have also tried to do it without a USB but every time I go into “Network and Sharing” and click my network then go into Internet Protocol Version 4 (TCP/Ipv4) and enter my information as the directions state my computer freezes for several minutes then states looking for a solution.

                I would prefer to do it with a USB cable but if not possible anymore due to iPhone Configuration Utility then any help on why my computer freezes when I try to setup the IP address and DNS.

                1. Hi Mike,

                  I’m sorry! The iPhone Configuration Utility for Windows isn’t available anymore. I updated this post. You have to do it via USB or via mac.

                  Cheers,
                  Gee Are

              2. I took the trailers security certificate that I generated on my windows machine, placed on a thumb drive, place the thumb drive on my other computer, which is a Mac and installed the certificate on my apple TV3 via a micro USB and Apple Configurator 2.

                I still can not get the trailers app to recognize my Plex account. I have followed all directions. When I run the PlexConnect.py file here is the output below. The server should be doing something once I open up the trailers app but does not do anything.

                Note I changed my DNS to 192.168.1.12 on my apple TV

                21:57:49 PlexConnect: ***
                21:57:49 PlexConnect: PlexConnect
                21:57:49 PlexConnect: Press CTRL-C to shut down.
                21:57:49 PlexConnect: ***
                21:57:49 PlexConnect: started: 21:57:49
                21:57:49 PlexConnect: Version: 0.5-dev-101215
                21:57:49 PlexConnect: Python: 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500
                64 bit (AMD64)]
                21:57:49 PlexConnect: Host OS: win32
                21:57:49 PlexConnect: PILBackgrounds: Is PIL installed? False
                21:57:49 PlexConnect: IP_self: 192.168.1.12
                21:57:50 DNSServer: started: 21:57:50
                21:57:50 DNSServer: ***
                21:57:50 DNSServer: DNSServer: Serving DNS on 192.168.1.12 port 53.
                21:57:50 DNSServer: intercept: [‘trailers.apple.com’] => 192.168.1.12
                21:57:50 DNSServer: restrain: [‘mesu.apple.com’, ‘appldnld.apple.com’, ‘appldnld
                .apple.com.edgesuite.net’] => 127.0.0.1
                21:57:50 DNSServer: forward other to higher level DNS: 8.8.8.8
                21:57:50 DNSServer: ***
                21:57:50 WebServer: started: 21:57:50
                21:57:50 WebServer: ***
                21:57:50 WebServer: WebServer: Serving HTTP on 192.168.1.12 port 80.
                21:57:50 WebServer: ***
                21:57:50 WebServer: started: 21:57:50
                21:57:50 WebServer: ***
                21:57:50 WebServer: WebServer: Serving HTTPS on 192.168.1.12 port 443.
                21:57:50 WebServer: ***

                1. Hi Mike,

                  it looks like a cert file problem. Keep in mind: If PlexConnect is not running, it is (almost) every time the cert file. Follow the steps in the post EXACTLY to generate it again!

                  Cheers,
                  Gee Are

                  Cheers,
                  Gee Are

                      1. So ignoring the certifcate for a second.

                        I have Plex up and running on my windows machine. I went to my IPAD which actually has the Plex app on it and it continuously says can not connect to the Server on my windows machine. Also tried on my Roku and no luck.

                        My thought is that something on my windows computer (that is running Plex) is preventing Plex from accessing it. This is my work computer so maybe there is something setup that prevents outside application (i.e Plex) from using computer?

                        Thoughts?

                        1. Hi Mike,

                          is your Windows PC and your iPad in the same Network (LAN vs. WLAN)? Maybe you’re right that there are some firewall settings….

                          Have you tried to set up another account on your Windows PC and check to access Plex Server from this new account?

                          Cheers,
                          Gee Are

                          1. Yes IPAD and PC are on the same LAN. I have not tested Plex on another Windows PC but I have used it on my Macbook pro and works fine.

                            Trying to switch to my windows PC because it is more updated/faster.

                            So how to adjust or fine setting that are keeping it from access Plex on Windows PC?

                            1. Hi Mike,

                              my last idea: Do you have static IP addresses in your network. This should be done.

                              But now I’m at the end: Check this forum. I’m sure you will get help there from the Plex geeks.

                              Cheers,
                              Gee Are

                  1. I have tried both methods the ‘cert.create.bat and the ‘cert.create-2.bat and no luck.

                    I was able to add the certificate to Apple TV for both methods by using a USB stick and coping the trailers.cer and trailers.der (depending on what method I was using) then using my Mac computer and the Apple Config 2. I can see the certificate when I got to General>Send Data to Apple.

                    Thoughts on this. I am stuck. I have verified that I am logged into plex account and have it running prior to running server.

          12. Pingback: Plex Media Server Running On Windows 10 - miapple.me

          13. I’m not sure what I’m missing here but the instructions say to: Download the batch file ā€˜cert.create.batā€˜ and copy the file into C:\Cert:”. My only issue right now is “How do I download that batch file?” Where is it?

          14. Pingback: 3 Years Of Blogging: miApple.me - Tech.Blog's 3rd Anniversary - miapple.me

          Leave a Reply

          Your email address will not be published. Required fields are marked *