How to Set Up and Use Wake-on-LAN

Wake-on-LAN (WoL) is a network standard that allows a computer to be turned on remotely, whether it's hibernating, sleeping, or even completely powered off. It works by receiving what's called a "magic packet" that's sent from a WoL client.

It also doesn't matter what operating system the computer will eventually boot into (Windows, Mac, Ubuntu, etc.), Wake-on-LAN can be used to turn on any computer that receives the magic packet. A computer's hardware does have to support Wake-on-LAN with a compatible BIOS and network interface card, so not every computer is automatically able to use Wake-on-LAN.

Wake-on-LAN goes by other names, too, but they all mean the same thing: remote wake-up, power on by LAN, wake up on LAN, resume by LAN, etc.

Two-step WoL Setup

Enabling Wake-on-LAN is done in two steps, both of which are described below. The first sets up the motherboard by configuring Wake-on-LAN through BIOS before the operating system boots, and the next logs into the operating system and makes some small changes there.

The first step with the BIOS is valid for every computer, but after following the BIOS setup, skip down to your operating system instructions, whether it be for Windows, Mac, or Linux.

Step 1: BIOS Setup

The first thing you need to do to enable WoL is to set up BIOS correctly so that the software can listen for incoming wake up requests.

Every manufacturer will have unique steps, so what you see below may not describe your setup exactly. If these instructions aren't helping, find out your BIOS manufacturer and check their website for a user manual on how to get into BIOS and find the WoL feature.

  1. Enter BIOS instead of booting to your operating system.

  2. Look for a section that pertains to power, such as Power Management. This may be under an Advanced section. Other manufacturers might call it Resume On LAN, such as on the Mac.

    Most BIOS screens have a help section off to the side that describes what each setting does when enabled. It's possible that the name of the WoL option in your computer's BIOS isn't clear.

    If your mouse doesn't work in BIOS, try using your keyboard to navigate around. Not all BIOS setup pages support the mouse.

  3. Once you find the WoL setting, you can most likely press Enter to either immediately toggle it on or to show a small menu that allows you to toggle it on and off, or enable it and disable it.

  4. Save the changes. This isn't the same on every computer, but on many the F10 key will save and exit BIOS. The bottom of the BIOS screen should give some instructions about saving and exiting.

Step 2: Windows operating system WoL setup

Windows Wake-on-LAN is set up through Device Manager. There are a few different settings to enable here:

  1. Device Manager in Pro menu in Windows 10
  2. Find and open the Network adapters section.

    Network adapters section of Device Manager in Windows 10

    You can ignore any Bluetooth connections and virtual adapters. Double-click (or double-tap) Network adapters or select the small + or > button next to it to expand that section.

  3. Right-click or tap-and-hold the adapter that belongs to the active internet connection. Examples of what you might see are Realtek PCIe GBE Family Controller or Intel Network Connection, but it will vary depending on your computer.

  4. Choose Properties.

    Properties of Wi-Fi Adapter in Device Manager for Windows 10
  5. Open the Advanced tab.

  6. Under the Property section, click or tap Wake on Magic Packet. If you can't find this, skip to Step 8; Wake-on-LAN might still work anyway.

    Wake on Magic Packet in Advanced tab of Wi-Fi adapter in Device Manager
  7. From the Value menu on the right, choose Enabled.

  8. Open the Power Management tab. It might be called Power depending on your version of Windows or network card.

  9. Make sure these two options are enabled: Allow this device to wake the computer and Only allow a magic packet to wake the computer.

    Only allow a magic packet to wake the computer checkbox

    These settings might instead be under a section called Wake-on-LAN and be a single setting called Wake on Magic Packet.

    If you don't see these options or they're greyed out, try updating the network adapter's device drivers; but remember that it's possible your network card just doesn't support WoL. This is most likely true for wireless network interface cards (NICs).

  10. Click or tap OK to save the changes and exit that window. You can also close down Device Manager.

Step 2: macOS Wake-on-Demand Setup

Mac Wake-on-Demand should be enabled by default in version 10.6 or later. Otherwise, follow these steps:

  1. Open System Preferences from the Apple menu.

    System Preferences menu item in Apple Menu
  2. Select Energy Saver from the System Preferences window, or from the top menu go to View > Energy Saver.

    Energy Saver in View menu of System Preferences app in macOS
  3. Put a check in the box next to Wake for network access. Note that this option is called Wake for network access only if your Mac supports Wake on Demand over Ethernet and AirPort. If Wake on Demand only works over one of these two, it's instead called Wake for Ethernet network access or Wake for Wi-Fi network access.

    Wake for Wi-Fi network access in macOS Energy Saver system preference pane

Step 2: Linux WoL Setup

