How to use Wake On Demand?

I want to setup wake-on-demand as described here so I can remote wake up my computer and ssh into it while I am oversea.

My iMac did not have ethernet connection and I want to wake-up it using Wifi.

Thats what I have:

iMac 27-inch, Mid 2011, Software OS X 10.9.1 (13B42)

AirPortExpress, version 7.6.4

Raspberry-pi

ISP-provided router (Technicolor TG582n)

My Raspberry-pi is always on so it is fine if I need to ssh into it first to wake up my iMac.

I have follow the instructions provided in the article for iMac. But I don't know how to actually wake up my computer.

From Bonjour Browser, I can see that my AirPortExpress is publishing _sleep-proxy._udp so I think it have Bonjour-Sleep-Proxy on.


For some reason, I found this line in the log

mDNSResponder[47]: BeginSleepProcessing: en1 not capable of magic packet wakeup

whereas en1 is my wifi interface. But from System Information

en1:
  Card Type:    AirPort Extreme  (0x168C, 0x9A)
  Firmware Version: Atheros 9380: 4.0.74.0-P2P
  MAC Address:  04:54:53:0f:c9:b1
  Locale:   APAC
  Country Code: ES 
  Supported PHY Modes:  802.11 a/b/g/n
  Supported Channels:   1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140
  Wake On Wireless: Supported <--- is this lying to me?
  AirDrop:  Supported
  Status:   Connected

Both lines are correct. You WiFi card supports Wake-On-Lan (WOL) but the link across it does not.

It's almost impossible to get WOL working across a net of any size as it relies on sending and receiving broadcast UDP packets on port 7 or 9 and broadcast packets are rarely routed.

To get it working you would need to reconfigure your home router and set up a VPN between the router and the device you want to send the WOL packet.


You need another computer to try to access the sleeping Mac for something. The easiest way to test this is with a dedicated WOL client testing program like this from another machine on the LAN. I note that you don't appear to have 2 Macs, but if you google around you will find a way to WOL from whatever build you have on your Pi (likely just a telnet operation using a specific port). This will prove that the Mac is setup correctly, and you can then proceed to test further by attempting to access some service on the sleeping Mac, like a web server etc, presumable from your Pi, as that seems to be the only other client you describe on your LAN.