On macOS, you can use the wakeonlan
command-line utility to send a Wake-on-LAN (WOL) magic packet to wake up a server.
You’ll need to know the MAC address of the network interface that you want to wake up. You can typically find this information in the server’s documentation or by using a network scanner tool.
Here’s an example command:
wakeonlan XX:XX:XX:XX:XX:XX
Replace XX:XX:XX:XX:XX:XX
with the actual MAC address of the network interface you want to wake up.
Note: The wakeonlan
utility is not included in macOS by default, but you can install it using a package manager like Homebrew.