Access Your Computer Anytime and Save Energy with Wake-on-LAN
Posted by Adam Pash at 4:00 AM on January 25, 2008
You want access to your home computer wherever you are, whatever you're doing, whether that's via a remote desktop connection, SSH, FTP, web interface, or any other remote access you've set up. The catch is, you don't like throwing money away to an always-on system. Luckily you can have your digital cake and eat it, too, and today I'll show you how to boot and shut down your system remotely so that it's ready for you when you need it and it's not wasting energy when you don't.
The cornerstone of this setup is a feature available to almost all newer computers known as Wake-on-LAN (or WOL), which—as the name suggests—turns on your PC through your local network. Wake-on-LAN is a breeze to set up and use on your local network, and with a little legwork you can set it up so you can wake your computer away from your home network, as well.
First I'll show you how to enable Wake-on-LAN on your computer, starting with enabling the feature in the BIOS and finishing by choosing the correct system settings. Then I'll show you several methods you can use to wake your computer using this feature, from waking your computer through your browser to different applications made specifically for this purpose.
NOTE: Wake-on-LAN only works with wired network connections.
Set Up Wake-on-LAN in Your BIOS and Operating System
The Wake-on-LAN feature can work in a couple of ways. First, it can boot your system from a completely shutdown state. Second, Wake-on-LAN can restore your system from a hybernated (Windows) or sleeping state (Mac). If you're working in Windows, you may need to tweak your BIOS (the firmware your computer's motherboard runs before it boots your operating system) before you start using Wake-on-LAN. Once your BIOS is set, you need to find and adjust a few system settings to allow you to wake up your computer using the Wake-on-LAN feature.Enable Wake-on-LAN in Your BIOS
To access your BIOS, restart your computer and press and hold the Delete key (or whatever key your BIOS prompts you to hold) to enter the BIOS setup. Once you're in the BIOS, head to the Power management section and look for a Wake-on-LAN setting. If you find one, go ahead and make sure it's enabled, then save and exit your BIOS and start up your computer. Not all BIOS will have a straight-up Wake-on-LAN option, and on some boards you may have to enable a "Power On By PCI Devices" setting. It varies from board to board, so a little trial and error may be in order.
Now you're ready to enable WOL in your operating system.
Enable Wake-on-LAN in Windows
To enable Wake-on-LAN in Windows, right-click My Computer (or Computer in Vista), select Properties, then click on Device Manager (in XP that's in the Hardware tab). Find your network card in the hardware list, right-click it and click Properties again. First go to the Power Management tab and tick the checkbox next to Allow this device to wake the computer.
Now head to the Advanced tab, which is full of options for your network adapter. We're concerned with two options here. The first is the Wake From Shutdown entry near the end of the list. Scroll down to it and change the value to On. The next setting I tweaked was Wake-Up Capabilities (right below Wake From Shutdown), setting the value to Magic Packet. Hit OK and everything should be set. You're ready to use the Wake-on-LAN feature using one of the methods described below.
I also had to update the drivers for my network adapter through the Device Manager for it to work, so for good measure you might want to do the same (right-click your network card and select Update drivers and let it download the latest from the internet).
Enable Wake-on-LAN in OS X
To enable Wake-on-LAN for you Mac, open the Energy Saver Preference pane, click Options, and then tick the Wake for Ethernet network administrator access checkbox. That's all there is to it.
Methods and Applications for Waking Your Computer with WOL
Now that you've enabled Wake-on-LAN in both your BIOS (if necessary) and you're operating system, how do we go about actually waking up your computer? There are actually a number of methods for doing so, from issuing the wake command using your router to apps made specifically for this process. I'll highlight a few of these methods below.Wake Your Computer from Anywhere with Your Web Browser
The easiest way to issue a Wake-on-LAN command from outside your local network is through your web browser, and the absolutely simplest way to do that is through your router.If you've followed either of our methods for turning your cheap-o $60 router into a super-charged $600 router with either Tomato, DD-WRT, or even HyperWRT (which we haven't covered), then you've got all the tools you need to turn on your computer from anywhere with an internet connection. Since I'm currently running Tomato, I'll show you how to work it there, but if your router supports Wake-on-LAN, it shouldn't vary much.
First point your browser to the Tomato admin interface and give it your username and password to get started. If you're working outside of your local network, you'll need to either know your external IP address or have set up a free domain with DynDNS. Once you're in, click Tools -> WOL in the sidebar. All of your available devices are listed, and all you have to do to issue one a Wake-on-LAN command is click on it. Simple, right?
If you don't have a router that can handle WOL, you can still wake your computer from your browser using services like Wake On Lan from DSL Reports. In order to issue the Wake-on-LAN command from outside your network through a service like this, you'll first need to set up port forwarding for UDP port 9 to the computer you want to wake up on your local network (here's how that works).
Now you just need to know your external IP address or have assigned a domain name to your home computer, and the MAC address of the computer you want to wake. To find a computer's MAC address in Windows, type ipconfig/all at the command prompt and find the series of 12 letters and numbers next to Physical Address. On a Mac, run the Network Utility application and write down the address next to Hardware Address. Give the webapp your IP address and the MAC address of the PC you want to wake up and voilà—the Wake-on-LAN command should be issued and your computer should start up or wake up straight away.
Wake Your Computer with Freeware
If you don't have a router supported by the Tomato or DD-WRT firmware, there are still other simple tools made to send wake-up commands to your computer. For Windows, one good looking option is called Magic Packet Sender. It can save your WOL profiles so sending that command is quick and simple.
Mac users should check out WakeOnLan, which offers both a regular app and a Dashboard widget. It scans your local network and grabs all of the local devices so it's easy to find one and wake it up.
What To Do Now that Your Computer is On
We've covered tons of remote access possibilities here at Lifehacker, and here are a few of my favourites that you may want to use now that you've started up your computer:
- Remote Control Your Computer with VNC
- Access or Upload Files with your Home FTP Server
- Access Your Home Web Server
- SSH into Your Home Computer
- Remote Control Your BitTorrent Downloads with uTorrent or Transmission
Remotely Shut Down Your Computer
When you're finished accessing your home computer, you still may want to shut it down to save energy when you're finished with it. Fact is, now that you've got remote access, there are lots of different ways you can go about shutting down your computer remotely. If you're connected via SSH, you can shut down your computer from the command line. Likewise, you can easily shut down your computer graphically from a remote desktop or VNC connection the same way you would shut it down locally. If you feel like getting a bit more creative, here's how to shut down Windows with a text message.I haven't exhausted the methods you can use to remotely wake up or shut down your computer, but these should give you a good start. If you have your own preferred methods that I didn't mention above, let's hear your tips in the comments.
Adam Pash is a senior editor for Lifehacker who wants access to his computer any time but doesn't want his electric bill to reflect that. His special feature Hack Attack appears every Friday on Lifehacker.
Tags: feature | hack attack | how to | networking | port forwarding | remote computing | remote control | router

Comments (AU Comments · US Comments)
There are currently no AU comments for this post.
Adam Pash, LH Senior Editor
Posted 10:13 AM 24/1/08
@IamTCM: Not exactly, but yes, I suppose. Your router's admin console is still password protected, but if you're not comfortable with that kind of exposure then it won't be for you.
If you don't want to use your router's WOL features but you still want to use WOL from outside your home network, you'd need to know your IP address and MAC address once you set up the port forwarding.
So I suppose if anyone is able to crack your router password, or anyone knows both your IP address and MAC address, then yes, anyone could turn on your computer.
If those aren't comfortable options, you're probably best off sticking to using WOL on your local network only.
Adam Pash, LH Senior Editor
IamTCM
Posted 9:51 AM 24/1/08
ermmm. So either make your router's admin console accessible to the internet or allow WOL packets directly into your network (aka anyone can turn on your computer).
Meh?
IamTCM
tspatz
Posted 9:41 AM 24/1/08
I've been wanting to use this method for some time now, but my IM habits seem to prevent it. I generally leave IM up and running all day, so it keeps waking up whenever the IM client sends/receives from the server. Anyone have suggestions for a way around this?
tspatz
rothgar
Posted 6:35 AM 25/1/08
www.orb.com can also wake up your computer if you have it set up to do so.
rothgar
mattheinz
Posted 6:35 AM 25/1/08
For large enterprises, software from Verdiem (www.verdiem.com) can do Wake-on-LAN and Wake-on-WAN across entire PC networks - allowing them to cut significantly on power usage but still conduct successful maintenance, patch and upgrade projects overnight.
It's not a household product, at least not yet, but could be a great way for your business to save a lot of money on energy costs, plus cut down considerably on associated carbon emissions.
www.verdiem.com
www.GreenMyPCs.com
mattheinz
NeutronDecker
Posted 6:35 AM 25/1/08
Interesting....is this possible with "Log me In" application?
NeutronDecker
JohnJimenez
Posted 6:35 AM 25/1/08
Does anyone know of portable WOL freeware app? Something that doesn't require the .net framework and stores its settings to the same folder the app is run in? That way we can have the app run from our thumb- / portable hard- drives.
JohnJimenez
CyberCowboy
Posted 1:16 PM 24/1/08
anyone know how to enable WOL within Linux (Kubuntu 7.1 specifically)
CyberCowboy
Burianski
Posted 12:44 PM 24/1/08
@Aeronaut: Thanks for the advice, I'll give that a try. But, what about all of the information regarding BIOS settings? Adding a network card won't change the BIOS at all, so is it likely to work?
Burianski
aeronaut
Posted 12:36 PM 24/1/08
@Burianski: If your older computer automatically turns off the power when you shutdown you may only need a network card with the WOL feature.
aeronaut
swdriver
Posted 12:36 PM 24/1/08
wake-on-wireless-lan? any good or bad cards/ mobos?
swdriver
Capone
Posted 12:27 PM 24/1/08
All of a sudden my computer started turning on by itself. I thought it was a virus or NSA spying or something, but one who knew more than I asked first thing if I'd changed the BIOS and suggested I disable wake-on-lan if I didn't want it.
It's called some weird name in my BIOS--even Compaq tech service didn't know what it was called--so I had to do a little trial and error to turn it of.
Capone
Burianski
Posted 11:51 AM 24/1/08
Is there any way to make this available to older computers? I have two PCs running "always on" at home right now... just in case I want to get into them (which is usually only like once a month). Unfortunately, I don't think they natively support Wake-on-LAN.
Is there some sort of upgrade I can look into (other than replacing the hardware completely)?
Burianski
nadus
Posted 11:14 AM 24/1/08
@JohnJimenez: [www.depicus.com]
nadus
nadus
Posted 11:12 AM 24/1/08
It's my understanding that you can't port forward to the IP address of a computer that's not on. What you would need to do instead is forward port 9 to the broadcast address (generally 192.168.1.255). The magic packet will get sent to the entire network, but only the machine with the matching MAC address will turn on. Unfortunatley many routers don't support a broadcast address (I think most linksys routers do though).
nadus
genghis_schmengis
Posted 9:35 AM 25/1/08
What if your BIOS doesn't have that feature?
genghis_schmengis
aeronaut
Posted 9:35 AM 25/1/08
@Burianski: Check out how old your motherboard is, it may be able to do it.
@reallyseth: Mac instructions are in the post.
aeronaut
reallyseth
Posted 9:35 AM 25/1/08
anyone know how to do this with a mac?
reallyseth
urbanride
Posted 9:35 AM 25/1/08
I mainly use WOL to ensure that my systems stay on 24/7. It is very useful. However before warned rdp/vnc is great as long as you have the bandwidth. It's not really a problem in most places. At the end of last year I was in eastern europe and vnc worked quite well, however now when im in africa, its virtually useless except during the middle of the night. So just be sure you don't 100% rely on it. (fyi my machines are in canada)
urbanride
Oneshot417
Posted 8:00 PM 24/1/08
FYI, only on a wired ethernet, not wireless lol not yet
Oneshot417
JohnJimenez
Posted 6:12 AM 25/1/08
@NADUS
Depicus stores the data to the registry, thus when you move from one machine to another it does not retain your settings. Thank you for the reply though.
JohnJimenez
soldstatic
Posted 6:34 PM 26/1/08
I'm going to start writing a program that uses java/ java script if possible to send the magic packet that performs the wake on lan. my goal is to make it usable on cell phones. THAT would be sweet.
soldstatic
stickboy
Posted 9:34 AM 27/1/08
@JohnJimenez: Use depicus' Wake-on-LAN command-line program then: [www.depicus.com]
and then you can make scripts that carry around with you.
stickboy
JohnJimenez
Posted 2:39 AM 28/1/08
@Stickboy
Ahhh! TY!
JohnJimenez
evoblade2000
Posted 5:35 AM 6/2/08
I have a question. Several of the uses for this seem to be programs that only load in windows after you log in, such as VNC. Do you have to log in to use VNC or am I just way off base?
evoblade2000
leibtek
Posted 5:35 AM 6/2/08
Shutting down a computer via RDP, press Alt+F4 when you're at the desktop.
leibtek
leibtek
Posted 5:35 AM 6/2/08
@Burianski: Your motherboard should have special pins that connect to the NIC's WOL pins. If your motherboard doesn't have any WOL pins, then I'm afraid you can't do it. I've been able to use WOL since '98.
leibtek
getadam
Posted 5:35 AM 6/2/08
Bravo. Incredible detail and usefulness. Adam has done it again. I've always wondered about WOL and here is a useful, easy, multiplatform explanation, handed at a time when energy conservation is more important than ever. Get his man a bloggy!
getadam
Brettuss
Posted 6:20 AM 19/2/08
@EVOBLADE2000 - VNC is usually installed as a service that starts when windows starts and will be available to use before a user had actually logged into the computer. Same goes with Remote Desktop.
Brettuss