Sunday, March 13, 2011

Wake-on-Lan (WOL) for Windows 7 Made Easy!

This was such a nightmare to troubleshoot that I just had to document the process. In my scouring the web, I found many like me experiencing the same woes in setting up their WOL. My whole purpose for doing this was in the interest of saving power. I could put my computer to sleep and still be able to wake it up remotely so I can RDP (Remote Desktop Protocol) into it to access my files while away. [EDIT: I recently found this great article on WoWLAN by Andrew vonNagy which details some of the benefits and downsides to using this technology, and provides a nice cost analysis for an organization case study. Check it out if you're interested in the Wireless WOL.]

There are numerous steps to the process, so I'm first going to outline all of them to give you a nice overview of how to get setup. Henceforth I will refer to the Wake-on-Lan capability as WOL. Here is a zipped file with shortcuts to all the Control Panels you'll need for your convenience. It also contains a script for the WOL utility linked at the end of this article. ;)

COUPLE QUICK NOTES BEFORE WE BEGIN
  • WOL ONLY works for Ethernet (i.e. hard-wired) connections, NOT Wireless!
  • You must use the MAC address of you Ethernet card.
  • Orange bullets relate to enabling WOL feature / services.
  • Green bullets relate to the actual routing of the packets to your computer.
  • Things you'll need to know about your computer: LAN IP, WAN IP, and MAC address. Real quick, hit Windows key + R and type 'cmd' then enter. In the console type 'ipconfig /all' and enter. Look for your "Ethernet card" and write down its IP (i.e. LAN IP) and MAC address. Then head to whatsmyip.org to get your WAN IP and write it down as well.
  • This guide is designed so you don't have to read everything, but only refer to the sections where you're stuck or having issues. The troubleshooting tools at the bottom can help you deduce what is wrong.
OUTLINE
  • Enable WOL in BIOS (from boot)
  • Enable WOL for your Ethernet Card (i.e. NIC)
  • Install Windows Feature "Simple TCPIP services"
  • Start Service "Simple TCP/IP Service" (enables ports 7 & 9)
  • Open UDP for Port 9 in Windows Firewall
  • Forward the port on your Router
  • Testing / Troubleshooting Tools
ENABLE WOL IN BIOS
Because of all the various motherboards out there, I'm not going to go into how to enable WOL in your BIOS, only know that you need to. However, if your BIOS, like mine, is severely limited in settings and no option is available to enable WOL, it might be safe to assume that it will work by default. My HP laptop has many of the BIOS settings locked for warranty purposes, but despite not having the option available, I am still able to use the feature.

ENABLE WOL FOR YOUR ETHERNET CARD (I.E. NIC)
Open "Device Manager" from the control panels or use the link in the zip. Expand "Network Adapters" and find your Ethernet Card. Right-click and open "Properties" then go to the "Advanced" tab. You should see something similar to the following. You want to enable "Wake on Magic Packet" or something similar.



INSTALL WINDOWS FEATURE "SIMPLE TCPIP SERVICES"
Open "Programs and Features" from the control panels or use the link in the zip. Click "Turn Windows features on or off" over on the sidebar. Scroll down and check "Simple TCPIP services" then click OK to install the feature.


START SERVICE "SIMPLE TCP/IP SERVICES"
Open "Services" from the "Administrative Tools" control panels or use the link in the zip. Scroll down to the service for which we just installed the feature. Make sure the service is started by clicking the link in the sidebar. Also ensure that the "Startup Type" is set to "Automatic" so that it will run with Windows.


OPEN UDP FOR PORT 9 IN WINDOWS FIREWALL
Open "Windows Firewall" from the control panels or use the link in the zip. Only UDP is needed, but you can if you with open the port for TCP as well. This is because UDP is a broadcast packet which can always be received by your NIC, whereas TCP requires the computer to be powered up. This can also be set to limit the IPs which can use the port and other security features to make your computer less vulnerable. These are the easiest settings.


FORWARD THE PORT ON YOUR ROUTER
You should see your routers' manual for the details, but here are the basics. Your router IP is almost always 192.168.1.1 or 192.168.0.1. Enter your router IP into the address bar in your web browser (Chrome ftw :P) and login to the admin page. Once there, you will find a section called something like "Advanced." What you are looking for is the "Port Forwarding" section. Make sure you forward port 9 to your LAN IP that we got earlier.

