Wake on LAN (WOL) for Windows 10 PLEX Media Server when in sleep mode. Is it possible?

Did you copy the script from the docx file on the first page?

yeap !
And as I said, it is waking my machine from outside my LAN. The problem is from inside my LAN.
I believe this is a problem on the router logging … somehow, it is not capturing the LAN traffic.

Probably just a bug in the firmware. Can’t seem to find ddwrt firmware for linksys ea6900. Did you follow the guide to installing the firmware from the forums. Seems your router has a 32k nvram bug that could be causing your problems by not having enough memory for the log files. I would chalk it up to the ddwrt firmware not working properly

no … I have followed the forum … actually, I helped build the guide to circumvent the bug :smile:
The router is working fine…
What is your FW version ?
And I see you have a plex pass. Are you on lattest plex version also ?

Thanks buddy !

Hmm, only thing I can think of is to set it up on it’s own vlan and see if you can get it to work tjat way. Must not be monitoring traffic between lan but maybe it’ll monitor logs between separate lans. Does that make sense?

Yeah i am on the newest plex

Hi Guys,
Great discussion here. My problem is that i cant run DD-WRT on my current router/modem (Arcadyan VGV7519KW).
I see that open-WRT only is availible for my router. The thing on my router at the moment is that it doenst support to setup broadcast ip (for example 192.168.2.255)(its not allowed). And the modem/router may officially not be flashed from the provider.

So for me the questions are:

  1. Does this script work on open-WRT?
  2. Can a flashed router be set back to origional software?

Any help would be appriciated.

(Sorry for my poor english :D)

Hey Lars,
welcome !
I am not familiar with open-WRT, but I believe it its linux like, as DD-WRT.
This script is shell script and will work in any linux like distribution. Might need some logs capturing (DMESG) commands tweak, but it should work just fine !
If you are able to connect to the router console (command line) try the command DMESG in there. If it returns some traffic, you are good to go !
PS: I am taking to some DD-WRT developers on the issue I am having. DMESG does not capture LAN traffic by definition. It logs only IPTABLE traffic and LAN traffic is handled by the switch. I will keep sharing my findings …

Thanks

Sorry, forgot about number 2.
For DD-WRT, yes, it can. As I am not familiar with Open-WRT, I can’t say for sure !
Better to dig the Open-WRT forums/instructions to find out …

@joaoptc said:
Hey Lars,
welcome !
I am not familiar with open-WRT, but I believe it its linux like, as DD-WRT.
This script is shell script and will work in any linux like distribution. Might need some logs capturing (DMESG) commands tweak, but it should work just fine !
If you are able to connect to the router console (command line) try the command DMESG in there. If it returns some traffic, you are good to go !
PS: I am taking to some DD-WRT developers on the issue I am having. DMESG does not capture LAN traffic by definition. It logs only IPTABLE traffic and LAN traffic is handled by the switch. I will keep sharing my findings …

Thanks

Did you ever figure out why it wasn’t logging lan?

I have been talking to a ddwrt dev and he says that the LAN traffic is handled on the Switch, and there is no logging for it. (Only for IPTABLES).
His suggestion was to always use the WAN interface (Using a DDNS for it) But plex on client you can only define the IP. Or would have to create vlans etc route between them as you suggested.

With that, I am really not sure how this is working for you guys !
Seems that for any attempt to access my PMS, it also access the plex server on the net, on same port 32400.
I made a few changes to the script, so it monitor any access to port 32400 and triggers WOL. Apart from a few more tuning to the code, so it uses less memory and consumes less processor …
apart from a few comments …

Let me know if you have anything else.

Thanks !

I am still investigating this …
There is a topic opened on the ddwrt forum about this.
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=308103
Thanks.

I manage to have a working script that captures local and remote traffic.
If I could get a Plex Developer to help me with a command tunning, it would be g8 !!!

On my router console, I am running tcpdump and a plex dev could assist me by telling me what I should look for on the packages.
Because capturing all the packages generates unnecessary load on the router.

This is the command that makes the magic happen:

tcpdump -q -n -i vlan1 -P out 'dst host ā€˜$TARGET’ && port '$PORT 2>/dev/null

But I want to tune it.
Can anyone assist ?
If not, I will share the new script as it is.
You can follow the ddwrt forum for more details.

Thanks.

Nice!! Seems you’ve been busy. I honestly haven’t even messed with the script as it works for me All my ports by default are on their own vlan independent of the wan port. Anyways, I’m glad you figured it out! I’m sure others are having the exact problem you were having

Interesting that my router has exactly the same configuration as yours.
I guess that you are having the same limitations I was …
Any how: I have tuned the tcpdump command and I am running some performance tests now.
I believe I will have the final version by the end of the day.
And I have another problem to figure. My box is not WOL from shutdown. It is just WOL from suspend or Hibernate :neutral:

The script works on lan and remote for me. I hadn’t realized that a lot of the newer routers have the ports as switches. The router I’m running has a 4 port switch. I too only wake from sleep on my system. Easier that way, similar to shutdown really. Only uses a small amount of power. Too much work for little benefit to figure out complete start up and shut down sequence and takes longer to get to the media

Yeah … But the problem is that plex is holding my computer up. Running this com CMD:
powercfg -requests
I can monitor that.
I have tried to create a jobs to try to force it to sleep, but again, plex is holding it up and there is no ā€œForce Sleepā€ on windows.
I recall there was another solution listed on this thread.
I will take a look.

DShutdown is a good program but unreliable some times. I use auto shutdown pro right now but it cost money and is quicker at putting it to sleep. Both monitor network usage to tell when to put it into sleep

DShutdown doesnt reinitialize the sequence so you’ll have to create a task to open another instant of it to restart it. Sometimes it’ll quit and not tell you about it so I created a bat file and then turned it into an exe that’ll restart the program if it quits. Seems to work decently enough.

I believe you have to go into plex settings and select allow away mode and then under advanced power options select away mode for media. Default is usually prevent sleep when media is being played. That might be your hangup