When Apple updates Apple TV...

I think it should be noted (to help others avoid the same mistake as I made), in the instructions, where it says [certfile = /path/to/cert/key/file], the author is refering to the trailers.pem file NOT the trailers.cer file

Read the instructions carefully and not in a hurry like I did :-D

Hope this helps out

happened to me too .. but i fixed it and trailers is still unavailable. this is my log:

 15:41:57 PlexConnect: started: 15:41:57

15:41:57 PlexConnect: IP_self: 192.168.1.150
15:41:57 DNSServer: started: 15:41:57
15:41:57 DNSServer: ***
15:41:57 DNSServer: Starting up.
15:41:57 DNSServer: intercept: ['trailers.apple.com', 'atv.plexconnect'] => 192.168.1.150
15:41:57 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1
15:41:57 DNSServer: forward other to higher level DNS: 8.8.8.8
15:41:57 DNSServer: ***
15:41:57 WebServer: started: 15:41:57
15:41:57 WebServer: ***
15:41:57 WebServer: WebServer: Serving HTTP on 0.0.0.0 port 80.
15:41:57 WebServer: ***
15:41:57 PlexGDM: ***
15:41:57 PlexGDM: looking up Plex Media Server
15:41:57 PlexGDM: ***
15:41:58 PlexGDM: servers discovered: 1
15:41:58 XMLConverter: PlexGDM - PMS: 192.168.1.150:32400
15:42:11 DNSServer: DNS request received!
15:42:11 DNSServer: Source: ('192.168.1.47', 64184)
15:42:11 DNSServer: Domain: trailers.apple.com
15:42:11 DNSServer: ***intercept request
15:42:11 DNSServer: -> DNS response: 192.168.1.150
15:42:12 DNSServer: DNS request received!
15:42:12 DNSServer: Source: ('192.168.1.47', 58010)
15:42:12 DNSServer: Domain: a771.da1.akamai.net
15:42:12 DNSServer: ***forward request
15:42:12 DNSServer: -> DNS response from higher level
15:42:28 DNSServer: DNS request received!
15:42:28 DNSServer: Source: ('192.168.1.47', 51452)
15:42:28 DNSServer: Domain: p44-buy.itunes.apple.com.akadns.net
15:42:28 DNSServer: ***forward request
15:42:28 DNSServer: -> DNS response from higher level
 
shoould i add the pem file to keychain or something?
just noticed on the double. sorry about that guys.

happened to me too .. but i fixed it and trailers is still unavailable. this is my log:

 15:41:57 PlexConnect: started: 15:41:57

15:41:57 PlexConnect: IP_self: 192.168.1.150
15:41:57 DNSServer: started: 15:41:57
15:41:57 DNSServer: ***
15:41:57 DNSServer: Starting up.
15:41:57 DNSServer: intercept: ['trailers.apple.com', 'atv.plexconnect'] => 192.168.1.150
15:41:57 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1
15:41:57 DNSServer: forward other to higher level DNS: 8.8.8.8
15:41:57 DNSServer: ***
15:41:57 WebServer: started: 15:41:57
15:41:57 WebServer: ***
15:41:57 WebServer: WebServer: Serving HTTP on 0.0.0.0 port 80.
15:41:57 WebServer: ***
15:41:57 PlexGDM: ***
15:41:57 PlexGDM: looking up Plex Media Server
15:41:57 PlexGDM: ***
15:41:58 PlexGDM: servers discovered: 1
15:41:58 XMLConverter: PlexGDM - PMS: 192.168.1.150:32400
15:42:11 DNSServer: DNS request received!
15:42:11 DNSServer: Source: ('192.168.1.47', 64184)
15:42:11 DNSServer: Domain: trailers.apple.com
15:42:11 DNSServer: ***intercept request
15:42:11 DNSServer: -> DNS response: 192.168.1.150
15:42:12 DNSServer: DNS request received!
15:42:12 DNSServer: Source: ('192.168.1.47', 58010)
15:42:12 DNSServer: Domain: a771.da1.akamai.net
15:42:12 DNSServer: ***forward request
15:42:12 DNSServer: -> DNS response from higher level
15:42:28 DNSServer: DNS request received!
15:42:28 DNSServer: Source: ('192.168.1.47', 51452)
15:42:28 DNSServer: Domain: p44-buy.itunes.apple.com.akadns.net
15:42:28 DNSServer: ***forward request
15:42:28 DNSServer: -> DNS response from higher level
 
