# PlexConnect on aTV2/jailbroken -\> launchctl

**URL:** https://forums.plex.tv/t/plexconnect-on-atv2-jailbroken-launchctl/49028
**Category:** Apps & Creations
**Created:** [December 7, 2013, 8:04pm UTC](https://forums.plex.tv/t/plexconnect-on-atv2-jailbroken-launchctl/49028 "2013-12-07T20:04:26Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![wahlman.j](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/wahlman.j/32/6441_2.png) [@wahlman.j](https://forums.plex.tv/u/wahlman.j)
#### Post date: [December 7, 2013, 11:42pm UTC](https://forums.plex.tv/t/plexconnect-on-atv2-jailbroken-launchctl/49028/21 "2013-12-07T23:42:21Z")

</div>

Get out, NICE! You must put up a full how to on how you did this! So if I'm following you correctly, you have plexconnect running on the ATV2 and a bag.plist hosting your plexconnect app with the dns set to auto? SCREENSHOT! Man does addsite need to be cracked open on the atv3! All apps work as they should?

---

<div class="post-metadata">

### Author: ![Stoffez](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/stoffez/32/98459_2.png) [@Stoffez](https://forums.plex.tv/u/Stoffez)
#### Post date: [December 7, 2013, 11:48pm UTC](https://forums.plex.tv/t/plexconnect-on-atv2-jailbroken-launchctl/49028/22 "2013-12-07T23:48:43Z")

</div>

no no no.. i have the bag hosted on the webserver still.. i manage to get the local ips working and the trailer app to be as it should.. only thing missing now is to manage to hav the baglist to be hosted on the atv

---

<div class="post-metadata">

### Author: ![wahlman.j](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/wahlman.j/32/6441_2.png) [@wahlman.j](https://forums.plex.tv/u/wahlman.j)
#### Post date: [December 8, 2013, 12:34am UTC](https://forums.plex.tv/t/plexconnect-on-atv2-jailbroken-launchctl/49028/23 "2013-12-08T00:34:03Z")

</div>

This is how I fixed it using terminal on osx e.g. ssh root@192.168.1.101 (alpine is the default password):

cd /Applications/Plexconnect  
chmod +x PlexConnect.py  
chmod +x PlexConnect\_daemon.bash

cd /Applications/Plexconnect/support/OSX

chmod +x install.bash

chmod +x PlexConnect.bash

sudo doesn't work on my Apple TV, but for others it does, WEIRD!  
  
If we can get this webserver going we can us the ATV to host the bag.plist! Still very good progress :)

---

<div class="post-metadata">

### Author: ![jdillinger](https://avatars.discourse-cdn.com/v4/letter/j/43a26b/32.png) [@jdillinger](https://forums.plex.tv/u/jdillinger)
#### Post date: [December 8, 2013, 1:12am UTC](https://forums.plex.tv/t/plexconnect-on-atv2-jailbroken-launchctl/49028/24 "2013-12-08T01:12:58Z")

</div>

Don’t shoot me. Just thinking out loud. Can we make the bag a profile we put on the atv like how we did the https cert get around.   
  
  
  
  
  
