LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

wakeonlan

Send Wake-on-LAN magic packets

TLDR

Wake computer
$ wakeonlan [00:11:22:33:44:55]
copy
Wake with broadcast address
$ wakeonlan -i [192.168.1.255] [00:11:22:33:44:55]
copy
Wake on specific port
$ wakeonlan -p [9] [00:11:22:33:44:55]
copy
Wake from file
$ wakeonlan -f [hosts.txt]
copy
Verbose output
$ wakeonlan -v [00:11:22:33:44:55]
copy

SYNOPSIS

wakeonlan [-i address] [-p port] [-f file] [options] mac

DESCRIPTION

wakeonlan sends Wake-on-LAN (WoL) magic packets to power on remote computers over the network. A magic packet is a specially formatted UDP broadcast containing the target machine's MAC address repeated 16 times, which the network interface card recognizes even while the system is powered off.The tool sends packets to the network broadcast address on UDP port 9 by default, reaching sleeping hosts on the local subnet. A custom broadcast address can be specified for directed broadcasts across subnets, and an alternative port can be used for systems configured on port 7.Multiple machines can be woken at once by reading MAC addresses from a file with one address per line. The target computer must have WoL support enabled in its BIOS/UEFI settings and network interface driver, and must remain physically connected to the network.

PARAMETERS

-i ADDRESS

Broadcast address.
-p PORT
UDP port (default 9).
-f FILE
Read MACs from file.
-v
Verbose output.

REQUIREMENTS

- Target NIC supports WoL- WoL enabled in BIOS/UEFI- WoL enabled in OS- Computer connected to network

INSTALL

sudo pacman -S wakeonlan
copy
sudo apk add wakeonlan
copy
brew install wakeonlan
copy
nix profile install nixpkgs#wakeonlan
copy

CAVEATS

Only works on local network (unless forwarded). BIOS settings required. Some NICs need driver config.

HISTORY

Wake-on-LAN was developed by AMD and HP in 1996. wakeonlan provides command-line access to this power management feature.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid