Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Wake a Mac from a PC and vice versa Network
It took me hours of research to figure this out, so I thought I would share the wealth regarding how to wake from standby/sleep a Mac from a PC, or a PC from a Mac. Please note that this was only tested on the latest versions of Windows XP and Panther on a local Ethernet network. Also note that some computers may or may not be able to do this (your mileage may vary).

Please do your homework in regard to allowing your Mac or PC to be turned on remotely by all the naughty children out there.

Wake a Mac from a PC:
First, get the necessary information from your Mac by first going to System Preferences, then Network. Select your built-in ethernet and click "Configure...". Under the TCP/IP tab, write down your IP Address and Subnet Mask. Click the Ethernet tab and then write down the "Ethernet ID." Your numbers should look similar to the following (hypothetical of course) example:
  • IP: 10.3.52.88
  • Subnet Mask: 255.255.255.0
  • Ethernet ID: 05:0b:95:87:10:3c
In System Preferences, go to "Energy Saver," click on the "Options" tab, and make sure "Wake for Ethernet network administrator access" is selected. Put your Mac to sleep, and take your noted numbers to your PC box. Download the "Wake On Lan" utility. Put the IP Address in the "Internet Address" box, the Subnet Mask in the "Subnet Mask" box, and the Ethernet ID in the "Mac Address" box (remove the colons). Press the button "Wake Me Up," and your Mac should wake up accordingly. Note, you do not have to enter these numbers every time; the little program is smart enough to remember them.

Wake a PC from a Mac:
On your PC, Right-click on "My Computer" on your desktop and click "Manage". Choose "Device Manager" then find "Network adapters" on the list. Click the + and launch your ethernet card properties box. Under the "Power Management" tab, make sure you allow yourself the ability to bring the computer out of standby. (not sure how this is done on your particular card). Close this window. Now go to your "Start" menu and choose "Settings" then "Network Connections" then "Local Area Connection." Click the "Support" tab, then the "Details" button. Write down the "Physical Address." This address will look like the "Ethernet ID" number earlier. Close this window. Put your PC on standby and go to your Mac.

Download the "WakeUp" utility. Add a computer to the list window and put in your PC's name and Physical Address number. Click the "Wake Up" button and your PC should wake up accordingly.

I hope this works for you and helps to make things easier in regard to WOL and WOMP commands.

[robg adds: Two previous hints provided tips for waking sleeping Macs remotely...]
    •    
  • Currently 2.75 / 5
  You rated: 5 / 5 (8 votes cast)
 
[131,313 views]  

Wake a Mac from a PC and vice versa | 20 comments | Create New Account
Click here to return to the 'Wake a Mac from a PC and vice versa' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Wake a Mac form a PC and vice versa
Authored by: maasgarid on Jan 21, '05 12:03:07PM

My iMac G5 is behind a Netgear router at my home. I've forwarded port 9 to the iMac and done everything in this article, but I still cannot get the iMac to wake from sleep remotely. I know this isn't a lot of info to go on, but I'll provide other info if anyone has suggestions. Please help! =)



