Go Back   The macosxhints Forums > OS X Help Requests > Networking



Reply
 
Thread Tools Rating: Thread Rating: 7 votes, 5.00 average. Display Modes
Old 02-18-2003, 04:45 AM   #1
JayBee
Major Leaguer
 
Join Date: Jan 2002
Location: Edinburgh, Scotland
Posts: 437
remote wake from sleep

Hi Guys,

I left my G4 sleeping today when I went to work. Is there any way to remotely wake it up?

I noticed that the Sys Prefs have a "wake for admin access" setting, which I'm pretty sure I left on. Does this mean I can just SSH in and the machine will wake up?

Please advise - I need my mail!
__________________
JayBee
--

It's all relative, you know
JayBee is offline   Reply With Quote
Old 02-19-2003, 08:19 PM   #2
momerath
Triple-A Player
 
Join Date: Feb 2003
Posts: 59
I wish I knew. Whenever I try to SSH to a sleeping mac, it responds with a "host is down" message. I tried searching versiontracker for a program that might remotely wake it up but was unsuccessful.
momerath is offline   Reply With Quote
Old 02-19-2003, 08:48 PM   #3
nick2588
Triple-A Player
 
Join Date: Sep 2002
Posts: 99
Re: remote wake from sleep

Quote:
Originally posted by JayBee
I noticed that the Sys Prefs have a "wake for admin access" setting, which I'm pretty sure I left on. Does this mean I can just SSH in and the machine will wake up?

Are you actually sure the option is there? I thought it was removed in OS X and is only in Classic... I wonder if booting into Classic, enabeling the option, then booting back into X will allow SSH to wake your Mac?

Or prehaps a Wake-On-LAN utility could wake the sleeping Mac. I don't know exactally how you could send a Wake-On-LAN signal through the Internet

I've have this problem too, and I would like a solution as well.
nick2588 is offline   Reply With Quote
Old 02-19-2003, 09:22 PM   #4
momerath
Triple-A Player
 
Join Date: Feb 2003
Posts: 59
No, the option is there in 10.2. No need to boot into classic.
momerath is offline   Reply With Quote
Old 02-19-2003, 09:50 PM   #5
mervTormel
League Commissioner
 
Join Date: Jan 2002
Posts: 5,536
there is WakeUp, which i believe can send womp (wake on magic packet) to a snoozer

http://www.coriolis.ch/article18.html
mervTormel is offline   Reply With Quote
Old 02-19-2003, 10:16 PM   #6
momerath
Triple-A Player
 
Join Date: Feb 2003
Posts: 59
Excellent! This is exactly what I needed. Thanks.
momerath is offline   Reply With Quote
Old 02-20-2003, 03:06 AM   #7
JayBee
Major Leaguer
 
Join Date: Jan 2002
Location: Edinburgh, Scotland
Posts: 437
Hmm. Nope.

