Remotely Wake Computer From Sleep – Establish a Remote Connection
Waking a computer from sleep to access remotely
I really enjoy being able to remotely access my home computer while on the go. While I do typically have my laptop with me, my desktop is more powerful, has several applications installed not currently on my laptop, and has access to my home network and file storage. So, I can snag a file I forgot to bring with me, or work on a project remotely.
Unfortunately, I hardly ever utilize this functionality due to one little obstacle: my computer is always asleep.
The fact is, I like to keep my computer asleep.
My main rig is a bit of a power hog and I like to cut down a little on my electricity bill and do my small part for the environment by not needlessly wasting electricity.
If you’re like me you’ve likely encountered this issue as well. Remote access is great, but remotely waking up your PC over a WAN has always posed an issue.
Those days are over.
You can now have your cake and eat it too.
How to Remotely Wake Computer From Sleep and Establish a Remote Connection
In this post I’ll take you step by step on how you can wake up your computer from anywhere and then establish a remote connection.
If you’re a tech aficionado and just want the play-by-play below are the 7 steps you need to accomplish in order to ensure you can wake up and access your PC. If you’re not clear on any of these step I’ll be going through each of them with examples.
- Assign your computer a static IP
- Configure port forwarding in your router to pass Port 9 to your PC’s new static IP
- Turn on WOL (Wake on LAN) in your PC’s BIOS
- Configure your network adapter’s power settings in Windows to allow it to wake the PC
- Set up an external IP DNS solution (if your ISP doesn’t provide you with a static IP)
- Choose a Magic Packet sending solution
- Choose a remote connection solution
That may sound like a lot but its all relatively straight forward and easy to implement.
Lets get started…
Your computer needs to be able to receive a Magic Packet on Port 9 in order to wake up. To do this, your router has to be configured to always forward Magic Packets (on Port 9) to your computer. In order to do this your computer needs to always have the same IP address. If you have a typical home configuration than your router is likely configured with DHCP and is dynamically (randomly) assigning your computer an IP address. That means if you have a couple of devices at your house (which you likely do) your computer’s IP address will change from time to time. This won’t work so we are going to set it so that your PC will always have the same address by setting it to static.
First, you need to determine what your new static address is going to be and in order to do that you’ll first need to take a look at your current IP.
There are a lot of ways to determine your computers IP address so use whichever method you’re comfortable with. If you aren’t sure how follow the steps below:
Right click on your network connection in the bottom right corner and open the Network and Sharing Center. (XP users can alternatively right click on My Network Places and click properties)
Now on the left click Change Adapter Settings
You should now see a list of your network adapters.
If you are hard-wired you will see a LAN adapter, and if you are using wireless you will see a wireless adapter. Choose the appropriate adapter and right-click to select status.
Click the details button…
and you should know see something similar to the below picture:
Take note of the:
- Physical Address
- IPv4 Address
- IPv4 Subnet Mask
- IPv4 Default Gateway
Armed with this information (write it all down) lets close this window, right click on the network adapter again and this time select properties
Now select IPv4
Unless you’ve previously assigned a static IP in the past your settings will look like the picture below:
Go ahead and select Use the following IP address and it will prompt you to enter your new static IP. To determine what your new static IP will be take a look at the information you took down from earlier.
If your old IP was something like: 192.168.1.4 with a subnet mask of 255.255.255.0 ( a very common home configuration) then you will need to keep the first three octets (192.168.1.) the same. The last number can be changed. I recommend setting it higher, for instance 192.168.1.100.
If your old IP was something like 192.168.2.3 then a new static should be 192.168.2.100
Keep the subnet mask the same, and keep the Gateway the same (this is likely the IP address of your router).
Under Use the following DNS server addresses set the first box to the same IP as your Gateway.
When finished you should get something that looks like the following:
(note that your IP configurations may differ from my example)
Click OK, and then click OK again. Your computer will momentarily lose connectivity and then re-establish a new connection with the static IP. To see if it worked click status again under your network adapter and then details and see if the new settings took. You can further verify everything is working well by firing up a web-browser and seeing if you can still access the web. If you can, congratulations! Your computer now has a static IP!
Armed with the new static IP its time to tell the router to always pass Magic Packets on port 9 to your PC. You’ll first need to access your router. This is typically done through a web browser interface. Simply open up a web browser and type in the IP address of the router. If you aren’t sure what your router’s address is, it is most likely the same IP as the Gateway. (alternatively you can check your router’s manual or check with the router’s manufactures website to determine the default router address) If successful you will be presented with a login screen.
Every router is configured differently so you may have to look up in your router’s owner manual or access the manufacture’s website to determine what the login is. Typically its just admin admin or sometimes admin with a blank password.
Once you gain access you’ll be presented with the routers configuration settings. Every router again is slightly different so you’ll need to hunt through the menus until you find the port forwarding section.
The port forwarding section of your router will likely show a list of port forwarding rules. Dependent on your home setup you may have many rules, or none at all. You will need to locate the option in this section for creating a new port forwarding rule. My router is labeled as Add Custom Service but your router may be labeled differently.
Now you will create a new rule that will forward port 9 to the static IP you just created. This will ensure that your router will always send the wakeup request (magic packet) to your computer!
Some (not all) Motherboard BIOS require WOL to be turned on in order to permit the PC to be waken remotely. More modern motherboards with UEFI will likely have this enabled by default but older boards generally do not. I recommend you access your motherboard’s BIOS/UEFI to ensure WOL capabilities are enabled. Access to your BIOS/UEFI varies from manufacturer to manufacturer. After a restart you can try pressing F1, F2, TAB, Del, Esc. If in doubt consult your motherboard’s documentation.
Windows also needs to be setup to allow the network adapter to wake the PC. This will be accomplished through the device manager. You can access the device manager by right-clicking Computer and selecting Manage and then Device Manager on the left. Alternatively you can open a run command (Windows Key+ R) and type devmgmt.msc.
You should know see a list of all your computer’s devices:
Click the arrow next to Network adapters to bring down a list of your computer’s network devices:
Select the appropriate network adapter (LAN/Wireless) and right click to select Properties:
Select the Power Management tab and ensure that Windows will allow the device to wake up the computer with a Magic Packet:
Of all the steps in this How-To this will probably be the trickiest. If you’re fortunate enough to have a static IP you can safely skip this step.
Your Internet Service Provider (ISP) furnishes you with an IP address that allows you to connect to the Net. This is typically associated with your DSL or Cable modem and is sometimes referred to as your external IP. This is the IP that you will send Magic Packets to in order to wake up your PC. The complication arises in that your ISP will change your external IP from time-to-time. Some change it once per month, others on a more frequent basis. When it’s changed, and you aren’t at home, you won’t know where to send the WOL request.
This is solved by setting up an external IP DNS solution that is refreshed on a regular basis. Essentially you create an account with a Dynamic DNS client of your choosing and register an account. You then setup a domain entry like mydomain123.dynamicdns.net, and then enter that account information onto a device inside your home network (typically your router) and every time your external IP address changes, your router sends the updated information to the mydomain123.dynamicdns.net account.
This allows you to not worry about your external IP changing. You can always access your home network via the domain name which is constantly updated.
For a long time DynDNS was the de facto solution as they offered every individual one free domain entry (which is all that most people need). They have since switched to a paid subscription of $30 per year. There are a few DynDNS free service alternative‘s including:
You will need to decide which one is right for you. Once you’ve picked one you’ll need to setup an account with them, register a domain, and then get those settings into your router. Here is a video demo on how to accomplish this for no-ip which seems to be getting some good reviews these days:
You will need to select a Magic Packet sending solution. This is the program that will actually send the “wake up call” to your PC. There are a LOT to choose from. A simple Google search for Magic Packet Sender reveals hundreds of choices. There are even web-based solutions that will send a Magic Packet from a web site. I leave it to you to decide which one is best as they all basically accomplish the same goal.
I prefer to use my phone to wake up my PC. Something about just opening my phone and pressing one button appeals to me but its just a personal preference.
I use an android app WOL Magic packets widget which allows me to wake up my PC from anywhere whether I currently have access to a computer or not!
I simply click Send and my PC comes out of sleep!
Irregardless of which Magic Packet Sender solution you choose you will need the following information:
- MAC Address – This is the Physical Address I told you to write down in Step 1
- IP Address – this is either your external IP if you have a static or the Dynamic Domain address you created in step 5
Now that your computer is configured for remote wake-up you just need to determine how you are going to access it remotely. There are a lot of good solutions that make this possible. Some of them are free, and some of them are paid. Two popular choices right now are:
I prefer TeamViewer as it is completely free for non-commercial use, allows you to connect to your PC from a variety of OS’s (OSX, Windows, Linux) and has mobile device support so you can access your PC from your phone. I’ve used it extensively and it works quite well. Simply download, install, and setup for unattended access.
Here are some directions from the TeamViewer site on how to get it setup.
Alternatively check out this YouTube video demonstrating how to use TeamViewer.