Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use logmein to remotely control my computers. Can I wake up the Mac when it's in sleep mode so that it's offline to the outside world?

enter image description here

share|improve this question
up vote 2 down vote accepted

From this post:

Most modern computers offer a feature called "Wake on LAN". This is designed to allow a network administrator to turn on a computer remotely, even when it is turned off, by sending a "magic packet". This is used, for instance, to allow backup programs to run at night.

Here is a Python script that does this (if your MAC address is01-23-45-67-89-0a:

#!/usr/bin/env python 
import socket 
s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM) 
s.sendto('\xff'*6+'\x01\x23\x45\x67\x89\x0a'*16, ('', 80))

Or you can use Wake550.

or use this site.

share|improve this answer
Wake On LAN requires another computer on the subnet to be awake, or the Router to support WoL. If this was the case, LogMeIn would already offer the 'Wake Up This Computer' option. – JBRWilkinson Feb 12 '11 at 9:58

Historically, I've accomplished this by two means. First, both methods require you to check "Wake for Network Access" in System Preferences -> Energy Saver

System Preferences - Energy Saver

(1) If you open Finder, expand the "Shared" section if necessary, and connect to the sleeping computer!

This works occasionally, but not every time. The bonus is that (presumably) at this point, I'm doing what I needed to do anyways.

(2) If that failed, I generally open Wake On LAN and manually send a Wake request to the computer.

share|improve this answer
Thanks for letting me know Wake On LAN : – prosseek Feb 10 '11 at 17:19
Well, I'm glad you know how to search, because I completely forgot to put the actual link in there! Thanks ;). – Jason Salaz Feb 10 '11 at 17:39

You can also wake up your Mac over wireless.

First, your Mac must support Wake on Wireless. Second, your router must support Wireless Multimedia Extensions (WME), also known as Wi-Fi Multimedia (WMM).

After your enabled WME on your router, you must enable "Wake for network access" on your Mac. Then check the MAC address of your wireless card of your Mac. Put your Mac into sleep. From a second computer log in to your router and with the WOL (Wake on LAN) option wake up your Mac wirelessly by entering the MAC address.

Remember, not every router supports WME.

share|improve this answer
I believe the both Apple Airport Express and TimeCapsule support this feature. – JBRWilkinson Feb 12 '11 at 9:59
Yes, that is correct. And also other routers have this feature, for example WRT54GL (I'm using this one). – cahuk Feb 12 '11 at 11:46

@Am1rr3zA, I had to add one line to your Python script to make it work, as documented on this page:

#!/usr/bin/env python 
import socket 
s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
s.sendto('\xff'*6+'\x01\x23\x45\x67\x89\x0a'*16, ('', 80))
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.