TESTING / TROUBLESHOOTING TOOLS
  • wakeonlan.me - Can auto send you magic packets on a schedule though the schedule is messed up. I had to set the schedule time to EST while keeping the timezone set to my timezone. It's quirky, but it works. When you get the schedule set correctly is should tell you how many minutes before it sends the packets at the top. Alternately you can use another computer on your LAN to test it, but be sure to use your computers' WAN IP address to ensure it actually works from outside your LAN.
  • Wake-on-LAN Packet sniffer v1.1 (direct download) - This nifty little free tool was incredibly useful when paired with the above site to verify that the magic packets were actually getting through to my computer.
  • Wake-on-LAN Utility (direct download) - This is what you'll be using from your remote location to send the magic packet which will wake up your computer. There are other utilities like this available, but I like this one. It's simple. I will also include a batch script in a separate zip which will make your life easier. You'll only have to edit the script to put your computer MAC and WAN IP.
  • whatsmyip.org - The indispensable tool for ensuring that your port is open to the outside world. Will only show open TCP ports. Not UDP as is used for WOL.
READER SUGGESTIONS
  • Android app with excellent reviews called "Wol Wake on Lan Wan" by Brobble, available on Android Market. (thanks to Emad)

Updated 15-Jan-2012
Fixed broken link to download my script pack. Thanks Anonymous chat user :)

