Streaming movies locally to AppleTV from Plex Media Server

I’ve been wanting to watch movies using my AppleTV that I have locally. I use Plex Media Server to make the files available as streams. Plex Media Server is a service running on a CentOS Virtual Machine connected to the LAN. The VMware ESXi host runs a few VMs but I’ll not get into that.

Plex is great. Interface looks fantastic and the software does an amazing job of transcoding files, enabling streaming to every device I’ve tried. I’ve been using an app for iPhone called íMediaShare’ to fire a DLNA stream at the XboxOne for playback on the TV. Works ok but then created a reliance on my phone in order to browse the media library. Not perfect, but not far off!

What I really wanted, was to push media to the AppleTV instead of the Xbox but without needing to navigate media using my phone. AppleTV wouldn’t work with iMediaShare at all so something new was needed.. to Google!

After three clicks, I found this:

Followed the steps. Downloaded, fired it up on the Plex server and voila! It works! Using the Trailers app I can now browse Plex and stream whatever is available 😀 Awesome!! 😀

I need this to start now every time the server boots. No point it working.. if it’s.. uhh.. not working 🙂

So.. to make a service you have to:

Create it:

sudo nano /etc/init.d/plexconnect
# plexconnect: This shell script takes care of starting and stopping
# plexconnect.
# v1.0 – Nick Fennell @
# chkconfig: 2345 65 35

. /etc/rc.d/init.d/functions

# See how we were called.
case “$1” in
# Start daemon.
echo -n “Starting PlexConnect: “
touch /var/lock/subsys/plexconnect
# Adapt the line below. Needs to be the location.
daemon /home/nickfennell/PlexConnect/
# Stop daemon.
echo -n “Shutting down PlexConnect: “
killproc plexconnect
rm -f /var/lock/subsys/plexconnect
$0 stop
$0 start
status plexconnect
echo “Usage: plexconnect {start|stop|restart|status}”
exit 1


Add it:

sudo chkconfig –add plexconnect

Enable it:

sudo chkconfig –levels 345 plexconnect on

Check it:

sudo chkconfig –list | grep plex

Note: This output shows SysV services only and does not include native
systemd services. SysV configuration data might be overridden by native
systemd configuration.

If you want to list systemd services use ‘systemctl list-unit-files’.
To see services enabled on particular target use
‘systemctl list-dependencies [target]’.

plexconnect 0:off 1:off 2:on 3:on 4:on 5:on 6:off

Start it:

sudo service plexconnect start


Leave a Reply

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