The steps for turning on Wake-on-LAN for Linux are most likely not the same for every Linux OS, but we'll look at how to do it in Ubuntu:

  1. Search for and open Terminal, or hit the Ctrl+Alt+T shortcut.

  2. Install ethtool with this command:

    sudo apt-get install ethtool
  3. See if your computer supports Wake-on-LAN:

    sudo ethtool eth0

    Look for the Supports Wake on value. If there's a "g" there, then Wake-on-LAN can be enabled.

    eth0 might not be your default network interface, in which case you need to modify the command to reflect that. The ifconfig -a command will list all the available interfaces; you're looking just for the ones with a valid "inet addr" (IP address).

  4. Set up Wake-on-LAN on Ubuntu:

    sudo ethtool -s eth0 wol g

    If you get a message about the operation not being supported, then you most likely saw a "d" during the last step, which means you can't enable Wake-on-LAN on Ubuntu.

  5. After the command is run, you can rerun the one from Step 3 to make sure that the Wake-on value is "g" instead of "d."

See this Synology Router Manager help article if you need additional help setting up a Synology router with Wake-on-LAN.

How to use Wake-on-LAN

Now that the computer is fully set up to utilize Wake-on-LAN, you need a program that can send the magic packet required to instigate the startup. TeamViewer is one example of a free remote access tool that supports Wake-on-LAN. Since TeamViewer is made specifically for remote access, its WoL function is handy for those times when you need into your computer while away but forgot to turn it on before you left.

TeamViewer can utilize Wake-on-LAN in two ways. One is via the network's public IP address and the other is through another TeamViewer account on the same network (assuming this other computer is on). This lets you wake the computer without having to configure router ports (there's more on that below) since the other local computer that has TeamViewer installed can relay the WoL request internally.

Another great Wake-on-LAN tool is Depicus, and it works from a variety of places. You can use their WoL feature through their website without having to download anything, but they also have a GUI and command line tool available for both Windows (for free) and macOS, plus Wake-on-LAN mobile apps for Android and iOS.

Some other free Wake-on-LAN apps include Wake On LAN for Android and RemoteBoot WOL for iOS. WakeOnLan is another free WoL tool for macOS, and Windows users can also opt for Wake On Lan Magic Packets or WakeMeOnLan.

One Wake-on-LAN tool that runs on Ubuntu is called powerwake. Install it with the following command:

sudo apt-get install powerwake

Once installed, enter powerwake followed by the IP address or hostname that should be turned on, like this:



powerwake my-computer.local

Wake-on-LAN Troubleshooting

If you've followed the steps above, found that your hardware supports Wake-on-LAN without any issues, but it's still not working when you try to turn the computer on, you might also need to enable it through your router. To do this, you need to log into your router to make some changes.

The magic packet that turns on the computer is normally sent as a UDP datagram over port 7 or 9. If this is the case with the program you're using to send the packet, and you're trying this from outside the network, you need to open those ports on the router and forward requests to every IP address on the network.

Forwarding WoL magic packets to a specific client IP address would be pointless since the powered down computer doesn't have an active IP address. However, since a specific IP address is necessary when forwarding ports, you want to make sure the port(s) are forwarded to what's known as the broadcast address so that it reaches every client computer. This address is in the format *.*.*.255.

For example, if you determine your router's IP address to be, then use the address as the forwarding port. If it's, you'd use The same is true for other addresses like, which would use the IP address as the forwarding address.

You might also consider subscribing to a dynamic DNS (DDNS) service like No-IP. That way, even if the IP address tied to the WoL network changes, the DNS service will update to reflect that change and still let you wake up the computer. The DDNS service is really only helpful when turning your computer on from outside the network, like from your smartphone when you're not home.

More Information on Wake-on-LAN

The standard magic packet used to wake a computer works below the Internet Protocol layer, so it's usually unnecessary to specify IP address or DNS information; a MAC address is normally required instead. However, this isn't always the case, and sometimes a subnet mask is needed, too.

The typical magic packet also does not return with a message indicating whether it successfully reached the client and actually turned the computer on. What normally happens is that you wait several minutes after the packet is sent, and then check whether the computer is on by doing whatever it is you wanted to do with the computer once it was powered on.

Wake on Wireless LAN (WoWLAN)

Most laptops do not support Wake-on-LAN for Wi-Fi, officially called Wake on Wireless LAN, or WoWLAN. The ones that do need to have BIOS support for Wake-on-LAN and need to be using Intel Centrino Process Technology or newer.

The reason most wireless network cards don't support WoL over Wi-Fi is because the magic packet is sent to the network card when it's in a low power state, and a laptop (or wireless-only desktop) that isn't authenticated with the network and is completely shut down, has no way to listen for the magic packet, and therefore won't know if one is sent over the network.

For most computers, Wake-on-LAN works over Wi-Fi only if the wireless device is the one sending the WoL request. In other words, it works if the laptop, tablet, phone, or other device is waking up a computer, but not the other way around.