Mar 14 2011

How to wake-on-lan by Windows Phone

Category: — Duke @ 15:26

Last friday I was at work and a collegue of mine asked me some info, that I know to have on my own home pc.

Unfortunately there was 2 issue: my home pc was shutted down and nobody was at home. So I had no way to remotely log in my machine as it was unpowered.

Therefore today I’ve decided to configure my home network and pc to be remotely turned on, and of course to do this I have to use the Wake-on-Lan protocol.

This is my configuration

ADSL modem-router: LynkSys WAG120N V1.00.12

Motherboard: Asus p7p55d-e premium

Operative system: WIndows 7 Ultimate

Mobile: LG-E900 (Windows Phone 7)

The goal was to turn on the pc by using my Windows Phone. But to achieve this all the 4 pieces above have to cooperate.

WoL protocol is quite simple, basically WoL enabled network card says partially powered even if the pc is shutted down and waits for a so-called “magic packet”. when they intercepts it on the wire they send a particular message to the motherboard, that simulates the pressure of the power button (… ok I’ve made a long story short…)

First of all: you need a motherboard (and/or a network card) that supports the WoL protocol, and you have to configure it correctly to accept the magic packet.

Fortunately the major part of the motherboard today supports WoL, but you have to enable it.

On my Pc I had to do two different things:


Enter the BIOS and then in Power –> APM Configuration I have to turn to ENABLED


Power on PCI Devices and


Power on PCIE Devices.

To tell the true I suppose that only one of these is required, if you discover which one please let me know Sorriso I’m bored to reboot my pc for today Occhiolino

Then on the Power page of the bios you have to turn on DISABLED


EuP Ready. This is Because otherwise the Network card will go to sleep completely when the pc is turned off, and doesn’t waits for the magic packet: see the help text on the right!

At this point your BIOS is ready: save and exit and start Windows 7 in all its glory!

In windows you have to be sure that the network driver is configured to wake up the computer.

So go in Control Panel –> Device Manager


Select the network adapter at which the router is connected to and then


make sure that Wake on Magic Packed is set to Enabled, and that


all these cutie checkboxes in the Power Management section are selected Sorriso

Now also Windows is happy to be waked up by a “phone call”

Let’s do the hardest part now, prepare the switchboard operator (our router) to forward the call to the correct recipient, even if it is sleeping.

This part is quite tricky, mainly because consumer-level modem router doesn’t allows all the cute things that enterprise class devices does, but fortunately there is a workaround.

The problem is that the WoL protocols intended to be broadcasted on a subnet, the magic packet itself contains the MAC address of the device that have to be turned on, but my router disallow (explicitly) to forward broadcast message.

This is because (I’ve discovered) of an important security reason, an attacker could broadcast ping on a large subnet by creating an evil the ping packet which in turn contains as reply address the IP of the target of the attack.

Generating this packet and broadcasting it on a large subnet it is a smart way to have a large number of ping response back, directed to the target, that can possibly saturate the bandwidth causing DoS Sorriso smart and cheap (for the attacker!)

So on consumer router this feature is disabled by default and some router explicitly neglect this possibility.

The workaround is to forward a port to the machine we want to turn on, instead of broadcasting it, the effect is the same and we will have a port dedicated to the powering of a machine.

If we want to turn on different machines, unfortunately we have to create 1 port forward for each machine that needs to be turned on… but if you have 100 pc probably you are not using a consumer level router.. isn’t it?

so let’s see how to set up the Router and the Pc.

first of all let’s assign a static IP to the machine that needs to be turned on (this is necessary to make the port forwarding effective…, but check the notes below for more info)


Set a static IP on it


I’ve set for my pc

And now set up the router.

I’ve a particular IP assignation in my home network the important thing is that the address you assign to the pc you want to be powered up will be static


on my router this means that is static,then I have 49 dynamic ip that DHCP server can assign, then the remaining are static again.

then switch on the “Application and gaming” tab

and add a rule like this


this forwards the port 9000 UPD to my pc IP… Note: some ISP blocks lo ports suck 7 and 9 so if you want to use the port 9 that is usually the standard one for WoL, it may not work… just because your ISP blocks it, then try something higer. My port 9 is blocked and I have to use 9000 Sorriso

