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. 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.

    1. 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