Networking – Is automatic Wake On LAN possible with DD-WRT

networkingwake-on-demandwake-on-lan

I might be thinking the wrong way to solve this problem. If there's a better way, than tell me. I want to be able to allow my home server to sleep when it's unused, but to automatically wake up when it's accessed. My household doesn't follow a set schedule due to people working different shifts, so I can't schedule an optimal sleep/wake cycle for the server

There is a WOL daemon for DD-WRT that sends out wake up packets on a scheduled interval, but this is not what I want. I would like for my home server to automatically sleep, but also automatically wake up when it is accessed.

I do not want to use any kind of utility to explicitly send a wake-up packet. I have the server mapped to static IP address. I would like to know if any solution exists that would automatically send wake up packets if the static IP was considered unreachable due to the the computer being in a power-savings mode.

Best Answer

This guy might be doing what you're asking:

http://gaddgets.blogspot.com/2007/02/auto-wol-on-dd-wrt-on-linksys-wrt54gl.html

I thought I would try to set it up to wake up the computer on a Port 80 (http) access if it was in "sleep" mode. ... I would parse the syslog to detect port 80 activity. ... There is a lag now, when the computer is asleep to access a page on the computer. However I find that in most cases, the browser timeout is long enough to wake the computer up and deliver the webpage.

The script he wrote is at that link. If you're accessing on another port, change the port I suppose.

Related Question