The Apple TV is a nifty little device but itâs nowhere close to being able to play anything you want. It cannot play from USB drives. And it canât play network shares either. Not from AFP, not from SMB, not from DLNA. Thereâs no app store for the Apple TV (yet) so thereâs not installing and running the Plex Player app. So it canât play from from Plex Media Server either. At least not directly.
Fortunately, there is a workaround: PlexConnect. And it is genius! You see, some of the built-in Apple TV apps get their UI and content from remote web servers. So it was a matter of hijacking the web traffic to from one of these apps and redirect it to PlexConnect running on local machine. PlexConnect then communicates with Plex Media Server and serves up modified UI and content to the hijacked app on the Apple TV. Of course, the hijacked app wonât work as before anymore.
Normally the hijacked app is the Trailers app. But since I didnât have the Trailers app on my Apple TV, I used the WSJ app instead. If you have the same situation then in the instructions below replace of âtrailersâ with âwsjappâ and replace of âtrailers.apple.comâ with âvideoâapiâsecure.wsj.comâ
Here are the consolidated instructions (from https://github.com/iBaa/PlexConnect/wiki/Install-Guide) for Mac OS X:
1. Install Plex Media Server
2. Download PlexConnect (https://github.com/iBaa/PlexConnect/archive/master.zip)
3. Extract and drag PlexConnect-master to the Applications folder
4. Open a terminal window (Terminal.app on Mac) and run the following command
openssl req -new -nodes -newkey rsa:2048 -out ~/Desktop/trailers.pem -keyout ~/Desktop/trailers.key -x509 -days 7300 -subj â/C=US/CN=trailers.apple.comâ
openssl req -new -nodes -newkey rsa:2048 -out ~/Desktop/wsjapp.pem -keyout ~/Desktop/wsjapp.key -x509 -days 7300 -subj â/C=US/CN=videoâapiâsecure.wsj.comâ
5. This will create two files on your desktop: trailers.key and trailers.pem (or wsjapp.key and wsjapp.pem). Next run the following command:
openssl x509 -in ~/Desktop/trailers.pem -outform der -out ~/Desktop/trailers.cer && cat ~/Desktop/trailers.key >> ~/Desktop/trailers.pem
openssl x509 -in ~/Desktop/trailers.pem -outform der -out ~/Desktop/wsjapp.cer && cat ~/Desktop/wsjapp.key >> ~/Desktop/wsjapp.pem
Three files should now be on your desktop trailers.pem, trailers.key, and trailers.cer. (or wsjapp.pem, wsjapp.key, and wsjapp.cer).
6. Place the .pem and.cer files into the following folder:
7. If youâre hijacking the WSJ app, you need to edit the PlexConnect configuration:
Set hosttointercept to âvideoâapiâsecure.wsj.comâ:
hosttointercept = videoâapiâsecure.wsj.com
8. If youâre hijacking the WSJ app, you need to edit the Settings script:
Change line 35 to (note the red dash):
(âhosttointerceptâ , (âtrailers.apple.comâ, â[a-zA-Z0-9_.â]+â)),
9. Run PlexConnect by first opening a terminal window (Applications -> Utilities -> Terminal), then type the following:
Provide your Administrator password to complete PlexConnect startup.
You should now see messages like these in the terminal window:
Write down the IP_Self: ###.###.###.### address. This is the IP of your PlexConnect server
On the Apple TV, choose Settings > General > Network > Wi-Fi. Then Choose your Wi-Fi network Name Change the DNS setting from âAutomaticâ to âManualâ. Enter the IP of your PlexConnect server as the DNS server.
Go to the AppleTV settings menu. Select General then scroll the cursor down to highlight Send Data To Apple and set to âNoâ.
With âSend Data To Appleâ highlighted, press Play (not the normal Select button) and you will be prompted to add a profile.
Launch the Trailers (or the WSJ app).
Now you can play media from your Plex Media Server library on your Apple TV.
UPDATE 6-22-15: Changed from old âsecure.marketwatch.comâ to new âvideoâapiâsecure.wsj.comâ. Based on discussion at https://forums.plex.tv/index.php/topic/168109-plexconnect-suddendly-stopped-working/.