Introduction

Wake on LAN (or WOL) allows you to remotely turn on a computer.

Note: WOL is available only on OS X 10.11 (El Capitan) or later.

Enabling WOL on OS X

To enable WOL, do the following:

  1. For OSX it can be enabled from System Preferences -> Energy Saver by turning on Wake for network access.
  2. Restart the computer and boot into Recovery mode by holding CMD+R on boot until the Apple logo appears.
  3. Open Terminal from the Utilities menu.
  4. Disable System Integrity Protection by running the csrutil disable; reboot command.
  5. After OSX boots up, make sure you're logging in as an administrator and open Terminal from /Applications/Utilities/Terminal.app
  6. Log in as root by running the sudo -i command in the terminal window.
  7. Edit the boot configuration file by running the vim /Library/Preferences/SystemConfiguration/com.apple.Boot.plist command.
  8. Press i to enter Insert mode. Find the Kernel Flags and change it to Kernel Flags darkwake=0
  9. Press Esc, then input :wq and press Enter to save the file and quit vim.
  10. Run the reboot command.
  11. Boot into Recovery mode by holding CMD+R on boot time.
  12. Open Terminal from Utilities menu.
  13. Re-enable System Integrity Protection by running the csrutil enable; reboot command.

After OSX boots up, disable the Password Requirement after sleep, by opening System Preferences > Security & Privacy, selecting the General tab, and unchecking the Require password field.