How does Wake on LAN work?

With Wake on LAN, the devices wait in the background for a “Magic Paket”that contains the MAC address of the network card. The typical ports used for WOL are UDP ports 7 & 9. For Wake on LAN to work, the computer must always have access to a power source, as the network card must be powered.