Dead Simple Wake-on-LAN for Your Windows Server at Home

Having a server at home is a great luxury, but having a computer running 24×7 is an extreme waste of energy. Turning it on and off manually is not very appealing, either. Luckily we have to do neither. Windows can easily be configured to put the computer into sleep mode (where modern PCs consume approx. 1 Watt) and have it wake up upon access.

Going to Sleep

This is the easy part. We do not have to do anything; the default power plan instructs Windows to go to sleep after 20 minutes of inactivity.

Waking up

Getting Windows to wake up on demand sounds like a difficult thing. Those of you that know Wake-on-LAN may think of magic packets and networking tools. Those are certainly necessary in enterprise environments, but in the typical home network the situation is much simpler. Since there are only a handful of devices on the network and those do not talk to the server constantly we can simple instruct the server to wake up whenever anyone talks to it.


This is what the entire configuration looks like:

This works on Windows 7. Windows 8 is a bit special: Wake-On-LAN is only supported from sleep or hibernate, not from hybrid or classic shutdown. This is because, as KB2776718 states, “users expect zero power consumption and battery drain in the shutdown state”.


With your home server in sleep mode most of the time you might wonder how long it takes for the machine to wake up. From personal experience I can tell you that wakeup is extremely fast. If that does not convince you, the following test made against my home file server might:

C:\>ping hkserver
Pinging [] with 32 bytes of data:
Reply from Destination host unreachable.
Request timed out.
Reply from bytes=32 time=3ms TTL=128
Reply from bytes=32 time=8ms TTL=128
Ping statistics for
    Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
    Minimum = 3ms, Maximum = 8ms, Average = 5ms

As you can see, only two pings are lost!


But wait, you may say, if my home server sleeps most of the time, with its RAM buffered by electrical power, what happens during a power outage? The machine would be reset brutally. That would be true if Windows did not use “Hybrid Sleep” by default, which is a combination of Sleep and Hibernate. The current state is buffered in RAM, but it is also written to disk. After a power outage, the system’s state is simply read from disk instead of RAM.

, , , , ,

8 Responses to Dead Simple Wake-on-LAN for Your Windows Server at Home

  1. Tobias May 8, 2013 at 13:04 #

    Hi Helge,
    thanks a lot for your post! I need exactly what you are describing, but it does not work.

    I have a server which should go to sleep after 20/30 minutes. Once a client tries to access one of its shared folders, it should wake up. My configuration is like yours (which is the default btw.). But my server does not wake up.

    The thing is: When I set the permissions for a shared folder, Windows tells me the following: “Shared items aren’t accessible when your computer is asleep.” (or in german: “Im Ruhezustand des Computers kann auf freigegebene Elemente nicht zugegriffen werden.”). So why does it work for you?! :)


    • Tobias May 8, 2013 at 13:07 #

      Forgot to say: I am using Windows 8 Professional.

  2. ying November 9, 2014 at 00:18 #

    Hi, I tried your method but ping still can’t wake up my win 8.1 pc. Do you need setup on router by any means?

  3. J.Albaneos December 25, 2014 at 13:14 #

    There’s a small Windows CMD script that I use to WOL PCs:

  4. Ceyhun September 10, 2015 at 07:08 #

    Thanks for this informative article. I had some troubles with Win 10. For example, after I upgraded it from win 8, my Wake-on-LAN does not work. I tried many things and finally I solved the problem.
    Here you can find how to configure Wake-on-LAN on Windows 10.

    Hope it helps for somebody else who read this article.

  5. Daniel December 3, 2015 at 22:17 #

    Well this just doesn’t work.

    Curious to know how you pinged a hostname and got an IP address from a machine that was turned off… Some local DNS server running on your network?

    • Jared Schwager January 29, 2016 at 01:53 #

      If the server is just in sleep mode the network connection is still maintained somewhat from my understanding.

  6. Bernhard March 13, 2016 at 17:57 #

    got a Windows Server 2012. it wakes up on LAN, when I start running my windows 7 Computer. If I start my Windows 7 on my MacBook, the server doesn’t wake up. It will wake up by sending a package from my MacBook or iPad or Smartphone. Can anybody help?

Leave a Reply