Sent from my iPhone using [Tapatalk](http://tapatalk.com/m?id=1)

---

<div class="post-metadata">

### Author: ![wahlman.j](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/wahlman.j/32/6441_2.png) [@wahlman.j](https://forums.plex.tv/u/wahlman.j)
#### Post date: [December 8, 2013, 1:35am UTC](https://forums.plex.tv/t/plexconnect-on-atv2-jailbroken-launchctl/49028/25 "2013-12-08T01:35:03Z")

</div>

To do this and you are using addsite you need to have this older version of plexconnect located on the webserver NOT the atv2, you need plexconnect physically there for addsite to function, no need to start plexconnect on the pms host since the atv2 now has plexconnect running unlike the webserver, addsite needs to be able to find application.js to function:  
  
[https://forums.plexapp.com/index.php/topic/86031-plexconnect-on-the-go-atv23-no-jailbreak/](https://forums.plexapp.com/index.php/topic/86031-plexconnect-on-the-go-atv23-no-jailbreak/)  
  
  
Otherwise if you are using trailers on the atv2 you don’t need this older version to get it to work (addsite only). Here is a example bag.plist as well if using addsite:

\<?xml version="1.0" encoding="UTF-8"?\>  
\<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "[http://www.apple.com/DTDs/PropertyList-1.0.dtd"\>](http://www.apple.com/DTDs/PropertyList-1.0.dtd%22)  

javascript-url  
  
[http://127.0.0.1/Applications/PlexConnect/assets/js/application.js](http://127.0.0.1/Applications/PlexConnect/assets/js/application.js)  
  
auth-type  
  
js  
  
enabled  
  
YES  
  
menu-title  
  
PlexConnect  
  
merchant  
  
PlexConnect  
  
menu-icon-url  
  
  
  
720  
  
[http://dnydnsorwanip:1234/raid/shared/plexconnect/plexconnect.png](http://dnydnsorwanip:1234/raid/shared/plexconnect/plexconnect.png)  
  
1080  
  
[http://dnydnsorwanip:1234/raid/shared/plexconnect/plexconnect.png](http://dnydnsorwanip:1234/raid/shared/plexconnect/plexconnect.png)  
  
  
  
  
  
  
  
  
And finally to pull it off the trailers app. Don’t do this in the preliminary instructions:

- add PlexConnect/support/iOS\*/hosts\_addon\_PlexConnect to /etc/hosts  
  
  
If you did just remove the last line from the /etc/hosts file on the ATV2 to remove the loop back to trailers:  
  
  
127.0.0.1 [trailers.apple.com](http://trailers.apple.com)  
  
  
Here is a sample settings.cfg for using the atv2 remotely:  
  
  
[PlexConnect]  
  
port\_pms = 32400  
  
port\_webserver = 80  
  
ip\_plexconnect = 0.0.0.0  
  
certfile = ./assets/certificates/trailers.pem  
  
ip\_dnsmaster = 8.8.8.8  
  
loglevel = Normal  
  
enable\_dnsserver = False  
  
logpath = .  
  
ip\_pms = [dyndns.com](http://dyndns.com) or wanip (no http prefix)  
  
enable\_plexgdm = False  
  
hosttointercept = [trailers.apple.com](http://trailers.apple.com)  
  
port\_ssl = 443  
  
enable\_webserver\_ssl = False  
  
prevent\_atv\_update = True  
  
port\_dnsserver = 53  
  
enable\_plexconnect\_autodetect = False  
  
  
You still need to allow without auth in pms when use use the atv2 outside of your lan or inside as per the instructions here:  
  
[https://forums.plexapp.com/index.php/topic/86031-plexconnect-on-the-go-atv23-no-jailbreak/](https://forums.plexapp.com/index.php/topic/86031-plexconnect-on-the-go-atv23-no-jailbreak/)  
  
  
If and when this is implemented into myplex it will render this workaround obsolete. Thanks for closing all the ports on my router besides these 🙂  
  
  
Webserver port (for addsite)  
  
Pms port (for pms content)  
  
  
Finished product with the atv2 running plexconnect on itself via addsite enabled plexconnect app, no other plexconnect instances running anywhere, able to take just the atv anywhere you please with full functionality (all tabs enabled)

---

<div class="post-metadata">

### Author: ![Stoffez](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/stoffez/32/98459_2.png) [@Stoffez](https://forums.plex.tv/u/Stoffez)
#### Post date: [December 8, 2013, 8:56am UTC](https://forums.plex.tv/t/plexconnect-on-atv2-jailbroken-launchctl/49028/26 "2013-12-08T08:56:41Z")

</div>

am confused here wahl.. when do u say we need another old plex connect version running?&nbsp;

when using this hack and addsite?

---

<div class="post-metadata">

### Author: ![f00b4r](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/f00b4r/32/768_2.png) [@f00b4r](https://forums.plex.tv/u/f00b4r)
#### Post date: [December 8, 2013, 9:30am UTC](https://forums.plex.tv/t/plexconnect-on-atv2-jailbroken-launchctl/49028/27 "2013-12-08T09:30:34Z")

</div>

I am not sure why you are chasing your tails on this one as PlexConnect had a built in webserver as I have already stated 😉

---

<div class="post-metadata">

### Author: ![wahlman.j](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/wahlman.j/32/6441_2.png) [@wahlman.j](https://forums.plex.tv/u/wahlman.j)
#### Post date: [December 8, 2013, 9:42am UTC](https://forums.plex.tv/t/plexconnect-on-atv2-jailbroken-launchctl/49028/28 "2013-12-08T09:42:00Z")

</div>

Addsite added apps cannot navigate the new plexconnect build. Without application.js (other files im sure also) built like 3rd party vendor apps, as in how they navigate the .js files, the plexconnect app does not work. If its not like apples scheme it doesnt work, at least for me. Its like the added app navigates via application.js then go from there. The old plexconnect build allows it to navigate in reverse almost like 3rd party vendors do:  
  
  
So when you add the plexconnect bag.plist via addsite it tells the app to navigate application.js then figures out everything from there it like bag.plist calls on application.js to navigate (open bag.plist and aee where it calls on application.js) e.g.  
  
[http://atv.hbogo.com/bag.plist](http://atv.hbogo.com/bag.plist)  
[http://atv.hbogo.com/application.js](http://atv.hbogo.com/application.js)  
  
  
And another example:  
  
[http://atv.qello.com/bag.plist](http://atv.qello.com/bag.plist)  
[https://atv.qello.com/application.js](https://atv.qello.com/application.js)  
  
  
Without the appletv addsite added plexconnect app able to navigate application.js hosted on a webserver it fails to navigate in reverse to the rest of the .js files, at least for me. I hope this makes sense, and I would be shocked @stoffez if your webserver bag.plist added via addsite wasn’t still pointed at your old plexconnect builds application.js files among the rest of the .js files with the edits to navigate your webserver hosted files. Check your added bag.plist to see. Its how addsite added apps work as far as I can tell, they need this navigation to work right.  
  
  
Maybe this will help you see what im trying to say on post #3:  
  
[https://forums.plexapp.com/index.php/topic/85523-dyndns-atv2-5x-plexconnect-pull-request/](https://forums.plexapp.com/index.php/topic/85523-dyndns-atv2-5x-plexconnect-pull-request/)  
  
  
Mind you im running everything on osx so if your can see this on other os’s maybe its something simple that can be opened up on osx to allow it, otherwise the issue lies with how plexconnect is coding the navigation, I think. E.g. [http://192.168.2.11/bag.plist](http://192.168.2.11/bag.plist) and any other attempted naviagtion produces this on osx, unlike an actual webserver on osx that I can navigate the websever files without any issues. Im actually very pleased with this new jailbreak method I was having a lot of issues with addsite remotely and now it works flawlessly, just trying to expand on things like possibly hosting a bag.plist on the atv for addsite and having plexconnect serve it to the atv like [http://127.0.0.1/bag.plist](http://127.0.0.1/bag.plist) as well as other things as stated above. The more implemented the less ports needed to be open, more automated process, less workarounds etc the better it will be as in secure and more user friendly 🙂 Im looking forward to myplex hopefully filling in all the tabs, that would remove allow without auth to be removed completely from pms for remote methods.  
  
  
(Pic on post 72)  
  
[https://forums.plex.tv/topic/88975-plexconnect-running-on-any-jailbroken-ios-device/page-4#entry530826](https://forums.plex.tv/topic/88975-plexconnect-running-on-any-jailbroken-ios-device/page-4#entry530826)

---

<div class="post-metadata">

### Author: ![Stoffez](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/stoffez/32/98459_2.png) [@Stoffez](https://forums.plex.tv/u/Stoffez)
#### Post date: [December 8, 2013, 11:43am UTC](https://forums.plex.tv/t/plexconnect-on-atv2-jailbroken-launchctl/49028/29 "2013-12-08T11:43:27Z")

</div>

my setup...

i have installed the Plexconnect on the ATV through Baa´s guide. i then have my bag.plist on my webserver point to 127.0.0.1/Applications/PlexConnect/assets/js/applications.js

so therfore i do NOT point it toward any old plexconnect build..&nbsp;

right now am at my parents house.. i brought my ATV here plugged it in and kaboom i can acces my library at home using myplex without any change of any settings whatsoever.. and my plex connnect server at home is not even running so my atv is taking care of all itself so am a bit confused what u mean with using old plexconnect??

this means with my Plexconnect app on the atv is working as it should and the trailers app is still an trailer app not an Plex hijacked

---

<div class="post-metadata">

### Author: ![Stoffez](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/stoffez/32/98459_2.png) [@Stoffez](https://forums.plex.tv/u/Stoffez)
#### Post date: [December 8, 2013, 11:46am UTC](https://forums.plex.tv/t/plexconnect-on-atv2-jailbroken-launchctl/49028/30 "2013-12-08T11:46:58Z")

</div>

f00b

where is that webserver pointing at ?

i tried last night to put the bag list in my certificate folder and then acces it from the ATV itself by pointing the extrainternetcathegories list to it using this adress

[http://127.0.0.1/ applications/PlexConnect/assets/certificates /bag.plist](http://127.0.0.1/applications/PlexConnect/assets/certificates/bag.plist)

but nothing showed up..&nbsp;

---

<div class="post-metadata">

### Author: ![wahlman.j](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/wahlman.j/32/6441_2.png) [@wahlman.j](https://forums.plex.tv/u/wahlman.j)
#### Post date: [December 8, 2013, 11:48am UTC](https://forums.plex.tv/t/plexconnect-on-atv2-jailbroken-launchctl/49028/31 "2013-12-08T11:48:22Z")

</div>

Ok, I gotcha. So question. Do you have only the myplex tab filled in or your library and channel tabs as well?

---

<div class="post-metadata">

### Author: ![Stoffez](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/stoffez/32/98459_2.png) [@Stoffez](https://forums.plex.tv/u/Stoffez)
#### Post date: [December 8, 2013, 11:49am UTC](https://forums.plex.tv/t/plexconnect-on-atv2-jailbroken-launchctl/49028/32 "2013-12-08T11:49:27Z")

</div>

i only have the myplex tab filled..&nbsp;

ihave removed the Library and the Channels tabs cause am only using this ATV on the go anyways :)

---

<div class="post-metadata">

### Author: ![wahlman.j](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/wahlman.j/32/6441_2.png) [@wahlman.j](https://forums.plex.tv/u/wahlman.j)
#### Post date: [December 8, 2013, 11:51am UTC](https://forums.plex.tv/t/plexconnect-on-atv2-jailbroken-launchctl/49028/33 "2013-12-08T11:51:27Z")

</div>

Ok well I was able to get the library and channel tabs to fill in as well. If you put in your remote wanip/homewanip/localpmsip into pms allow without auth you can fill in those tabs as well, at least I was able to. So it would be like this:  
  
  
111.222.333.444/255.255.255.0,12.34.56.78/255.255.255.0,876.12.34.56/255.255.255.0

---

<div class="post-metadata">

### Author: ![Stoffez](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/stoffez/32/98459_2.png) [@Stoffez](https://forums.plex.tv/u/Stoffez)
#### Post date: [December 8, 2013, 11:53am UTC](https://forums.plex.tv/t/plexconnect-on-atv2-jailbroken-launchctl/49028/34 "2013-12-08T11:53:00Z")

</div>

well i move this thing arount to much and i dont feel like putting new ips in everytime i do that so am happy with this solution.. if i just can find a way to host the bag list on the atv itself i can shut down my webserver completely&nbsp; :rolleyes:

---

<div class="post-metadata">

### Author: ![wahlman.j](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/wahlman.j/32/6441_2.png) [@wahlman.j](https://forums.plex.tv/u/wahlman.j)
#### Post date: [December 8, 2013, 11:55am UTC](https://forums.plex.tv/t/plexconnect-on-atv2-jailbroken-launchctl/49028/35 "2013-12-08T11:55:10Z")

</div>

I plan on putting a atv2 permanently at my dads house so im gonna use that, but for a remote solution myplex would work great as well if you dont want to mess with pms all the time. Also f00b4r said it hasn’t been implement yet and might be so these tabs will fill in for myplex 😉 Im talking with @baa to see if thats a option for the bag.plist on the atv or if we can have a actual webserver like osx on the atv2 to host the bag.plist as well.

---

<div class="post-metadata">

### Author: ![Stoffez](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/stoffez/32/98459_2.png) [@Stoffez](https://forums.plex.tv/u/Stoffez)
#### Post date: [December 8, 2013, 11:56am UTC](https://forums.plex.tv/t/plexconnect-on-atv2-jailbroken-launchctl/49028/36 "2013-12-08T11:56:15Z")

</div>

yeah i saw that.. sounds awesome.. now as soon as we figure out where to put the bag list on the ATV itself we are golden :D

---

<div class="post-metadata">

### Author: ![wahlman.j](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/wahlman.j/32/6441_2.png) [@wahlman.j](https://forums.plex.tv/u/wahlman.j)
#### Post date: [December 8, 2013, 11:58am UTC](https://forums.plex.tv/t/plexconnect-on-atv2-jailbroken-launchctl/49028/37 "2013-12-08T11:58:56Z")

</div>

Well it can be put there, but if it can be added via addsite from the atv that would be great 😉 my settings.cfg might be screwy on my atv2. Maybe thats why its not allowing me to use the plexconnect app, I will dig around and see what I can find out so it works like yours.

---

<div class="post-metadata">

### Author: ![Stoffez](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/stoffez/32/98459_2.png) [@Stoffez](https://forums.plex.tv/u/Stoffez)
#### Post date: [December 8, 2013, 11:59am UTC](https://forums.plex.tv/t/plexconnect-on-atv2-jailbroken-launchctl/49028/38 "2013-12-08T11:59:58Z")

</div>

where do we put it to make the atv pick it up? i tried last night without success

---

<div class="post-metadata">

### Author: ![wahlman.j](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/wahlman.j/32/6441_2.png) [@wahlman.j](https://forums.plex.tv/u/wahlman.j)
#### Post date: [December 8, 2013, 12:01pm UTC](https://forums.plex.tv/t/plexconnect-on-atv2-jailbroken-launchctl/49028/39 "2013-12-08T12:01:54Z")

</div>

I just put the bag.plist on the root of the atv. It still needs to be hosted somehow for addsite to see it, not ready yet for addsite as far as I know. We are getting closer tho 😉

---

<div class="post-metadata">

### Author: ![Stoffez](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/stoffez/32/98459_2.png) [@Stoffez](https://forums.plex.tv/u/Stoffez)
#### Post date: [December 8, 2013, 12:04pm UTC](https://forums.plex.tv/t/plexconnect-on-atv2-jailbroken-launchctl/49028/40 "2013-12-08T12:04:06Z")

</div>

yeah but if i put it it in under extrainternetcathegories it should be picked up anyways right?

i dont even have addsite in this atv

[Previous page](https://forums.plex.tv/t/plexconnect-on-atv2-jailbroken-launchctl/49028.md?page=1)

[Next page](https://forums.plex.tv/t/plexconnect-on-atv2-jailbroken-launchctl/49028.md?page=3)