[ Reply to This | # ]
Wake a Mac form a PC and vice versa
Authored by: goatbar on Jan 21, '05 12:28:55PM

Have you tried waking the computer while it is actually on and running tcpdump? You should see the wakeup packets come in. Then if you do not see them, you need to work on the router.



[ Reply to This | # ]
Wake a Mac form a PC and vice versa
Authored by: mrchucho on Jan 21, '05 01:18:26PM

Unless I'm mistaken, WOL only works on a LAN.



[ Reply to This | # ]
Wake a Mac form a PC and vice versa
Authored by: timhaigh on Jan 21, '05 01:37:18PM
In the thread where this topic started at the apple discussion forums I pointed out that the way to remotely wake a mac from outside your LAN is to ssh into your LAN to an ssh server you leave up 24/7 and then from that server you can issue a CLI command to wake up any sleeping computers on your local network.

Presuming you know how to set up SSH and use the terminal should have no trouble using wake on lan

[ Reply to This | # ]
Wake a Mac form a PC and vice versa
Authored by: schneb on Jan 21, '05 04:47:44PM

WOL = Wake On LAN
WOMP = Wake On Magic Packet



[ Reply to This | # ]
Wake a Mac form a PC and vice versa
Authored by: William McCallum on Jan 21, '05 04:02:46PM

Try forwarding port 9 to the broadcast address of your local network. This ends in 255. So if your local network ips start out 10.0.0., then you would forward port 9 to port 9 on 10.0.0.255

This solved the same problem for me once.



[ Reply to This | # ]
Wake a Mac form a PC and vice versa
Authored by: aardvarko on Jan 26, '05 01:56:58AM

do this, and also make sure you're forwarding UDP



[ Reply to This | # ]
Wake a Mac from a PC on Port 9
Authored by: MiStch on Jan 23, '05 06:11:05AM

The Wake on LAN tool works very well with my DSL-Modem (Zyxel 650ME). All I had to do is forwarding port 9 to my Mac's IP. It looks like: Forwarding port 9 to port 9 on (internal) IP address 192.168.1.2

Important: Make sure that from where you send your wake on LAN command, the firewall must let the command go through! (TCP-Port 9 must be open).
It did not work with other tools like Magic Packet send as it uses the UDP Port 9 instead of TCP. My DSL Modem does NOT forward any UDP commands. So this does not work.



[ Reply to This | # ]
Not on an eMac
Authored by: Red_Winestain on Jan 21, '05 12:26:17PM
Wake On Lan doesn't work for certain eMacs under any version of X, even though there is such an option in the System Preferences.

I have had success waking a Quicksilver G4.

[ Reply to This | # ]

alternative for sending WOL packets
Authored by: xcgr on Jan 21, '05 03:51:32PM
If you just need to send the 'magic packet', an alternative to the Windows program mentioned in the hint is wakeonlan. It's a Perl script, so it should work on just about any platform. I've used it before on a Linux box to wake up an iMac.

[ Reply to This | # ]
Wake a Mac from a PC and vice versa
Authored by: Greedo on Jan 21, '05 04:24:19PM

Note that WOL operates over UDP, not TCP.

So make sure you have port 9 UDP being forwarded, not port 9 TCP.



[ Reply to This | # ]
Wake a PC from a Mac
Authored by: TimBonnici on Jan 21, '05 05:11:32PM
Greedo's tip is the key to getting wake-on-LAN to work across the internet. I have recently set up Wake On LAN on a neighbour's PC so that I can wake up his PC from my powerbook. Both our computers are connected via routers to ADSL connections. The steps are as follows.

1. Ensure, as in the original hint, that the PC will aknowledge and act on the "Magic Packet" that is sent to wake it up.

2. Manually assign the PC an IP address. Note down the MAC address of the PC's Ethernet card at the same time.

3. Choose a port number, any one will do as long as it is not used by another network service. If the PC is running a firewall open this port on the firewall. Ensure that traffic is set to UDP not TCP.

4. Find out what your external IP address is. You can get this by going to WhatIsMyIP.com

5. Set up port forwarding on your router so that any traffic arriving on the port that you just opened is directed to the PC. Again make sure the port traffic is specified as UDP.

6. Use a WakeOnLAN program to send a wake-up packet to the PC as described above.

This becomes really useful if you have Microsoft's excellent Remote Desktop. (Requires Windows XP to be installed on the PC.) Working on a real PC, even over a 512K ADSL connection, is much faster than using Virtual PC and with Remote Desktop any discs inserted into your mac or any volumes mounted become available to the PC.

When you have finished working you can shutdown the PC by opening a DOS prompt and typing "shutdown" without the quotes. Most modern PCs will shutdown completely within 15secs. This doesn't work on all computers. For further info read this.

[ Reply to This | # ]

Online tools
Authored by: pheed on Jan 21, '05 06:38:35PM
If you have internet access there are online tools available for this as well. It will even work through a router too. Make sure you have port forwarding configured appropriately. The beauty of this is that you can wake up a sleeping machine even if you're not on the sam LAN.

DSL Reports

---

E-mail me: moc.cam@deehp

[ Reply to This | # ]

Online tools
Authored by: tsaar on Jan 23, '05 05:42:22AM

You rule!

Ha, I've been looking for ' internet wake on lan gateways ' for ages, never found one...hope this one works!

Thanks,



[ Reply to This | # ]
Wake a Mac from a PC and vice versa
Authored by: bluehz on Jan 21, '05 07:03:02PM

Wrote this a while back - can't remember if I ever posted it though....

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 an external 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 

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: Your Computers IP Number: 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/

One note - Wake On Lan has NO EFFECT on AirPort cards - since they are powered down when the machine is asleep.

[ Reply to This | # ]
Wake a Mac from a PC and vice versa
Authored by: taxi on Jan 21, '05 11:06:00PM

I found some info about this ages ago, and a python script that does this also. Why is a python script particularly useful?

XboxMediaCenter has python, so it's possible to wake up the PC and/or Mac from the Xbox. Useful if you have Music/Movies/Pictures stored on a computer.

Of course, when I get my NSLU2 this will be my home server that stays on all of the time.



[ Reply to This | # ]
Wake a Mac from a PC and vice versa
Authored by: elmimmo on Jan 23, '05 06:59:52PM

Can it power on a Mac too? Many PCs can be turned on with a magic packet using this hints, wether they are suspended or simply off.



[ Reply to This | # ]
Wake a Mac from a PC and vice versa
Authored by: MiStch on Jan 24, '05 12:59:23PM

No, from what I know it cannot. The Mac must be in the sleep mode.



[ Reply to This | # ]
Wake a Mac from a PC and vice versa
Authored by: bukweet on Feb 07, '05 03:08:34PM
I'm having a problem getting remote wake to work thru an Airport Extreme Base Station (AEBS).

I've got my cable modem connected to the WAN port on the AEBS, and a PowerMacG4 connected to the LAN port. Using several LAN utilities, I can wake the G4 over the LAN without problem.

However, this has not been successful when trying to send a wakeup packet over the internet. The AEBS will not allow me to forward the wakeup ports to the subnet broadcast address (x.x.x.255); I can forward only to the LAN IP address of the G4 (10.0.1.2).

Is it necessary to forward to a broadcast address (x.x.x.255)?

Any suggestions as to what's going on here?

TIA,

---
bukweet

[ Reply to This | # ]

Wake a Mac from a PC and vice versa
Authored by: aquarajustin on Sep 09, '05 12:47:13AM

bukweet,

Forward port 9 to 10.0.1.2 on your AEBS. Try http://www.depicus.com/wake-on-lan/woli.asp and for the values, try the following:

Your Network Cards Mac Address: Your G4's (10.0.1.2) MAC address.

Any Computers Ip Number: Your external facing IP, if you don't know it, try http://whatismyip.com

Your Subnet Mask: You need to specify 255.255.255.255. bluehz has the right idea, but the script is actually only sending the magic packet to the single IP address specified in "Any Computers Ip Number" above, it's not broadcasting at all. Once the magic packet hits your AEBS (on port 9), it will route the traffic to your G4.

Any Port Number: 9

Maybe you've fixed it by now, it's been 7 months. Let me know.

--
aquarajustin



[ Reply to This | # ]