Plex, DDWRT, & Wake-On-Lan (WOL) Problem

Hey Guys,

I’ve read a few threads about setting up Plex to WOL when you open it even if the computer is sleeping, can someone take a look and let me know why is it not working? These are my settings now.

This is the script I’m using.

`#!/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.1.1/user/wol.html

INTERVAL=1
PINGTIME=1
OLD=""
PORT=32400
WOLPORT=9
TARGET=192.168.1.123
BROADCAST=192.168.1.255
MAC=E0:CB:4E:CA:1F:76
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`

I have been fighting with this for weeks with no luck. I am using the same script. Have you made any progress?
Thank you

I gave up on trying to make it work. Maybe I will try again when I have some free time. I’m surprised how little attention this gets, I would think people would always want to keep their computer off while away from home.

check this: https://forums.plex.tv/discussion/252796/wake-on-lan-wol-for-windows-10-plex-media-server-when-in-sleep-mode-is-it-possible