Women in Technology

Hear us Roar



Article:
  Control Your Mac from Afar
Subject:   Wake on LAN
Date:   2003-09-21 10:32:15
From:   anonymous2
Great article. I was expecting to see something about waking up a sleeping computer, though. This is something I've been struggling with on my home network: how to wake my sleeping iMac (17" 1gHz) from my powerbook (G4 667), through a router (Netgear MR814). I've worked through the suggestions on macosxhints.com including python and perl scripts. I've also tried utilities like Wake550. Nothing seems to work! My iMac just doesn't seem to pay any attention to those "magic" packets. Any ideas?


Thanks, Mark

Main Topics Oldest First

Showing messages 1 through 3 of 3.

  • Wake on LAN
    2003-10-03 10:46:47  anonymous2 [View]

    Uh, I think I have some egg on my face! Unless it is possible that my iMac's MAC address has somehow changed on its own recently :-/, it would appear I've been using the wrong one all this time. Strange since I've tried 4 different WoL methods on different occasions and in all of them used the wrong MAC address (although consistently the same wrong one)! Anyhow, thanks to those of you offering help - it would appear I was beyond help :-O.

    A new question. Can anyone here tell me why the following python script will only wake a computer if it has been sleeping for less than about 5mins? All other methods (Wake550, WakeUp, and a Perl script "wakeonlan") successfully wake my iMac regardless of how long it has been asleep. Seems strange that the python script would be time dependent!

    #!/usr/bin/env python
    import socket
    s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    s.sendto('\xff'*6+'\x##\x##\x##\x##\x##\x##'*16, ('192.168.0.3', 80))

    where # symbols replace the computer's MAC address

    Mark
  • Wake on LAN
    2003-09-30 18:43:56  anonymous2 [View]

    You're trying to send the magic packet from one wired Mac to another, right? Magic packets are broadcast (which is why you have to specify the remote computer by hardware (aka MAC) address rather than by ip) and broadcasts are limited to a single network. The wired ports on the router and the wireless network are separate networks so you can't send magic packets from one to the other.

    I haven't used WoL with Macs but I have with PCs. I use the perl script, "wakeonlan" for that purpose. gsd.di.uminho.pt/jpo/software/wakeonlan/
  • Wake on LAN
    2003-09-25 07:42:35  anonymous2 [View]

    I have a similar problem -- I would love to wake up my iMac from my a portable, because that's where my shared printer is. Haven't had any luck.