I'm looking for a method that will let me wake up my machine from work - where we're stuck in the dark ages of win95 (I'm not kidding).

SURELY there's a way to do it? Or will pinging my machine wake it (as the above link seems to imply)?
__________________
JayBee
--

It's all relative, you know
JayBee is offline   Reply With Quote
Old 02-20-2003, 03:57 AM   #8
hschickel
All Star
 
Join Date: Jan 2002
Location: NY, NY
Posts: 776
Typing: "Wake On Magic Ping" (WOMP) in google gives a number of interesting hits including these 2:

http://pages.towson.edu/aczech/magicpkt/

http://gsd.di.uminho.pt/jpo/software...i-howto-2.html

Googling: "Wake On Magic Packet" (WOMP) gives even more interesting avenues.

I haven't worked through the particulars but it seems you could do this yourself with a little research.

Hugh
__________________
First they laugh at you, then they fight you, then you win.
hschickel is offline   Reply With Quote
Old 03-03-2003, 09:41 AM   #9
Phil St. Romain
Site Admin
 
Join Date: Dec 2001
Location: Wichita, KS
Posts: 2,350
Quote:
Originally posted by mervTormel
there is WakeUp, which i believe can send womp (wake on magic packet) to a snoozer

http://www.coriolis.ch/article18.html

Good find!

This works great on my LAN, but I don't see how it can be configured to work over the Internet. That ethernet address is seen only on the LAN, right?

Has anyone found a way to do remote wakeup of a Mac on a LAN via the Internet? I don't use a modem for FAXing so that's not an option.
Phil St. Romain is offline   Reply With Quote
Old 03-03-2003, 03:39 PM   #10
UltraNurd
Major Leaguer
 
Join Date: Sep 2002
Location: Cambridge, MA
Posts: 367
I use wakeonlan from a *nix terminal, but it's fairly hit and miss success-wise. Part of the problem is that if my powerbook is closed, it will fall asleep again. Not that I should be runing it with the screen closed anyway...
UltraNurd is offline   Reply With Quote
Old 03-03-2003, 04:07 PM   #11
bluehz
MVP
 
Join Date: Jan 2002
Posts: 1,562
wakeonlan works great - you could prob do it from your remote machine, but since you have not already installed wakeonlan - then you are out of luck for today... sorry
bluehz is offline   Reply With Quote
Old 03-05-2003, 02:22 AM   #12
bhaveshp
Prospect
 
Join Date: Mar 2003
Location: Sunnyvale, CA
Posts: 2
Try DSL Reports wake up

Try the wake up tool at DSL Reports:

http://www.dslreports.com/wakeup

I tried it once to wake up my G4 but couldn't get it to work through my SMC router. Didn't figure out which port needs to be open.

If anyone gets this working, post back.
bhaveshp is offline   Reply With Quote
Old 03-05-2003, 02:36 AM   #13
bluehz
MVP
 
Join Date: Jan 2002
Posts: 1,562
i doubt you will ever get the DSLReports wakeup to work.
bluehz is offline   Reply With Quote
Old 05-04-2003, 07:54 PM   #14
g4macuser
Major Leaguer
 
Join Date: Jul 2002
Posts: 393
i use wake550 which keeps list of connect addresses. is there a terminal command or and applescript that i could use for waking? i have no problems using the method that i am using but i want to let a friend who is very ( and i stress very ) computer illiterate. i want to allow him to access my itunes library. i made an applescript for that. however the computer goes to sleep so i need him to be able to wake it up first but in a simple manner.
__________________
Quicksilver G4/933, 1.5GB RAM, 10.5.x, Graphite AGP G4/450 640GB RAM, 10.4.x
MacBook Pro Core 2 Dual/2.33, 2GB RAM, 10.5.x, MacBook Core 2 Dual/2.16, 1GB RAM, 10.5.x
g4macuser is offline   Reply With Quote
Old 05-04-2003, 07:58 PM   #15
mervTormel
League Commissioner
 
Join Date: Jan 2002
Posts: 5,536
maybe some perl...

http://www.macosxhints.com/article.p...20220095929695
__________________
On a clear disk, you can seek forever.
mervTormel is offline   Reply With Quote
Old 05-05-2003, 10:35 AM   #16
Phil St. Romain
Site Admin
 
Join Date: Dec 2001
Location: Wichita, KS
Posts: 2,350
I've been through that Hints exchange and numerous Google links searching for how to wake a sleeping Mac over the Internet and nothing has worked. The app Wake Up recommended above does a great job on a LAN, as do other apps and scripts.

If anyone knows how to do this over the Internet, please let us know.
Phil St. Romain is offline   Reply With Quote
Old 05-05-2003, 11:19 AM   #17
yellow
Moderator
 
Join Date: Jan 2002
Posts: 10,677
FWIW, recently speaking with an Apple Engineer over an unrelated issue, he mentioned that he had no idea what type of "admin access" was actually required to make "Wake on admin access" actually work. We briefly theorized that it was a forward-thinking thing built into older OSs planning for Apple Remote Desktop (Timbuktu is not 'admin' enough to wake a slept machine remotely ).
yellow is offline   Reply With Quote
Old 05-05-2003, 11:47 AM   #18
bluehz
MVP
 
Join Date: Jan 2002
Posts: 1,562
I have tried this over the years several times waking over the internet and it has NEVER worked.... until today... I just woke my iBook and an iMac over cable modem, through router, from a website... here's the trick...

My LAN setup uses numbers in the range 192.168.1.0 to 255 - you may need to adjust numbers below to meet your own LAN. Assuming those numbers...

1. Identify the MAC addresses of your machines
You can easily find it in the Network PrefPane at the bottom of the window. You can also issue the following command in a terminal:

arp <ip address>

and it will return the Mac address of the computer (NIC) in question. For example:

arp 192.168.1.167
returns book.my.lan (192.168.1.167) at 0:45:65:fb:66:26
(note - each digit in the Mac address must be two digits - so in the example above we fill in the missing digits (char 1) with a zero and end up with this Mac address:

004565fb6626

2. Setup EnergySaver PrefPane
Open the Energy Saver PrefPane, click Show Deatils button, then the Options tab and check the box for "Wake for Network Administrative Access"

3. Identify Your Outside IP address
Identify the outside address of your LAN - you can easily find this in the router setup.

4. Setup Port Forwarding on the Router
Most online wake utilities use UDP port 9, so you need to set up your router to forward UDP port 9 to the whole internal LAN - your broadcast address. For me this means port forwarding all udp request on port 9 to 192.168.1.255. Some online wake utilities allow you to choose a port to send the packets on - if you desire - choose another port and open UDP traffic on it appropriately. The secret here is to have the port broadcast the UDP signal on that port to your whole subnet - in my case 192.168.1.255.

5. Test it out
Put the computer on your LAN to sleep then visit one of the online wake utilities. I tried these two:

DSLReports - DID NOT WORK!
http://www.dslreports.com/wakeup

Depicus Wake On Lan - WORKS!
http://www.depicus.com/wake-on-lan/woli.asp

Using the Depicus utility - here's how I did it:

Your Network Cards Mac Address: <MAC address from step 2-NO COLONS>
Your Computers IP Number: <outside IP address determined in step 3 above>
Your Subnet Mask: 255.255.255.255 # see note below
Port Number: 9

My normal subnet mask FOR MY LAN - not the WAN is 255.255.255.0, but you want to make sure and broadcast to the full range so make sure the last digit is 255 also.

I can verify this works using Comcast cable and a Linksys 4 port router. I was able to successfully wake both an iBook 2001 (stock Mac OS X 10.2.5 install and ethernet card) and an iMac 350MHz with stock ethernet card.

If you are having troubles with your IP addressing or subnet numbers - heres a nice little tool for calculating. There are others availble - search for "subnet tool"
http://www.mattjustice.com/subnet/
bluehz is offline   Reply With Quote
Old 05-05-2003, 12:45 PM   #19
bluehz
MVP
 
Join Date: Jan 2002
Posts: 1,562
If you want to get sneaky - you can just create this HTML file on and it will do the same thing - note it is still accessing the Depicus site to perform the action. I tried just encoding the info into the url in hope of creating a bookmark like so:

Code:
http://www.depicus.com/wake-on-lan/woli.asp?MacAddress=XXXXXXXXXXXX&IpNumber=X.X.X.X&SubnetMask=255.255.255.255&PortNumber=9&submit=WakeMeUp
... but that did not seem to work. If anyone has any suggestions for getting this to work that would be great!

Code:
<html>
<head>
	<title>Wake On Wan</title>
</head>
<body>
      <form method="POST" action="http://www.depicus.com/wake-on-lan/woli.asp">
        <table border="0" cellpadding="0" cellspacing="0" width="100%" height="102">
          <tr>
            <td width="33%" height="25" align="right">Your
              Network Cards Mac Address</td>
            <td width="5%" height="25"></td>
            <td width="62%" height="25">
            <input type="text" name="MacAddress" size="20" value="009027a322fe"></td>
          </tr>
          <tr>
            <td width="33%" height="25" align="right">Your
              Computers Ip Number</td>
            <td width="5%" height="25"></td>
            <td width="62%" height="25">
            <input type="text" name="IpNumber" size="20" value="217.204.255.55"></td>
          </tr>
          <tr>
            <td width="33%" height="25" align="right">Your
              Subnet Mask</td>
            <td width="5%" height="25"></td>
            <td width="62%" height="25">
            <input type="text" name="SubnetMask" size="20" value="255.255.255.240"></td>
          </tr>
          <tr>
            <td width="33%" height="27">
              <p align="right">Port Number</td>
            <td width="5%" height="27">
            &nbsp;</td>
            <td width="62%" height="27">
              <input type="text" name="PortNumber" size="20" value="7"></td>
          </tr>
          <tr>
            <td width="33%" height="27">
              <p align="center"></td>
            <td width="5%" height="27">
            </td>
            <td width="62%" height="27">
              <input type="submit" value="Wake On Wan" name="WakeMeUp"></td>
          </tr>
        </table>
        <p align="left"></p>
      </form>
      <p align="left">

</body>
</html>
Obviously if you wanted to you could hard wire in your values that show up as default in the form.
bluehz is offline   Reply With Quote
Old 05-05-2003, 01:16 PM   #20
Phil St. Romain
Site Admin
 
Join Date: Dec 2001
Location: Wichita, KS
Posts: 2,350
Thumbs up thanks

Thanks bluehz! I intend to give this a try tomorrow when I'm on the road.
Phil St. Romain is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 09:32 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.