One last thing: you need your router IP to be reachable… I have a dynamic IP assigned by my ISP therefore I use DynDNS to have a way to always reach my router


The DynDNS service is free if you are happy with a third level domain name. or you can pay it if you want a full-fledged second level domain name (I’ve both but for the router I use the third level one)

At this point also your router is configured and you can always reach it from everywhere using the domain name you have choose!

Now take your Windows Phone in your hands: go to the market place and search an app called “Wake-On-Lan”

This app doesn’t looks very nice but works well! so take it, it cost just 0.99 I’ve bought it without thinking too much.

Start the app and then configure it: it’s very easy

you just have 5 fields

  • Title: a friendly name you want to use to identify the machine you want to turn on
  • Host Name: use the Host Name you have configured in your router Dynamic DNS page, or the static ip of your connection, if you have one (in my case
  • MAC address: the physical address of the network adapter connected to the router on the PC you want to turn on, you can discover it by typing “ipconfig /all” from a command prompt on the machine that needs to me waked up (be carefull to look at the correct network adapter!) I’ve entered my mac address in the format X1:XZ:2Y:34:56:WK so I’ve used colon symbol, and it works!
  • subnet mask: for me is, just use the subnet mask of the LAN where the machine that you want to wake is.
  • Port: the port we have forwarded: 9000 for my example.

if you want you can save this set up so you have to not re-enter all these data every time.

And now it is done!

You can now test the set up: there is a very handy program to do the test, you can find it on depicus together with other dozen of wonderful resources and docs about WoL.

just run it and configure init the port you have forwared (9000 for me) and press start.

Then from the Windows Phone App send the magic packet: if something appears on the screen, then everything is configured correctly (remember to enable the windows firewall to allow the monitor app to access the network for listening a port…)!

If it doesn’t work, probably the port you have choose is blocked by your ISP: choose another one (and reconfigure the port forward on the router accordingly.. and update the WP7 app too!)

One the monitor works it is time to make a real test! turn of your pc and then send the magic packet! it should wake up Sorriso Mine does, and I’m very happy with it!


I’ve not understood well how the port forwarding works: I’ll try to explain me better.

If the pc is shouted down the OS is not running, therefore there is no IP stack listening the wire… therefore no IP address… then why we need to forward to an IP address?

I’ve tried to forward the port to a non-existing address, as I’ve thought that the message pass on the wire anyway and the NIC will pick it pup if it sees the magic packet with its MAC in it.. but it doesn’t work in this way, it could work in this way if your router support subnet message broadcasting.

as mine does I have to forward it to an IP. it is still unclear to me why it works only if I forward the message to the correct IP, even if no IP stack listening that address is running… I suppose the router remembers the last mac associated to that IP, but I’m not certain of it, but probably this is the answer. so be sure that the router have seen that IP associated to that MAC at least one time (you have to configure the parts when they are already connected together, not offline!)

Enjoy your WoL!

UPDATE 07 Nov 2015:

some months ago i've updated to windows 10, it's turn out that WOL doesn't work anymore. That's not an issue with the above mentioned procedure: it is the default Microsoft driver for my realtek NIC that'doesn't support WOL correctly

the solution is easy, just to install the last version from the realtek site

even if my NIC is a "Dual Gigabit LAN controllers Realtek 8112L/8110SC Gigabit LAN, that doesn't appear on the vendor driver page download list it just download it and install, to me it worked great, the installation went successfully and everything returned to work!

Just a funny thing, now the LED on the NIC port turns off when the pc is shutted down, ut the magic packet is able to turn it on anyway! :) YAY!


garcinia cambogia where to buy the fruit garcinia cambogia where to buy the fruit says:

Thanks for sharing such a pleasant opinion, paragraph is pleasant, thats why i have read it entirely

Look at my website  garcinia cambogia where to buy the fruit -

garcinia cambogia reviews dr Oz garcinia cambogia reviews dr Oz says:

Hey There. I found your blog using msn. This is a really well written article. I will be sure to bookmark it and come back to read more of your useful information. Thanks for the post. I'll certainly return.

