通过iphone控制mac远程开机

Using a handy network feature built into OS X and supported by most modern Macs, you can remotely wake a Mac from sleep using an iPhone (or iPod touch, iPad, and Android too). This is done using something called Wake On LAN (WOL), and it’s easy to set up in Mac OS X and use from a smartphone with the help of a free app. The result is basically the total opposite of the remote sleep tricks we’ve covered before, and instead of remotely sleeping a machine, you can remotely wake it instead, having the Mac ready for general network access or just quicker use. Let’s go over how to set this up.
First: Set Up the Mac for Wake On LAN Support

Enabling Wake On LAN support on supported Macs is simple:

Make sure the Mac is connected to a network
Open System Preferences from the  Apple menu and go to “Energy Saver” control panel
Go to the “Power Adapter” tab and check the box for “Wake for Wi-Fi network access” (may be “Wake for network access” if device has multiple networking options) – this enables Wake On LAN in OS X

Enable Wake On LAN in Mac OS X
Now go back to the primary System Prefs window and choose “Network”
Select ‘Wi-Fi’ from the sidebar and note the machines IP address provided to the right

If you don’t see the “Wake for network access” option in the Energy Saver control panel, the Mac probably does not support the feature.

It is also possible to get the Mac’s IP address from the Sharing control panel or command line, you will need this to match the ID of the Mac in question when you’re setting up WOL from iOS in a moment.
Second: Configure the iPhone App for Waking the Mac

Now you’ll want to preconfigure the iOS app (or Android app, more on that below) to have the Macs network information on hand, allowing for the remote wake trick to be used:

Download an iOS app with WOL (Wake On LAN) support – Fing is multi-use and free which is what we’ll cover here (we like it for other uses too), but Mocha WOL is also free and does the job, or you can use a paid app like NetStatus
Join the same wi-fi network as the Mac, then run Fing and tap the refresh button to scan the network and locate the Mac you want to wake up
Select the Mac based on IP address, and give it a name, like “Wake On LAN Home”
Scroll down and tap on “Wake On Lan” (yes do this even though the Mac is not yet asleep) – now the Mac should be saved in the list based on the hardwares MAC address, even if the IP address changes

Using Wake On LAN in iOS

Share