94 comments:

  1. Dude, thank you so much for posting this up. I seriously gave up on this a while back, but thanks to you I finally got my WOL working! Kudos!

    ReplyDelete
  2. I had used WOL before but this little post had me up and running in less than 5 minutes. It's the simple things that bring a grin to my life.

    Abe Diaz

    ReplyDelete
  3. Awesome post! In a simple language made the hard tech configurations simple and easy.

    Thank you for the support man!

    Brgrs,

    Paulo F.
    Brazil

    ReplyDelete
  4. Thanks for the post Matthew. Just a few quick notes. A lot of the steps above aren't actually required - the process of -

    1. Install Windows Feature "Simple TCPIP services"
    2. Start Service "Simple TCP/IP Service" (enables ports 7 & 9)
    3. Open UDP for Port 9 in Windows Firewall

    are only just a way of making a hole in the firewall so that the program you use to detect the magic packet will work. It's not actually required to wake the machine. You could just as easily disable the windows firewall while you do the wolsniffer testing and then once you have successfully received a packet, you can switch it back on again. In the real WOL system, the OS doesn't receive the packet (as the machine is switched off), only the network card does.

    One thing that you DO need to do it configure your BIOS so that the PCI-e is made live for WOL packets. You MUST have a network link light on your ethernet even when the PC is switched off. If there is no link, there is no way for the PC to receive the magic packet.

    ReplyDelete
  5. Thanks so much for this tutorial, Matthew. I've got everything working and it's great. I am wondering, however, if there's an easier way to send a the wake command than having to open a CMD panel, and type in the entire MAC address of the target machine (that's a lot of numbers to type every time). I'd also prefer not to schedule sending magic packets on a regular basis (as is suggested with the wakeonlan.me prog above). Is it possible to configure a shortcut icon to send the wake command magic packet to the specified computer?

    ReplyDelete
  6. Found the answer here: http://liveinformant.com/pc/wake-remote-pc-setup-wol/

    To do this, simply take the command you used to Wake your PC and copy it into notepad.

    Example: C:\mc-wol.exe 01:2C:21:E3:D8:5F

    Now save the text document somewhere on your PC.

    Rename the file from .TXT to .BAT. You have now created a simple batch file to execute your Wake On LAN command so that you do not need to retype it each time, or remember your MAC address.

    (I save this file into my C: directory along with the mc-wol.exe program for convenience.)

    You can now double click this file to run the Wake On LAN request for your remote PC. To make it even more convenient I recommend creating a shortcut to this file on the taskbar of your PC.

    If you “right click” on the shortcut and select “Properties” you can use the “Change Icon” button to make the shortcut easy to identify as your WOL button.

    ReplyDelete
  7. @marvy: You're absolutely right, I appreciate your pointing that out. Perhaps I'll update this later to trim the fat a bit more for future readers ;)
    @The Invisible: Yes sir, just as you suggested. I also included a batch file in the script pack I posted for download in the first part of the article. Cheers!

    ReplyDelete
  8. I have done all of above, and still I have big trouble making WOL and wolsniffer work. I get a socket() failed with error 10013 on W7 SP1, but not on WinXP. Any help appreciated.

    ReplyDelete
    Replies
    1. In Win7 and probably Vista you need to run WoLsniffer as Administrator. I had the same problem.

      Delete
  9. I have done everything above and i can receive the packet on my home computer....but it doesn't seem to wake my computer up....what am i doing wrong???

    ReplyDelete
  10. Hi. I use WIndows 7-64 bit. I have strange problem.
    When I set network card settings:
    "Alow the computer to turn off the device to save power"
    Computer is Waking up, but after windows boot, there is no network conections and untill disable and enable network card there is NO conection.

    If I uncheck "Alow the computer to turn off the device to save power".I can't wake computer form internet, but if I wake with pressing key from keyboard, computer is boot normal and Network conection is working.

    I try 2 different network card and 2 different router, so the problem must be in Windows configuration.

    I hope someone can help me

    ReplyDelete
  11. @OlsensHorse & @frogger: Perhaps you could chat with me and I could help you troubleshoot this.
    @Stefan: Well the sure-fire way would be to do a clean reinstall of Windows, which I'd recommend at least once a year anyway, but if you don't like that idea give me a chat and hopefully I can help you troubleshoot it if I have time. You may find this article useful as well. ;) http://www.sevenforums.com/network-sharing/93220-cant-enable-wireless-wol.html

    ReplyDelete
  12. OlsensHorse: Right click on the program and select "Run as Administrator"

    Thank you for this guide! I have followed all of the steps, but I still can't get my WOL to work correctly. Using the sniffer, the computer detects the packets just fine. I have enabled the WOL feature in the BIOS, and on the device properties I made sure that the correct options were correct, yet the computer still doesn't wake up when the magic packet is sent. Looking on the computer itself, I can see the LED's on the network connection on, so I know the card gets power when off. Do you have any other suggestions of things to check?

    ReplyDelete
  13. THANKS for this guide! Brilliant. One note if you are having trouble port forwarding to the internal broadcast address x.x.x.255, it worked on one of my routers but not another (even though it did let me add it). I used some info from here (http://www.dd-wrt.com/wiki/index.php/WOL#Remote_Wake_On_LAN_via_Port_Forwarding). I added a port forward to an UNused IP on my LAN, then added a static ARP entry in router (using telnet) to link that UNused IP to FF:FF:FF:FF:FF:FF and it works from the Internet!!

    ReplyDelete
  14. A followup on my my problem: I got it working, but I had to update my network card drivers. I just let Windows do it for me (In the "driver" tab of the adapter window I clicked "Update Driver"). Once this was done, a few more options became available (such as "WakeOnLAN from PowerOff"). I made sure that was enabled, and now it works!

    Long story short: Update your drivers and try again if you seem to be stuck. My WOL initially would only work from hibernate, but not from shutdown, and now it works all of the time.

    ReplyDelete
  15. hello there!
    one of the best tutorials matthew i must say. thank you! But there is always a but..! i cant make it work. I tried everything.
    Let me say first that i want to wake up my pc over the internet and to be more accurate from apps i have on iphone (iWake, Depicus Wol) over 3G cellular network. On lan everything is fine.
    i followed your guide step by step, i made a hostname at dyndns.org put everything in place correctly but nothing happened.

    question: in this http://www.yougetsignal.com/tools/open-ports/ when i put port number 9 it says closed. is it right?
    question: with this sniffer i dont see my wake up calls but if i leave it open it sniffs other ones. is that right?

    thank you in advance... i havent got much sleep with this thing for nearly 3 days...

    ReplyDelete
  16. Matthew,

    Just another short note to add my thanks for a clear, concise guide on how to implement WOL.

    After I got this quickly up and running on my PC decided to splash out £1.49 for an iPhone app, iNet WOL, which worked straight out of the box thanks to the changes already made.

    Now getting remote access to my shut down PC is never more than a click away.

    Top man!

    ReplyDelete
  17. anyone else has tried to wake up his computer over 3G network???

    ReplyDelete
  18. Brand new Zotac Nano VD01 SFF HTPC and these steps worked like a charm... BUT... specifically with this PC, the WOL work to power it up, but not completely. The system is fully alive, but the screen stays dark ("no signal" changes to a black screen). Only after pushing the mouse the screen snap awake. Unfortunately, it's not just the screen - as Teamviewer, RDP, or VNC all show the computer as off line until the mouse is moved or any key is pressed. My other two PCs work just fine.

    ReplyDelete
  19. Well, i didn't got Port9 in UDP or rest in control panel. But I've a simple way to WOL at my own.
    Go Control Panel\Network and Internet\Network Connections. here's icon Local area connection just right click and 'Disable' it then again 'Enable' it; Lan is awake. {Magic}

    ReplyDelete
  20. In case anyone else can't fine a "Wake on LAN" entry in their network cards advanced settings, my Lenovo has an Intel 82552 10/100 network card, and there is no "Wake on LAN" entry. The correct entry to enable WOL for that card is "Enable PME".

    ReplyDelete
  21. You are very kind to share your knowledge. This guide helped me completely!

    It will only add the following steps (these are basic but necessary if you use the Software Restriction Policies in Windows 7, like me)

    I. To edit the wake.bat file must:
    1. Change its extension to .Txt
    2. Open it with Notepad
    3. Make the necessary changes
    4. Save the changes
    5. Change its extension to .Bat

    II. To run mc-wol.exe must:
    1. Create a folder named WOL (can be any other name)
    2. Copy the files wake.bat (edited) and mc-wol.exe to the WOL folder
    3. Copy or move the WOL folder to C:\Program Files
    4. Double clicking the file wake.bat (edited)

    Just saying, thank you very much and merry christmas!

    ReplyDelete
    Replies
    1. Hi,

      For steps one - three here, you can also right click a BAT file and select "edit". Also Some times all one must do is double click it.

      Delete
  22. Thanks so much for this, I've been struggling for days. It is always good to have clear concise explanation because even if this article does not solve every problem it allows you to know you are at least playing with the right settings.
    Anyway, got it working and would not have managed had it not been for this page.
    tjpearson

    ReplyDelete
  23. Matthew,
    I am running Windows 7 on iMac.
    WOL works fine on OSX withing network. But I can only put it to sleep or shutdown from outside, not wake.
    Anyways, its not doing any of it on Windows 7. I am receiving packets from my iphone app on sniffer from within network.
    One thing I have noticed is that the ethernet light remains on in OSX but it turns off in Windows when the system goes to sleep mode.
    Please help.

    ReplyDelete
  24. Hi Matthew,

    My computer is hard-wired to the Repeater (Asus RT10) with Ethernet cable, but the Repeater is connected to the Router (Linksys) wirelessly. Will Wake on Lan work in this situation?

    Thanks

    ReplyDelete
  25. Wake up On lan works but don't over wan... can't explain why
    - udp port is forwarded port 9 to my internal ip, also a higher port vor expamle 4444 for just in case.
    - windows firewall ports are also open.
    - using (NopIp) for dns name.
    - for waking up my pc i can test it only for now over 3G with mobile app wake up wan/lan.

    i entered in the app the correct mac, dns name and port.... still not working,,


    any ideas?

    thx

    ReplyDelete
    Replies
    1. WoL is not supposed to work on WAN (I assume you mean wireless, not over internet). I don't know the reason, probably a limitation of the hardware.

      Delete
  26. This instruction is so well-written! Thank you for your sharing!

    ReplyDelete
  27. Hello Matthew,
    I agree with all before me, your WOL setup instructions are excellent.

    However, my configuration doesn't work yet even so I confirmed that magic packets are received at the target system. Any suggestions?

    ReplyDelete
  28. Thanks for this tutorial, it helped get me started but I think there is a bug in Windows.

    I've spent more hours than I care to relay on this (including tons of forums, buying a second computer to verify, chatting wit tech support) and still can't get all the kinks worked out. Long story short, wake on LAN doesn't work after a long delay. I can wake it up from sleep or off for short time (up to about an hour) after it enters said state but if it's sleeping or off for longer periods (ie overnight, or during the day while I'm at work) it just won't wake up.

    Here are a few pictures of my settings: https://picasaweb.google.com/117475535779472732458/Dell8300WOL?authuser=0&authkey=Gv1sRgCO-M_I3u8LOGCg

    To minimize possible router issues I connect my Comcast SB5120 cable modem directly to my machine (both are windows 7x64, one home one pro). I'm using the packet sniffer and able to get the magic packets I'm sending from my Android phone over 3G so I know my firewall settings are correct (I've turned off all antivirus as well). When it doesn't wake up after a long period the first thing I do is run the sniffer and it works so I know my IP didn't change.

    I've tried this on a Dell XPS 8300 and an Asus Essentio Desktop (Model: CM6850-01). I've used both the internal NICs and purchased an Intel PCIx NIC. All with the same outcome which leads me to two possible conclusions:

    1. My cable modem is going into a sleep mode (which I doubt cause I don't think it has that ability) which leave one culprit:
    2. Windows 7 setting/bug

    There has to be a green setting or bug or something that turns off the NIC after a few hours. It's really frustrating...is there a way to log incoming packets before it hits my NIC? Thinking a device with two RJ45 ends which just records all incoming traffic and a USB on the end to download the info...

    Any advice would be most appreciated...

    ReplyDelete
    Replies
    1. I had the same issue. I use WOLGUI utility (http://www.depicus.com/wake-on-lan/wake-on-lan-gui.aspx). I found that waking up the local subnet (selecting 'Local Subnet' in 'Send Options') wakes up my machine.

      Delete
  29. thank you so much for taking the time to post this! great work, friend.

    ReplyDelete
  30. Following the article by the letter, but when I get to "OPEN UDP FOR PORT 9 IN WINDOWS FIREWALL", there is no listing for WOL in my list of Inbound Rules. How do I get that to show up in the list?

    ReplyDelete
  31. Thanks Matthew!

    Zoandar, I didn't find one either and so created a new rule - its pretty easy.

    ReplyDelete
  32. Ok for some reason i cant get this work. The only reason im even trying to do this is becuase i have an accesspoint bridged on my motherboard since its has dual nic cards. When the pc goes in to hibernate or sleep etc... the accesspoint goes into a sleep mode as well
    Any help appericated
    Note:That i had to create the WOL service in the firewall manually

    ReplyDelete
  33. I can get this to work just fine over a 4g network or internet but... only for a few minutes after the machine is shut down. After that it can still be awakened through the LAN with a broadcast yet still not over the internet.

    ReplyDelete
  34. I think there would be a problem after the computer has been asleep for some time. When the router gets the packet destined for port 9, mapped to IP 192.168.1.2 (for example), it will broadcast an ARP request on the LAN asking which computer has the IP 192.168.1.2. Because the computer which we want to wake is currently asleep, it can't respond to the ARP, and the router drops the WOL packet.

    It seems that it's working for people, so I may be misunderstanding something, or the routers may be holding on to the ARP caches for a long time. If people are having trouble, you could try to map port 9 to 192.168.1.255, which is the broadcast address (change the first three numbers to match your network). I will do some testing.

    ReplyDelete
    Replies
    1. Yes.

      I was encountering the same problem, and investigated your hypothesis. If I put PC to sleep, then I reboot router, then it can't find ARP for PC! It's obvious on OpenWrt ARP tables.

      Still, I couldn't find yet a succesfull way to forward packets to a broadcast address...

      Would thank some tips ;)

      Delete
  35. Please help ! my wake on lan doesn't work after 5 minutes .
    what the reason for its please reply . i m in need of this

    ReplyDelete
  36. If i do soft-shutdown & send magic packet within 5 minutes than its works & my machine starts, but if i send the magic pack signal after 5 or 6 minutes it wont Work, i dont know why?
    Can you help me please.!!!

    ReplyDelete
    Replies
    1. I had the same exact problem. The issue/solution lies with the router. For my TP-Link router, after a few minutes the binding between the MAC and the IP would be released so when an external WOL magic packet signal was sent to from outside the LAN, the router didnt know where to put it.
      The solution: my router has an "IP & MAC Binding" menu where I can manually bind my computer's IP to its MAC permenently

      Works like a charm!

      Delete
  37. Hi
    i just tried to enable the wol for ethernet card but it doesnt give me any option to enable "wake on magic packet" so does it mean that my ethernet card doesnt support wol service? is there anything that i could do to use this service?

    ReplyDelete
  38. You should get a medal for this... so easy and now it works. Nothing less than perfect.

    Thanks A LOT!!

    ReplyDelete
  39. Your article is by far the clearest most novice friendly I've found. Unable to make sense of actually how to WOL your article made 3 hours of pondering a 2 minute solution. Thanks :)

    ReplyDelete
  40. Will this work with apple TV? For example, PC configured to WOL has iTunes running. PC goes to sleep? Will the Apple TV be able to wake the PC running iTunes that's asleep to access content?

    ReplyDelete
  41. Great Post! Once again thanks for putting it together.

    I also have the issue same as the person mentioned above regarding the ability to wake for only the first few minutes of sleep. Before I go poking around on the motherboard jumpering in a standby voltage(without knowing whether necessary), I thought I would exhaust all else. I ran the sniffer and it sees nothing, no data at all. I am using the Android app that you recommended above.

    My question now is: (A) How did it wake up to begin with, if no magic packet (B) Should I troubleshoot data or the NIC?

    I would much rather know the problem is the NIC voltage before I take the tower apart.

    ReplyDelete
  42. To wake up a PC with WOL setup user need to send a Magic Packet which includes MAC Address,IP Address and Port to wake the machine up.

    Updates on windows 7

    ReplyDelete
  43. I've been working on WOL for the last few days and am able to wake my computer from sleep and off remotely (internet). However, it only works for about 2 minutes after going to sleep or being turned off as experienced by some. I also tried to forward the port to x.x.x.255 (broadcast IP), but my router wouldn't let me to do it (invalid address). Is my problem related to router settings or my NIC?

    Thanks

    ReplyDelete
  44. Trying to get this to work, it works with Sleep state, but not with Soft-Off, my mainboard is an Asus P8H67 (Up-to-date), and it does not seem to have a WOL setting. Specs state though that it has WOL by PME ability, which confuses me. The computer is connected wired to the modem and uses the onboard LAN port.

    ReplyDelete
    Replies
    1. Oh, works now, I enabled Wake on PCI, Wake on PCIe and Wake on Ring in my BIOS, think it is the latter one that makes it work as I read it was normally used for Dial-up... Which is weird, as this is a modern mainboard. :o

      Delete
  45. It was mentioned that WOL only works for wired network connections, and not wireless. By saying this I think the poster just means that the resource you're trying to wake can't be wireless... since the WiFi card's radio wouldn't be turned on and broadcasting while in standby to be able to receive the WOL request. However you CAN wake a wired computer via just about any wireless device whether it be another windows machine, or any other Android or iOS device. Not to threaten anyone's intelligence here, I'm sure most know this. Just pointing it out in case!

    ReplyDelete
    Replies
    1. Thanks a lot for you explanation of trying to wake a wireless device.

      Delete
  46. Thanks a LOT for this info!!

    ReplyDelete
  47. I wish I'd found this article about 2 hours ago. Could have saved myself a lot of time.

    ReplyDelete
  48. Mathew.

    Thanks for this extensive guide, it is exactly what I needed. My application was slightly different than yours. I have quite an extensive Windows local network sharing setup. This is based around Windows 7 being used as a NAS type system and some extra programs/utilities for DNLA/UPnP and iTunes for sharing my movies and music to IOS devices.

    Like you, I needed a system that would be as green as possible and be able to use minimum power when not in use and wake up without any fuss.

    Out of interest for such things, you may want to consider looking at the Dell Mini 9 or similar, as the data controller. This low powered computer is perfect for at least my requirements. It has very low power consumption when in full use and next to nothing when idle. It only has a 1.6GHz CPU and 8GB SSD with 1GB RAM. But for my use at least, it is well enough for my serving purposes. I find it better than most expensive dedicated NAS boxes, when used with a small Windows 7 footprint. The SSD is tiny, but is great with the small OS footprint and the few apps that I need it to run. Plus it has keyboard, trackpad and monitor, for when you need to do anything with it. It only has a 100Mbit lan interface, but this is fine for my serving purposes as my served content's bandwidth is less than the bus speed of 100Mbit LAN and USB for the drives.

    Again, thank you for taking the time and for unselfishly sharing your efforts and hard learned lessons.

    Dave.

    ReplyDelete
  49. Thanks so much. Got it working eventually. A useful old mac app is WakeOnMac. Only catch was it sends the packet to UDP port 7 rather than 9 I was using with an android app.

    ReplyDelete
  50. A very useful resource, thanks.

    One comment I would make is that mc-wol doesn't appear to work from a remote computer over the internet - the client appears to try and send the packet to an external IP (triggers firewall log) but doesn't send it (confirmed by wol-sniffer on host). However this does work on a computer on the local network as long as either no IP address is specified (!) or the packet is addressed to the broadcast address i.e. nnn.nnn.nnn.255 where nnn.nnn.nnn is the subnet the host is on. Directly addressing the host IP didn't work either.

    In regards to waking a computer remotely over the internet I found a utility "WOL Magic packet sender" that works very nicely (search for Wolsetup15.msi).

    There are websites that will send the packets for you too and I've no problems using WOL apps on android either.

    ReplyDelete
  51. "WOL ONLY works for Ethernet (i.e. hard-wired) connections, NOT Wireless!" OK, well this saved me about two hours of frustration then!

    ReplyDelete
  52. In addition to turning on support for wake-on-lan in the BIOS, I had to make another BIOS change.

    In the BIOS, under "Power Management, I set "Deep Sleep Control" to disabled.

    That allowed the NIC to stay on and show a link light even when the PC was off.

    ReplyDelete
  53. thank you so much for posting this.thanks to you I finally got my HTPC working the way i wanted.

    ReplyDelete
  54. Well written and accurate. Saved me a lot of time. Thanks much!

    ReplyDelete
  55. Hi

    First of all thanks for a great guide, unfortunately for me WOL from internet is not working what ever I try. It works perfectly from my local network, LAN i mean, but from internet it simply does not. I have done every single step exactly fromt he above guide, including port fw, and port fw is not something new to me I access lots of my NAS features from internet using port fw. I dont know for some bloody reason this is not working. PLEASE PLEASE PLEASE ASSIST.

    ReplyDelete
    Replies
    1. Sammy, your post is a bit dated, but if you still haven't gotten WOL to work, have you tried manually adding an entry in the ARP table of your router? I've been trying for a long time to get WOL to work with Win7 64 and a FiOS MI424WR-GEN3I router (firmware version 40.21.10.3) and I had tried everything. The machine would wake up if it were off for less than 15-30 secs, after that, nothing. I finally read a forum that said those routers (and possibly others) flush their ARP tables after a connection is idle for a certain period of time. The way I got WOL to work is to set up a static ip (on the router as well as in Windows) and then telnet into the router and manually add the ARP entry for that IP/MAC pair. Hope this helps anyone else who might be having this problem.

      This link contains info that I used, albeit not verbatim since I did not use the broadcast approach it suggests:

      http://codehacienda.wordpress.com/2011/03/01/enable-wake-on-lan-wol-with-the-verizon-actiontec-router-mi424wr/

      Delete
  56. Hi,
    As Sammy,
    First of all thanks for a great guide.
    My problem is a little different. The system worked on two PCs I have oversees and that I control with teamviewer.
    Problem is that it worked as a breeze for 4-5 shots in a row on both remote PCs and dead after...
    No way to get it back. All procedures here suggested have been completed.
    If one of the remote PCs in awake and that I control it from the US, I allways can turn on the other one over thee local network. No problemo...
    Thanks for any light.
    Regards.
    -= Guy =-

    ReplyDelete
  57. Grrrrrrreat post!.. after babbling, grooving and grouching with the SO SIMPLE WoL, at last i was able to make it work thanks to your advices... thanks a lot!..

    ReplyDelete
  58. This guide has been a great help setting up my server's WoL despite me being an pc amateur/enthousiast. Thanks alot man!

    ReplyDelete
  59. I had been trying to enable Wake on Wireless LAN on Windows 7/8, as mentioned by Microsoft http://technet.microsoft.com/en-us/library/ee851581(v=ws.10).aspx ...But completely struck up, Procedure illustrated does not work.. Any help

    ReplyDelete
  60. I have a Dell OptiPlex 980 with the on-board Intel 82578DM NIC and was having problems waking it after I installed windows 7 x64. (WOL worked with windows 98 so I knew I had my bios set up correctly). I could also wake the system if I just pulled the plug and then plugged it back in or if I was in the BIOS then pressed the power button. It would not wake if I shut down the system normally.
    The thing that fixed it for me was installing new Intel NIC driver, I then had the option under power management of "Wake on Magic Packet from power off state" this setting was missing from the NIC driver that installed automatically. After enabling this setting WOL works great.

    ReplyDelete
  61. I have Intel 7260 WiFi adapter and WoWOLAN works only in S3 state. Is WoWLAN supports waking up from power off (S5) state?

    ReplyDelete
  62. Great article. I spent a morning beating myself up trying to get my Xperia to wake my PC up. Even installed WireShark to examine the packets. This article did the job in 10 minutes and taught me a few things on the way. Many thanks.

    ReplyDelete
  63. Amazing write-up - Crisp & yet detailed! A benchmark on how things can be explained and made easy :)

    ReplyDelete
  64. which server ip number i have to put on the Port Forwarding?

    ReplyDelete
  65. Hey man, I just launched an Android App to send a WOL messages, it is open source and is available on Play Store, can I link your site on Help menu?
    https://play.google.com/store/apps/details?id=com.pozzo.wakeonlan

    ReplyDelete
  66. Matthew you're the KING. Looks like it works now! I have like so many others given up on this in the past because no one explained like you did.
    Hats off to you Matthew!

    ReplyDelete
  67. Thanks Matthew. As you suggested, I didn't need to configure a few things: BIOS, Ethernet Adapter or Firewall. I just had to install and run Simple TCPIP services.
    However, I didn't realise I had to download mc-wol.exe (http://www.matcode.com/wol.htm). Figured that out from above comments.
    I too had previously given up on this, but glad I re-visited this and found your page!
    Thanks again,
    Matthew

    ReplyDelete
  68. Hey thanks for sharing Wonderful blog i like it this post for shairing this post please visit this site http://allantivirussupport.com/

    ReplyDelete
    Replies
    1. Online HP Laptop info in Pakistan | Hplaptop.co


      Online HP laptop info site - hplaptop.co learn about HP printers, laptops, computers, servers, storage, networking, software, enterprise solutions in Pakistan

      laptop computer repair

      hplaptop.co

      HP Elite-book 820 G1 Core i5-4200U Laptop Price in Pakistan

      dell laptop computer costs

      pink laptop computer

      Delete
  69. > Start Service "Simple TCP/IP Service" (enables ports 7 & 9)
    Man, that was a remedy, thx so much

    ReplyDelete
  70. Hi,
    Great guide! I followed all the steps, but unfortunately it was not enough to make it work.
    I have a dual boot Pc with windows seven and ubuntu 14.04.
    The WOL was working when I shutdown my pc from ubuntu but not from Windows seven. So, it confirm me the BIOS settings was OK.
    After trying lot of settings and searching solution on the Internet, I read a message about NVIDIA network card where someone recommend to update the network driver from nvidia website (the bad version I previously used was a suggested update from windows update :-/ ).
    Finally, I've downloaded the latest version from NVIDIA website and installed it...And now, it works!

    So, if finally it's not working for you, i suggest you to update your network card driver.

    ReplyDelete
  71. This guide was working fine for me.. wol works perfect when sending a magic package!
    but I would like to wake my windows when entering a networkdrive... do I have to sens also a package? or does it wake up on network activity? no matter what I try windows keeps suspending.. until I send a package...

    ReplyDelete
  72. Thanks for this guide. Helped me a lot. But what about security risks?

    ReplyDelete
  73. ok so packets received from over wifi are waking up pc from sleep but those over 3g don't... any ideas?

    ReplyDelete
  74. If you need windows 7 product key,you can go to www.vanskeys.com to got. My key bought here. It's working great and cost me a little money.

    ReplyDelete
  75. This comment has been removed by the author.

    ReplyDelete
  76. Online HP Laptop info in Pakistan | Hplaptop.co


    Online HP laptop info site - hplaptop.co learn about HP printers, laptops, computers, servers, storage, networking, software, enterprise solutions in Pakistan

    laptop computer repair

    hplaptop.co

    HP Elite-book 820 G1 Core i5-4200U Laptop Price in Pakistan

    dell laptop computer costs

    pink laptop computer

    ReplyDelete
  77. I would like to share with you my experience, I went to www.cdekey.com to buy a key, to my surprise, their attitude is very good, but the key work is normal, there is very little money I spent, very happy the first purchase and recommend it to you.

    ReplyDelete
  78. Really Nice Information,Thank You Very Much For Sharing.Wordpress Development Company

    ReplyDelete
  79. This short article posted only at the web site is truly good.Tampa's best virus removal service

    ReplyDelete
  80. Hi, Does anyone know how to change the WOL port on a Windows 7 PC? I have done this in the past via regedit however, for the life of me I can't find a reference anywhere online. ie. change the port listening for WOL from 7 or 9 to another number. Thanks for your help - Michael

    ReplyDelete
  81. Its really awesome information . thank you for sharing. Crack Software free Download

    ReplyDelete