Here is my web site;  garcinia cambogia reviews dr Oz -

pure garcinia cambogia pure garcinia cambogia says:

After I originally left a comment I seem to have clicked on the -Notify me when new comments are added- checkbox and from now on whenever a comment is added I get four emails with the exact same comment. Is there an easy method you can remove me from that service? Thank you!

Also visit my web blog ::  pure garcinia cambogia -

garcinia cambogia benefits garcinia cambogia benefits says:

It's a pity you don't have a donate button! I'd certainly donate to this outstanding blog! I guess for now i'll settle for book-marking and adding your RSS feed to my Google account. I look forward to fresh updates and will talk about this site with my Facebook group. Chat soon!

my blog:  garcinia cambogia benefits -

garcinia cambogia weight loss garcinia cambogia weight loss says:

What's up, for all time i used to check web site posts here in the early hours in the daylight, as i love to learn more and more.

Feel free to surf to my web site  garcinia cambogia weight loss -

Garcinia cambogia weight loss Garcinia cambogia weight loss says:

Hmm is anyone else experiencing problems with the images on this blog loading? I'm trying to figure out if its a problem on my end or if it's the blog. Any feed-back would be greatly appreciated.

my website:  Garcinia cambogia weight loss -

garcinia Cambogia weight loss garcinia Cambogia weight loss says:

I’m not that much of a online reader to be honest but your blogs really nice, keep it up! I'll go ahead and bookmark your website to come back later. All the best

My blog post;  garcinia Cambogia weight loss -

Garcinia Cambogia Garcinia Cambogia says:

I just couldn't leave your site prior to suggesting that I actually enjoyed the usual info an individual provide in your visitors? Is going to be again continuously to inspect new posts

Here is my page;  Garcinia Cambogia -

garcinia cambogia garcinia cambogia says:

Hey there, I think your site might be having browser compatibility issues. When I look at your blog site in Chrome, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, wonderful blog!

my blog -  garcinia cambogia -

garcinia cambogia sprouts garcinia cambogia sprouts says:

This is a topic that's close to my heart... Thank you! Exactly where are your contact details though?

Stop by my web site ::  garcinia cambogia sprouts -

garcinia cambogia garcinia cambogia says:

Wow, marvelous blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your web site is fantastic, let alone the content!

Here is my web blog  garcinia cambogia -

Garcinia Cambogia Garcinia Cambogia says:

What you posted made a great deal of sense. But, what about this? what if you added a little information? I am not suggesting your information isn't solid., however what if you added something that makes people desire more? I mean How to wake-on-lan by Windows Phone is a little plain. You should look at Yahoo's home page and note how they write post titles to grab viewers to open the links. You might try adding a video or a related picture or two to get people excited about everything've got to say. Just my opinion, it could bring your blog a little bit more interesting.

Also visit my web site  Garcinia Cambogia -

pure garcinia cambogia pure garcinia cambogia says:

Valuable information. Lucky me I discovered your site accidentally, and I am stunned why this accident didn't happened earlier! I bookmarked it.

My webpage -  pure garcinia cambogia -

garcinia cambogia extract garcinia cambogia extract says:

When some one searches for his essential thing, thus he/she wishes to be available that in detail, so that thing is maintained over here.

my homepage:  garcinia cambogia extract -

garcinia cambogia weight loss garcinia cambogia weight loss says:

Hello, Neat post. There's an issue along with your site in internet explorer, may test this? IE nonetheless is the market chief and a good component of other folks will leave out your excellent writing due to this problem.

Take a look at my site  garcinia cambogia weight loss -

pure Garcinia cambogia extract pure Garcinia cambogia extract says:

You ought to take part in a contest for one of the highest quality blogs on the internet. I am going to highly recommend this site!

My blog ...  pure Garcinia cambogia extract -

Garcinia Cambogia Garcinia Cambogia says:

Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You obviously know what youre talking about, why waste your intelligence on just posting videos to your blog when you could be giving us something enlightening to read?

My webpage ::  Garcinia Cambogia -

Garcinia Cambogia Garcinia Cambogia says:

