Wake on LAN: What It Is and How to Use It
In this article
Wake on LAN (WoL) is a networking standard that lets you turn on a computer remotely by sending a special network message called a "magic packet." It works when the PC is off but still plugged into power and connected to a network. You can use it to start a desktop from your phone, another PC, or a script, as long as the hardware and settings support it.
Background and Origin
Wake on LAN was developed in the mid-1990s by AMD and Hewlett-Packard as part of the "Magic Packet" technology. The idea was simple: a network adapter could listen for a specific data pattern even while the system was off, then trigger a power-on signal to the motherboard. The standard became widely adopted in Ethernet controllers and motherboards, and it remains a built-in feature on most wired network adapters today. The term "Wake on LAN" is the official name used in BIOS/UEFI settings, Windows device manager, and networking documentation. There is no common slang version; you might see it abbreviated as WoL, but the full term is standard and universally understood.
How Wake on LAN Works
When a computer is shut down normally, the motherboard still supplies standby power to the network card. The network card keeps listening for a specific frame of data. That frame is the magic packet, which contains the target computer's MAC address repeated 16 times in a row, preceded by six bytes of 0xFF. When the network card sees that pattern, it signals the motherboard to start the system, just as if you pressed the power button.
To make this work, you need three things:
- A motherboard and network card that support Wake on LAN (most do).
- The feature enabled in the BIOS/UEFI and in the operating system's network adapter settings.
- A device on the same network that can send the magic packet (a phone app, a PC tool, or a router script).
The magic packet is usually sent over UDP port 9 (the discard port) or port 7 (echo), but the exact port is not critical because the network card looks for the packet's content, not its destination port. Many tools let you specify the port, and 9 is the default.
Enabling Wake on LAN on Your PC
Before you can use Wake on LAN, you must turn it on in two places. The steps are similar on most Windows PCs, but the exact menu labels can differ slightly by motherboard brand and Windows version.
- In BIOS/UEFI: Restart your PC and press the key shown on screen (usually Delete, F2, or F12) to enter setup. Look for a section called "Power Management," "ACPI," or "Wake Up Event." Find an option named "Wake on LAN," "Power On by PCI-E," or "Resume by LAN" and set it to Enabled. Save and exit.
- In Windows: Open Device Manager (right-click the Start button and select Device Manager). Expand "Network adapters," right-click your Ethernet adapter, and choose Properties. Go to the "Power Management" tab. Check the boxes for "Allow this device to wake the computer" and "Only allow a magic packet to wake the computer." If you don't see these boxes, your adapter may not support WoL, or you may need to update the driver.
Note: Wake on LAN typically works only with a wired Ethernet connection. Wi-Fi adapters rarely support it, and if they do, it's often unreliable because the card may disconnect from the network when the system sleeps. If you need wireless wake, look for "Wake on Wireless LAN" (WoWLAN), which is a separate feature and not guaranteed.
Sending a Wake on LAN Packet
Once your PC is configured, you need a way to send the magic packet. Several free tools exist for Windows, Android, and iOS. The general process is the same:
- Find the target computer's MAC address. You can get it by running
ipconfig /allin Command Prompt and looking for the "Physical Address" of your Ethernet adapter. - Install a Wake on LAN app on your phone or PC. Popular options include the free "Wake on Lan" app on Android, "Mocha WOL" on iOS, and the command-line tool
wakeonlanon Linux. - Enter the MAC address (and optionally the IP address or hostname) and send the packet. The computer should power on within a few seconds.
For a single PC on your local network, sending the packet to the broadcast address (like 192.168.1.255) is the most reliable method because it reaches all devices on the subnet. If you want to wake a PC from the internet, you must forward UDP port 9 on your router to the broadcast address, which is risky and often blocked by ISPs. A safer approach is to use a VPN to get into your home network first, then send the packet locally.
Common Problems and Troubleshooting
Wake on LAN fails for a few common reasons. Here is what to check in order:
- Fast Startup is on: Windows' Fast Startup (enabled by default) can prevent WoL from working because the PC doesn't fully shut down. Disable it in Control Panel > Power Options > Choose what the power buttons do > Change settings that are currently unavailable, then uncheck "Turn on fast startup."
- Wrong MAC address: Make sure you are using the MAC address of the Ethernet adapter, not the Wi-Fi adapter. If you have both, the wrong one will not work.
- Power saving in the network card: In Device Manager, also check the "Advanced" tab of your Ethernet adapter. Look for "Wake on Magic Packet" and set it to Enabled. Some adapters have a separate "Wake on pattern match" option that should be left disabled.
- BIOS setting not saved: Some motherboards require you to enable "ErP Ready" or "Deep Sleep" to be disabled, otherwise the network card loses standby power. Check your motherboard manual for the exact setting.
- Firewall blocking: If you are sending from a different PC on the same network, Windows Firewall might block the incoming packet. Temporarily disable the firewall on the target PC to test, then add an exception for UDP port 9 if it works.
If none of these work, try updating your network adapter driver or testing with a different WoL tool. Some older or budget motherboards have flaky WoL implementations, and there is no universal fix.
Wake on LAN vs. Wake on Pattern Match
Wake on LAN is often confused with "Wake on Pattern Match" (also called "Wake on Magic Packet" vs. "Wake on Pattern"). The difference is important:
- Wake on Magic Packet: The network card wakes only when it receives a packet containing the specific MAC address pattern. This is the standard WoL you want.
- Wake on Pattern Match: The card wakes on any network activity that matches certain patterns, like a ping or a broadcast. This is less secure and can cause random wakes.
For reliable and secure wake-ups, enable only "Wake on Magic Packet" and disable "Wake on Pattern Match" if you have that option.
Security and Alternatives
Wake on LAN is not a security feature; it is a convenience. The magic packet is not encrypted, so anyone on your local network can send it and turn on your PC. That is usually harmless, but if you forward the port to the internet, you are exposing a potential attack surface. To stay safe:
- Do not forward UDP port 9 to the internet unless you fully understand the risk.
- Use a VPN to access your home network remotely, then send the packet locally.
- Keep your BIOS and network adapter firmware updated, as vulnerabilities are occasionally found in network stacks.
If Wake on LAN is not working or not supported, alternatives include using a smart plug to power on the PC (if your BIOS is set to "Restore on AC Power Loss"), using the Windows Task Scheduler to wake the PC at a set time, or using a KVM-over-IP device if you need full remote control. These are not replacements for WoL in all cases, but they can fill the gap.
Frequently Asked Questions
Does Wake on LAN work over Wi-Fi?
Usually no. Most Wi-Fi adapters do not support WoL because the card may disconnect from the network when the system is off. Some laptops with "Wake on Wireless LAN" can wake from sleep, but not from a full shutdown. For reliable WoL, use a wired Ethernet connection.
Can I wake a computer from the internet?
Yes, but it requires port forwarding on your router, which is risky and often blocked by ISPs. A safer method is to use a VPN to connect to your home network, then send the packet to the local broadcast address.
Why does my computer wake up by itself after I shut down?
This is often caused by "Wake on Pattern Match" being enabled, or by Windows' "Allow this device to wake the computer" without the magic packet restriction. Disable pattern match and check the Power Management tab in Device Manager.
Do I need to know the IP address to send a magic packet?
You need the MAC address for the packet to be valid. The IP address is only used to route the packet to your network. If you send to the broadcast address (e.g., 192.168.1.255), you don't need the exact IP of the target.
Can I use Wake on LAN on a laptop?
Yes, if the laptop has a wired Ethernet port and the BIOS supports it. However, many laptops disable WoL when running on battery to save power. Check your BIOS settings and the network adapter's Power Management tab.