How do Wake-On-LAN works

Magic wakeups are cool, but readers want the gritty guts

TLDR: A simple guide explains how a “magic packet” wakes a sleeping PC on your local network, but commenters demanded a deeper hardware breakdown—how the network card detects it, how the wake signal travels, and what switches do—while a mod nudged off-topic. It matters for remote updates and saving energy.

Wake-on-LAN, a.k.a. the “magic packet” trick, is back in the spotlight. The article lays it out simply: your sleeping computer’s network card listens for a special packet—six FFs plus your device’s ID repeated a bunch—and then nudges the machine awake. It’s like a digital knock on the door, often sent as a simple UDP message (think: a shout to everyone on the local network). Limitations? It mostly only works on the same network, needs the device’s hardware address, and doesn’t guarantee your machine will actually wake. For the curious, tools like Wireshark and primers like this overview help visualize the packets.

But the crowd wanted more—way more. Top commenter ysleepy basically asked for the secret sauce: how the network card matches the packet, how it pokes the system awake through the PC’s internals, and how switches remember which port to send it to. The vibe: nice intro, but show us the wires, bolts, and sparks. A moderator nudge from dang (“[stub for offtopicness]”) added a splash of meta-drama, spawning the classic split between “keep it beginner-friendly” and “give us the gritty hardware deep-dive.” Even the tease of a future BIOS/how-to guide had folks tapping their feet. In short: Magic packet 101 got applause, but the peanut gallery is begging for a lab coat and a microscope.

Key Points

  • Wake-on-LAN (WoL) wakes a device when its NIC receives a Magic Packet and signals the BIOS to power on.
  • A Magic Packet contains six 0xFF bytes followed by the target MAC address repeated 16 times, with an optional password field.
  • WoL packets are often sent as UDP datagrams to broadcast (IPv4 255.255.255.255) or multicast (IPv6), typically on port 9 (also 0 or 7).
  • WoL generally works only within the same LAN/VLAN; the sender must know the target’s MAC address, and Ethernet is required (not Wi‑Fi).
  • WoL offers no delivery guarantee or confirmation that the device woke, and the article previews a Golang implementation.

Hottest takes

"I was kinda hoping to get the nitty gritty of how the NIC does the packet matching" — ysleepy
"[stub for offtopicness]" — dang
Made with <3 by @siedrix and @shesho from CDMX. Powered by Forge&Hive.