I have just done this on mine and if you bear with me I can walk you through it.
First you need a router running dd wrt firmware.
set your comp on a static ip under the services tab and then forward the port 32400 to that ip.
Also enable Syslogd under the Services tab
In the Log management under the security tab you need to set logs to High and in the options section Enable accepted
then you need to go to plex on the server and set the manual port to 32400
in your router you need to post this script under commands in the administration tab exactly as I post it but change the bold accordingly and save it to start up commands. Then reboot the router
#!/bin/sh
#Enable JFFS2 and place script in /jffs/ then run on startup in web interface.
#You can check the log from http://192.168.2.1/user/wol.html
INTERVAL=1
PINGTIME=1
OLD=""
PORT=32400
WOLPORT=9
TARGET=The static IP that you set for your server
BROADCAST=192.168.1.255 Do not change unless your ip does not use the 192.168.1 default
MAC= The mac address of your server
WOL=/usr/sbin/wol
LOGFILE="/tmp/www/wol.html"
echo “<meta http-equiv=“refresh” content=“10”>” > $LOGFILE
echo “AUTO WOL Script started at” date
“
” >> $LOGFILE
while sleep $INTERVAL;do
NEW=dmesg | awk '/ACCEPT/ && /DST='"$TARGET"'/ && /DPT='"$PORT"'/ {print }' | tail -1
SRC=dmesg | awk -F'[=| ]' '/ACCEPT/ && /DST='"$TARGET"'/ && /DPT='"$PORT"'/ {print $7}' | tail -1
LINE=dmesg | awk '/ACCEPT/ && /DST='"$TARGET"'/ && /DPT='"$PORT"'/'
if [ “$NEW” != “” -a “$NEW” != “$OLD” ]; then
if ping -qw $PINGTIME $TARGET >/dev/null; then
echo “NOWAKE $TARGET was accessed by $SRC and is already alive at” date
“
”>> $LOGFILE
else
echo “WAKE $SRC causes wake on lan at” date
“
”>> $LOGFILE
$WOL -i $BROADCAST -p $WOLPORT $MAC >> $LOGFILE
echo “
” >> $LOGFILE
sleep 1
fi
OLD=$NEW
fi
done
Replace the bold and delete the bold writing accordingly.
Go to device manager on the server and find your wired network adapter. Right-click and go to power management and select all 3 boxes that lead to wake only by magic packet.
Next set your power setting to balanced under power options. select change plan settings and set the comp sleep timer to never. this way it wont sleep on you while you stream movies or what not.
download the program called Dshutdown. extract to desktop. Right-click dshutdown.exe go to properties, then to compatibility and select to always run as administrator. now run dshutdown.
for the settings under dshutdown you want to have shut down for internet activity selected. in the drop down section select your network adapter that ends in NATIVE MAC LAYER LIGHT WEIGHT. select upload - under- 5kb/s - 5 min
in the check boxes on the left you want Standby checked, Exit program checked, Auto start checked, and set default checked. IN THAT ORDER. it saves the settings that way.
Next go to task scheduler. create basic task, name it dshutdown restart. under trigger you want “when an event is logged” checked. for log you want “system”, For source you want “Power-Troubleshooter”. for event ID you want the number 1. for action you want to start a program. The program you want is the dshutdown.exe. i put the folder with dshutdown in it on my desktop. this way when the comp comes out of sleep it will start dshutdown and restart the activator to start the sleep sequence when there is no internet traffic being uploaded. that way it wont shut down on you while you watch a movie and you wont have to manually reactivate it like it was intended.
follow these steps to the T. Don’t deviate and read it word for word. I couldn’t do pics. It’ll make sense as you work through it step for step. The script will work on LAN and Remote. At least it does for me. Let me know if you run into problems and I’ll see if i can walk you through it.