shoould i add the pem file to keychain or something?
just noticed on the double. sorry about that guys.

I believe there is something wrong with your settings.cfg file

First, did you download the correct fork, the one that it's linked to in the instructions?

if you did, did you add the 2 new lines to the newly created settings.cfg file?

after you download the correct fork, run plexconnect a new file named settings.cfg will be created. Modify this new file adding the two lines in the instruction at the end of the file

			port_ssl = 443<br>
			certfile = /path/to/cert/key/file
			<div>&nbsp;</div>
		
	</div>

I believe you haven't done this because you have a missing line in the plexconnect log:

08:30:59 WebServer: WebServer: Serving HTTPS on 0.0.0.0 port 443.

I believe there is something wrong with your settings.cfg file

First, did you download the correct fork, the one that it's linked to in the instructions?

if you did, did you add the 2 new lines to the newly created settings.cfg file?

after you download the correct fork, run plexconnect a new file named settings.cfg will be created. Modify this new file adding the two lines in the instruction at the end of the file

port_ssl = 443
certfile = /path/to/cert/key/file
 

I believe you haven't done this because you have a missing line in the plexconnect log:

08:30:59 WebServer: WebServer: Serving HTTPS on 0.0.0.0 port 443.

of course, already had lastet zip.

so i guessed by your comment that it's a problem that i'm using old cfg. downloaded zip again, opened plexconnect with terminal. cfg created.

it's locked so i couldn't edit it in xcode.

opened it in textedit, then created a duplicate file, called it Setiings.cfg.txt

