| Sign In/My Account | View Cart |
| 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?
|
||
Showing messages 1 through 6 of 6.
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