What a magic packet actually contains
A Wake-on-LAN "magic packet" is a specially formatted network broadcast containing the target device's MAC address repeated 16 times in a row within the packet's payload. The network adapter, even while the rest of the computer is powered off, stays in an extremely low-power listening state specifically watching for this exact pattern, and triggers the motherboard to power on the system when it sees it.
Why Wake-on-LAN sometimes does not work
A common cause of failure is Windows' "Fast Startup" feature, which does not fully shut down the network adapter the way a true shutdown does, and can interfere with WOL depending on the specific hardware. Wake-on-LAN also requires the PC to still be receiving power to the motherboard and network adapter β it cannot work if the machine is switched off at a power strip or its PSU switch, since there is no power available to keep the adapter listening at all.
Frequently Asked Questions
Does Wake-on-LAN work over Wi-Fi?
Rarely reliably. Most Wi-Fi adapters fully power down in low-power states in a way wired ethernet adapters do not, so they cannot stay listening for a magic packet. A wired ethernet connection is strongly recommended for a PC you want to wake remotely.
Can I use Wake-on-LAN over the internet without a VPN?
Yes, by forwarding the wake port on your router and using a DDNS hostname to reach your home network, though this does expose that port to the internet. Using a VPN to connect into your home network first, then sending the wake command from inside it, is the more secure alternative if you want to avoid opening a port publicly.