Waking up Mac when PlexConnect needs it.

Hello.  I setup Plex and PlexConnect.  What a great system this is.  But I did have a problem: when my Mac was asleep, Plex, Netflix, Hulu, etc... weren't available.  I'm guessing because it is trying to use the sleeping machine as a DNS, and isn't getting anything back.

 

Well, I did find a solution to my problem.  I created some LaunchAgents to listen for requests, and to wake the machine when needed. 

 

Heads up, I am new to Mac and OSX, so this might be completely wrong way of doing things, but it does work for me, and the machine now wakes when using the ATV so all my services are available.

 

Just create these files in ~/Library/LaunchAgents

 

com.plexconnect.wake_dns.plist

<?xml version="1.0" encoding="UTF-8"?>



	KeepAlive
	
	Label
	com.plexconnect.wake_dns
	ProgramArguments
 	
 		dns-sd
		-R
		PlexConnect_DNS
		_domain._udp.
		.
		53
		pdl=application/dnsserver
	


com.plexconnect.wake_pms.plist

<?xml version="1.0" encoding="UTF-8"?>



	KeepAlive
	
	Label
	com.plexconnect.wake_pms
	ProgramArguments
 	
 		dns-sd
		-R
		PMS
		_pms._tcp.
		.
		32400
		pdl=application/pmsserver
	


com.plexconnect.wake_web.plist

<?xml version="1.0" encoding="UTF-8"?>



	KeepAlive
	
	Label
	com.plexconnect.wake_web
	ProgramArguments
 	
 		dns-sd
		-R
		PlexConnect_Web
		_http._tcp.
		.
		80
		pdl=application/webserver
	


Interesting I was using this to wake but if these plists can do it automatically I'm all for it:

https://itunes.apple.com/us/app/fing-network-scanner/id430921107?mt=8

I may add this to my OpenPlex app seems like a good feature. I will need to do some testing but looks promising as far as I can tell. I would rather just wake from my aTV instead of grabbing a ios device everytime. Welcome to appletv let's let our consumers fix our devices one day at a time. Do people work at apple, I'm starting to wonder?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.