after saving changed to Setiings.cfg and succefully opened in xcode (just to check it's all (probably) good.

than, again, opened plexconnect and trailers is stil unavailable. maybe my editing isn't right? how did you edit?

my log:

15:57:42 PlexConnect: started: 15:57:42
15:57:42 PlexConnect: IP_self: 192.168.1.150
15:57:42 DNSServer: started: 15:57:42
15:57:42 DNSServer: ***
15:57:42 DNSServer: Starting up.
15:57:42 DNSServer: intercept: ['trailers.apple.com', 'atv.plexconnect'] => 192.168.1.150
15:57:42 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1
15:57:42 DNSServer: forward other to higher level DNS: 8.8.8.8
15:57:42 DNSServer: ***
15:57:42 WebServer: started: 15:57:42
15:57:42 WebServer: ***
15:57:42 WebServer: WebServer: Serving HTTP on 0.0.0.0 port 80.
15:57:42 WebServer: ***
15:57:42 PlexGDM: ***
15:57:42 PlexGDM: looking up Plex Media Server
15:57:42 PlexGDM: ***
15:57:43 PlexGDM: servers discovered: 1
15:57:43 XMLConverter: PlexGDM - PMS: 192.168.1.150:32400
15:57:54 DNSServer: DNS request received!
15:57:54 DNSServer: Source: ('192.168.1.47', 50999)
15:57:54 DNSServer: Domain: trailers.apple.com
15:57:54 DNSServer: ***intercept request
15:57:54 DNSServer: -> DNS response: 192.168.1.150
15:57:56 DNSServer: DNS request received!
15:57:56 DNSServer: Source: ('192.168.1.47', 60090)
15:57:56 DNSServer: Domain: p44-buy.itunes.apple.com.akadns.net
15:57:56 DNSServer: ***forward request
15:57:56 DNSServer: -> DNS response from higher level
 

thank you so much.

I have an issue with the Apple TV not showing after i connect the usb cable..

I'm plugging in the power cable, wait for it to stop blinking and then connect the usb cable..

Any ideas?

of course, already had lastet zip.

so i guessed by your comment that it's a problem that i'm using old cfg. downloaded zip again....

The question was where you downloaded from ? the official place https://github.com/iBaa/PlexConnect ? or from the fork https://github.com/reaperhulk/PlexConnect ?

++

dale

Another thought is; If one person creates the key, pem and cer files and then generates the .mobileconfig file, can those files be distributed to another user and then placed in the appropriate places? If that is possible, then one could possibly add a 'ssl-keys' folder to the repo, whack in the files, and so when someone grabs the repo the files are there, the settings file picks up the location of the pem file and all the user has to do is get the mobileconfig file onto their ATV.

Yes. A developer in China has done it this way with a generated .mobileconfig file, who's been providing his own DNS server to many users to watch the online videos via the "Apple Trailer" way . He just released a .mobileconfig this afternoon. Users need to download this .mobileconfig file and use the iPhone configuration utility to install this configuration profile to their devices. and It works perfectly:-)

One thing of note, for devices with a lower firmware version (below 5.2 perhaps), jailbreak or not, they won't be able to install the profile file. Clicking the "install" button got no response.

I've got a jailbreak ATV2 with 5.0.1. Still looking ways to manually install the profile file.

of course, already had lastet zip.

so i guessed by your comment that it's a problem that i'm using old cfg. downloaded zip again, opened plexconnect with terminal. cfg created.

it's locked so i couldn't edit it in xcode.

opened it in textedit, then created a duplicate file, called it Setiings.cfg.txt

after saving changed to Setiings.cfg and succefully opened in xcode (just to check it's all (probably) good.

than, again, opened plexconnect and trailers is stil unavailable. maybe my editing isn't right? how did you edit?

Right click on the new settings.cfg file, and click on get info, click on the lock on the bottom right corner of the new window, type your password. CLick on the + sign on the bottom left corner and add your user. Modify to allow read/write privileges. Close 

after this you can edit the file using textedit

The question was where you downloaded from ? the official place https://github.com/iBaa/PlexConnect ? or from the fork https://github.com/reaperhulk/PlexConnect ?

++

dale

this

The question was where you downloaded from ? the official place https://github.com/iBaa/PlexConnect ? or from the fork https://github.com/reaperhulk/PlexConnect ?

++

dale

hmmm. didn't noticed the difference. will this one update after every offical updates with features and stuff?

so downloaded the right zip and on the first open settings.cfg created. i did the needed things. after opened plexconnect again after less than half a sec of accessing trailers trailers is still unavailable.

this is my log:

16:14:46 PlexConnect: started: 16:14:46
16:14:46 PlexConnect: IP_self: 192.168.1.150
16:14:46 DNSServer: started: 16:14:46
16:14:46 DNSServer: ***
16:14:46 DNSServer: Starting up.
16:14:46 DNSServer: intercept: ['trailers.apple.com', 'atv.plexconnect'] => 192.168.1.150
16:14:46 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1
16:14:46 DNSServer: forward other to higher level DNS: 8.8.8.8
16:14:46 DNSServer: ***
16:14:46 WebServer: started: 16:14:46
16:14:46 WebServer: ***
16:14:46 WebServer: WebServer: Serving HTTP on 0.0.0.0 port 80.
16:14:46 WebServer: WebServer: Serving HTTPS on 0.0.0.0 port 443.
16:14:46 WebServer: ***
16:14:46 PlexGDM: ***
16:14:46 PlexGDM: looking up Plex Media Server
16:14:46 PlexGDM: ***
16:14:47 PlexGDM: servers discovered: 1
16:14:47 XMLConverter: PlexGDM - PMS: 192.168.1.150:32400
16:14:58 DNSServer: DNS request received!
16:14:58 DNSServer: Source: ('192.168.1.47', 51943)
16:14:58 DNSServer: Domain: trailers.apple.com
16:14:58 DNSServer: ***intercept request
16:14:58 DNSServer: -> DNS response: 192.168.1.150
16:15:02 DNSServer: DNS request received!
16:15:02 DNSServer: Source: ('192.168.1.47', 60839)
16:15:02 DNSServer: Domain: p44-buy.itunes.apple.com.akadns.net
16:15:02 DNSServer: ***forward request
16:15:02 DNSServer: -> DNS response from higher level
16:15:05 DNSServer: DNS request received!
16:15:05 DNSServer: Source: ('192.168.1.47', 53408)
16:15:05 DNSServer: Domain: itunes-cdn.apple.com.akadns.net
16:15:05 DNSServer: ***forward request
16:15:05 DNSServer: -> DNS response from higher level
16:15:05 DNSServer: DNS request received!
16:15:05 DNSServer: Source: ('192.168.1.47', 52800)
16:15:05 DNSServer: Domain: ax.init-cdn.itunes.apple.com.akadns.net
16:15:05 DNSServer: ***forward request
16:15:05 DNSServer: -> DNS response from higher level
 
this is my settings.cfg:

[PlexConnect]

logpath = .

enable_dnsserver = True

ip_webserver = 0.0.0.0

prevent_atv_update = True

enable_plexconnect_autodetect = True

port_pms = 32400

port_webserver = 80

ip_plexconnect = 0.0.0.0

ip_dnsmaster = 8.8.8.8

loglevel = Normal

ip_pms = 192.168.178.10

enable_plexgdm = True

port_ssl = 443

certfile = /Users/tomer_gold/Desktop/trailers.cer

 

but are you guys sure that the way of duplicating the file in textedit, adding the right lines and edit the last one to the path, saving as Settings.cfg.txt and than renaming and removing the .txt is ok?

thanks!

Users need to download this .mobileconfig file and use the iPhone configuration utility to install this configuration profile to their devices

Does this mean that the iPhone config utility can be used with the ATV instead of Apple Configurator? If so that broadens the base of people who can use the fix.

Right click on the new settings.cfg file, and click on get info, click on the lock on the bottom right corner of the new window, type your password. CLick on the + sign on the bottom left corner and add your user. Modify to allow read/write privileges. Close 

after this you can edit the file using textedit

thank you. but it's so weird, after a few seconds of accessing trailers it's still unavailable.

there is my log:

16:23:47 PlexConnect: started: 16:23:47
16:23:47 PlexConnect: IP_self: 192.168.1.150
16:23:47 DNSServer: started: 16:23:47
16:23:47 DNSServer: ***
16:23:47 DNSServer: Starting up.
16:23:47 DNSServer: intercept: ['trailers.apple.com', 'atv.plexconnect'] => 192.168.1.150
16:23:47 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1
16:23:47 DNSServer: forward other to higher level DNS: 8.8.8.8
16:23:47 DNSServer: ***
16:23:47 WebServer: started: 16:23:47
16:23:47 WebServer: ***
16:23:47 WebServer: WebServer: Serving HTTP on 0.0.0.0 port 80.
16:23:47 WebServer: WebServer: Serving HTTPS on 0.0.0.0 port 443.
16:23:47 WebServer: ***
16:23:47 PlexGDM: ***
16:23:47 PlexGDM: looking up Plex Media Server
16:23:47 PlexGDM: ***
16:23:48 PlexGDM: servers discovered: 1
16:23:48 XMLConverter: PlexGDM - PMS: 192.168.1.150:32400
16:23:49 DNSServer: DNS request received!
16:23:49 DNSServer: Source: ('192.168.1.47', 53230)
16:23:49 DNSServer: Domain: upp.itunes.apple.com
16:23:49 DNSServer: ***forward request
16:23:49 DNSServer: -> DNS response from higher level
16:23:50 DNSServer: DNS request received!
16:23:50 DNSServer: Source: ('192.168.1.47', 53230)
16:23:50 DNSServer: Domain: upp.itunes.apple.com
16:23:50 DNSServer: ***forward request
16:23:50 DNSServer: -> DNS response from higher level
16:23:53 DNSServer: DNS request received!
16:23:53 DNSServer: Source: ('192.168.1.47', 53230)
16:23:53 DNSServer: Domain: upp.itunes.apple.com
16:23:53 DNSServer: ***forward request
16:23:53 DNSServer: -> DNS response from higher level
16:24:16 DNSServer: DNS request received!
16:24:16 DNSServer: Source: ('192.168.1.47', 58377)
16:24:16 DNSServer: Domain: trailers.apple.com
16:24:16 DNSServer: ***intercept request
16:24:16 DNSServer: -> DNS response: 192.168.1.150
16:24:17 DNSServer: DNS request received!
16:24:17 DNSServer: Source: ('192.168.1.47', 58377)
16:24:17 DNSServer: Domain: trailers.apple.com
16:24:17 DNSServer: ***intercept request
16:24:17 DNSServer: -> DNS response: 192.168.1.150
16:24:20 DNSServer: DNS request received!
16:24:20 DNSServer: Source: ('192.168.1.47', 58377)
16:24:20 DNSServer: Domain: trailers.apple.com
16:24:20 DNSServer: ***intercept request
16:24:20 DNSServer: -> DNS response: 192.168.1.150
16:24:24 DNSServer: DNS request received!
16:24:24 DNSServer: Source: ('192.168.1.47', 49667)
16:24:24 DNSServer: Domain: ax.init.itunes.apple.com
16:24:24 DNSServer: ***forward request
16:24:24 DNSServer: -> DNS response from higher level
16:24:25 DNSServer: DNS request received!
16:24:25 DNSServer: Source: ('192.168.1.47', 63789)
16:24:25 DNSServer: Domain: p44-buy.itunes.apple.com.akadns.net
16:24:25 DNSServer: ***forward request
16:24:25 DNSServer: -> DNS response from higher level
 
my settings.cfg the unlocked and normally edited with textedit, saved with cmd+s:
[PlexConnect]
logpath = .
enable_dnsserver = True
ip_webserver = 0.0.0.0
prevent_atv_update = True
enable_plexconnect_autodetect = True
port_pms = 32400
port_webserver = 80
ip_plexconnect = 0.0.0.0
ip_dnsmaster = 8.8.8.8
loglevel = Normal
ip_pms = 192.168.178.10
enable_plexgdm = True
port_ssl = 443
certfile = /Users/tomer_gold/Desktop/trailers.cer
 
 
thank you for your kindness

@tomer that is not the correct cert file in the setting.cfg path, you have to use the one ending in trailers.PEM

Yes. A developer in China has done it this way with a generated .mobileconfig file, who's been providing his own DNS server to many users to watch the online videos via the "Apple Trailer" way . He just released a .mobileconfig this afternoon. Users need to download this .mobileconfig file and use the iPhone configuration utility to install this configuration profile to their devices. and It works perfectly:-)

One thing of note, for devices with a lower firmware version (below 5.2 perhaps), jailbreak or not, they won't be able to install the profile file. Clicking the "install" button got no response.

I've got a jailbreak ATV2 with 5.0.1. Still looking ways to manually install the profile file.

where can we dld that config file .... 

want to have a look  at that one... want to see where it stores the key on the appletv

Does this mean that the iPhone config utility can be used with the ATV instead of Apple Configurator? If so that broadens the base of people who can use the fix.

I think the iPhone config utility is used only to install the profile rather than generate it. Yes, the iPhone utility does have both mac and win versions.

Have updated my first post with this Macrumour update of the progress:

Quote:

Developer Posts Fix for PlexConnect Client for Apple TV

Wednesday August 28, 2013 5:17 am PDT by James Cull
After the latest update to Apple TV disabled the functionality of the popular PlexConnect plugin, which allows Plex to run on non-jailbroken devices, developer Paul Kehrer has posted a detailed tutorial on his personal blog providing instructions on how to fix the issue. 

P43A0965.jpg
 
The instructions, although somewhat technical, are fairly easy to follow. Users will require a copy of Apple Configurator (which is currently only available on OS X at the moment) and a micro-USB cable in order to connect their Apple TV to their Mac. 

The fix is only intended to be temporary, and it may be disabled in future Apple TV updates. Yesterday, Plex Chief Technology Officer Elan Feingold told MacRumors that the company was "saddened to hear that PlexConnect stopped working" and that "we can only hope that in the future Apple decides to release an SDK for the ATV", citing that interest in the project was "high".
 
End quote.

Orthogonal - thanks for your help - I tried again this morning and was successful.  Turns out, I needed to update more files than just WebServer.py /sigh  :)

where can we dld that config file .... 

want to have a look  at that one... want to see where it stores the key on the appletv

You can get the file from this link. Just download the appletv-fix.rar. The post is in Chinese. 

@tomer that is not the correct cert file in the setting.cfg path, you have to use the one ending in trailers.PEM

the cert in certfile got me wrong. fixed it and it's working. thanks you so much for your patience cause of my stupid.

if anyone who can edit the guide see this message-make it with more information for stupids like me :)

thank you so much!

You can get the file from this link. Just download the appletv-fix.rar. The post is in Chinese. 

Interesting link, thanks samumist.

++

dale

is there a need in the trailers.key and trailers.cer after everything works or i can delete them? and if anyone need the 3 files tell me.