Introduction
Wake on LAN (or WOL) allows you to remotely turn on a computer.Mac Wake On Lan TerminalMac Os Wake On LanNote: WOL is available only on OS X 10.11 (El Capitan) or later.Enabling WOL on OS XMacos Wake On Lan
To enable WOL, do the following:
How to enable Wake On LAN on a Mac. On the computer you want to wake up, under System Preferences Energy Saver, enable Wake for Network Access. Can't access this feature? If your Mac is part of a domain or a network, your domain administrator may have restricted some of the features and settings available on your MAC. You can turn on an offline computer with TeamViewer via Wake-on-LAN. This way, you can control an offline computer remotely by waking it up before you establish a connection. Wake-on-LAN can be used through two different methods: A. Wake up a computer (hereinafter named as target computer) via another computer within the same network. Wake-Up Send wake up packets to computers that support Magic-Packet WOL. Shutdown Shutdown Windows domain computers. Also, with more complexity, shutdown Windows non-domain computers, and Linux computers via script. Listener Monitor and display incoming WOL packets. Useful for troubleshooting network routing issues. Scanner The Network Scanner makes it easy to survey.
*For OSX it can be enabled from System Preferences ->Energy Saver by turning on Wake for network access.
*Restart the computer and boot into Recovery mode by holding CMD+R on boot until the Apple logo appears.
*Open Terminal from the Utilities menu.
*Disable System Integrity Protection by running the csrutil disable; reboot command.
*After OSX boots up, make sure you're logging in as an administrator and open Terminal from /Applications/Utilities/Terminal.app
*Log in as root by running the sudo -i command in the terminal window.
*Edit the boot configuration file by running the vim /Library/Preferences/SystemConfiguration/com.apple.Boot.plist command.
*Press i to enter Insert mode. Find the Kernel Flags and change it to Kernel Flags darkwake=0
*Press Esc, then input :wq and press Enter to save the file and quit vim.
*Run the reboot command.
*Boot into Recovery mode by holding CMD+R on boot time.
*Open Terminal from Utilities menu.
*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.