WOL.EXE is a utility that turns on a computer remotely. It broadcasts a "Wake On LAN" packet to the network adapter with the specified MAC address. The MAC address may optionally be followed by the IP address of the network adapter that should broadcast the packet. A port number can also be specified, although this is rarely necessary.
Examples
wol 5c9d32b5f287
wol 5c-9d-32-b5-f2-87 192.168.0.1
wol 5C
32
F2:87 192.168.0.1 16962
wol 5C.9D.32.B5.F2.87 9
Password
In addition, a SecureOn password can be specified by using the /pwd switch. Use this only if you configured the server to require this password. The password can either be the raw characters (up to six), or hexadecimal. The hexadecimal pairs can optionally be separated by colons, dashes, or periods. Examples:
wol 5C
32
F2:87 /pwd sesame
wol 5C
32
F2:87 /pwd 736573616D65
wol 5C
32
F2:87 /pwd 73
73
6D:65
wol 5C
32
F2:87 /pwd 73-65-73-61-6D-65
wol 5C
32
F2:87 /pwd 73.65.73.61.6D.65
Notes
The motherboard must support Wake On LAN.
The network adapter must support Wake On LAN.
For discrete network adapters, there may be a wire that connects the motherboard's WOL port to the network adapter's WOL port.
The Wake On LAN feature must be enabled in the motherboard's BIOS.
The "Good Connection" light on the back of the network adapter must be lit when the machine is off.
The port defaults to 12287 (0x2FFF), but ports 0, 7, and 9 are also common. The port must be open in your firewall (for UDP).
Packets cannot be broadcast across the Internet. That's why they call it Wake On Lan, not Wake On Internet. If that were possible, it would be easy to perform a Denial of Service attack on the entire Internet!
To find a computer's MAC address, run the MSINFO32.EXE tool that is part of Windows. Navigate to Components > Network > Adapter.
It may be necessary to specify the adapter IP in order for the packet to pass through some switches.
Source Code
Want the C++ source code? Purchase a Scratchboard license and we will happily provide the source code. After the order is processed, please contact us and let us know that you want it.
Download
Click here to download version 2.0 of WOL.EXE (released March 20th, 2017).