I think that everything composed made a great deal of sense. However, what about this? what if you wrote a catchier post title? I mean, I don't wish to tell you how to run your blog, but what if you added a title to possibly grab folk's attention? I mean How to wake-on-lan by Windows Phone is a little plain. You should peek at Yahoo's front page and see how they create article titles to get people to open the links. You might add a related video or a picture or two to grab readers excited about everything've got to say. In my opinion, it would make your blog a little bit more interesting.

my weblog ...  Garcinia Cambogia -

garcinia cambogia weight loss garcinia cambogia weight loss says:

Having read this I thought it was rather enlightening. I appreciate you spending some time and effort to put this article together. I once again find myself spending way too much time both reading and leaving comments. But so what, it was still worthwhile!

my web site;  garcinia cambogia weight loss -

garcinia cambogia extract 1500 mg garcinia cambogia extract 1500 mg says:

bookmarked!!, I really like your website!

My page  garcinia cambogia extract 1500 mg -

buy youtube views cheap buy youtube views cheap says:

Hello there! Quick question that's totally off topic. Do you know how to make your site mobile friendly? My site looks weird when browsing from my iphone4. I'm trying to find a theme or plugin that might be able to fix this problem. If you have any suggestions, please share. Thanks! Have you quietly wondered how to  buy youtube views cheap -  on youtube?
buy youtube views cheap -  assist in boosting consumer bottom, search engine rankings, and so on

youtube views youtube views says:

If some one wants to be updated with most recent technologies afterward he must be pay a quick visit this web page and be up to date everyday.  youtube views -  without having giving your own pass word or maybe following others.
Perhaps you have silently pondered how you can  youtube views -  about youtube?

buying instagram followers buying instagram followers says:

Hello there! This blog post couldn't be written much better! Reading through this article reminds me of my previous roommate! He continually kept preaching about this. I most certainly will send this information to him. Pretty sure he'll have a very good read. Many thanks for sharing!  buying instagram followers -  with out providing your own personal password or pursuing other individuals.
If you need to  buying instagram followers -  make sure you keep the instagram profile updated.
buying instagram followers -  for instagram affiliate marketing

how to get youtube views how to get youtube views says:

Hello i am kavin, its my first time to commenting anywhere, when i read this article i thought i could also create comment due to this sensible article. Attract more Traffic by means of  how to get youtube views -  on your Account efficient technique.
how to get youtube views -  with youtube Protected and straightforward in the major youtube endorsements lending institution.

buying instagram followers buying instagram followers says:

I couldn't refrain from commenting. Exceptionally well written!  buying instagram followers -  will probably considerably improve ad�quation and authority.
buying instagram followers -  assist in boosting customer base, website positioning, and so on
If you would like  buying instagram followers -  for your instagram profile, there are lots of quite effective methods.

26. says:

I all the time used to read paragraph in news papers but now as I am a user of web thus from now I am using net for articles or reviews, thanks to web. Do you have softly thought about tips on how to -  in instagram?
the way to get more enjoys in instagram, you always can certainly -

buy youtube likes buy youtube likes says:

Link exchange is nothing else however it is simply placing the other person's blog link on your page at proper place and other person will also do same in support of you. Customers can  buy youtube likes -  through dozens of affordable services.
you always may  buy youtube likes -  by reputable suppliers for less and safeguarded
buy youtube likes -  about youtube Secure and simple from The largest youtube views provider.

buy youtube subscribers buy youtube subscribers says:

I'm not sure why but this blog is loading incredibly slow for me. Is anyone else having this problem or is it a issue on my end? I'll check back later and see if the problem still exists.  buy youtube subscribers -  it will be an exceptionally clever financial commitment for ones business.
buy youtube subscribers -  and also increase your societal occurrence.

buy youtube likes buy youtube likes says:

My partner and I stumbled over here  different web page and thought I may as well check things out. I like what I see so i am just following you. Look forward to exploring your web page for a second time. youtube report,  buy youtube likes - , have more Enthusiasts with youtube
You are able to  buy youtube likes -  by many retailers from very affordable charges.

Add comment

  Country flag

  • Comment
  • Preview