Remotely Wake Computer From Sleep – Establish a Remote Connection

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.

  1. Assign your computer a static IP
  2. Configure port forwarding in your router to pass Port 9 to your PC’s new static IP
  3. Turn on WOL (Wake on LAN) in your PC’s BIOS
  4. Configure your network adapter’s power settings in Windows to allow it to wake the PC
  5. Set up an external IP DNS solution (if your ISP doesn’t provide you with a static IP)
  6. Choose a Magic Packet sending solution
  7. Choose a remote connection solution

That may sound like a lot but its all relatively straight forward and easy to implement.
Lets get started…

1. Assign your computer a static IP

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)

Windows 7 Network and Sharing Center Selection
Open Network and Sharing Center

Now on the left click Change Adapter Settings

Windows 7 Network and Sharing Center - Change adapter settings
Change adapter settings

You should now see a list of your network adapters.

Windows 7 Network Connections
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.

Windows 7 Network Adapter Status Selection
Network Adapter Status

Click the details button…

Local Area Connection Status
Details selection

and you should know see something similar to the below picture:

Windows 7 Network Connection Details
Network Connection Details

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

Windows 7 Network Adapters - Properties
Properties of Network Adapter

Now select IPv4

Windows 7 Local Area Connection Properties
IPv4 Selection

Unless you’ve previously assigned a static IP in the past your settings will look like the picture below:

Windows 7 TCP/IPv4 Properties
IPv4 Properties Dynamic vs Static

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)

Windows 7 Static IP Assignment - TCP/IPv4 Properties
Static IP Assignment

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!

Windows 7 Network Connection Details
Static IP Assigned

2. Configure port forwarding in your router to pass Port 9 to your PC’s new 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.

Netgear WNDR3700 Authentication Required
Router Logon

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.

Netgear WNDR3700 router manager
Router Management Screen

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.

Netgear WNDR3700 Advanced Router Settings
Advanced Router Settings

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.

Netgear WNDR3700 Port Forwarding / Port Triggering
Port forwarding settings

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!

Netgear WNDR3700 Ports - Custom Services
Port forward settings

3. Turn on WOL (Wake on LAN) in your PC’s BIOS

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.

Bios Wake on LAN
BIOS WOL Enabled

4. Configure your network adapter’s power settings in Windows to allow it to wake the PC

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:

Windows 8 Device Manager
Device Manager

Click the arrow next to Network adapters to bring down a list of your computer’s network devices:

Windows 8 Device Manager - Network adapters
Network adapters

Select the appropriate network adapter (LAN/Wireless) and right click to select Properties:

Windows 8 Device Manager - Network adapters properties
Network adapters properties

Select the Power Management tab and ensure that Windows will allow the device to wake up the computer with a Magic Packet:

Network Connection Properties - Power Management
Power Management

5. Set up an external IP DNS solution (if your ISP doesn’t provide you with a static IP)

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:

6. Choose a Magic Packet sending solution

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!

WOL Magic packets widget - Send Screen
WOL Magic packets widget – Send Screen

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

7. Choose a remote connection solution

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.

3 Comments

  1. I’m not exactly sure how old this post is, but I wanted to comment that it is an excellent guide! You really break every step down and make it easy. I wouldn’t have guessed it was actually this complicated to wake remotely, I was really only looking for a way to avoid going downstairs to wake my PC up every time I want to use it from another device… but that’s just laziness I guess. This will mainly be good for times I am away from the house, and like you I can avoid leaving my power-sucker on all the time.

    Two things I wanted to mention:

    I notice under the ‘Power Management’ step for the NIC settings has the box checked for ‘Allow the computer to turn off this device to save power’. Could that potentially cause any problems with the remote WOL? I imagine it doesn’t apply when the PC is sleeping… and I personally leave that box unchecked anyway since I don’t want the PC turning off the NIC at any time, but I was curious and maybe other readers could be as well.

    Also, the ‘dlinkddns.com’ service is offered by Dyn, and is actually free for D-Link users, which is cool. Great tip there.

Leave a Reply

Your email address will not be published.


*