wake on lan

AID: 8355
  • Status: Published

1897 points

  • ByIanTh
  • TypeGeneral
  • Posted on2011-10-20 at 13:39:43
Hi Guys

After a whole weekend getting wake on lan over the internet working, I thought I would share the experience.

Your firewall has to have a port forward for port 9 udp to your local broadcast x.x.x.255 but if that doesnt work, do it to a specific ip address. That's bacause a lot of routers dont allow direct broadcast due to its use in ddos attacks and other attacks.

Also note I had to port forward  7 udp as well.

My router (a draytek 2820) allows broadcast but my friends router (tp-link 1043dn) didn't. That's how I found out about direct broadcast not working on a lot of consumer level routers. Although, I also found out if the tp-link was re-flashed with openwrt or dd-wrt it would work.

If your router is wol capable from telnet or ssh you can do a wol up mac_address command. If the machine at the hardware address is configured for wake on lan it will wake up from sleep or hibernate as a test from the router. So if the magic packets hit the external ip address and port 7 and 9 udp are opened through the firewall wol over the internet will work.

Wake on lan is normally configured through the bios or the external bios if the nic is a pci/pci-e add-in card. If it isn't in the bios in windows go to the properties of the nic and you will find wake on lan settings in there. Some newer wake on lan have a security device called secure on.

The main problem I found is an arp cache error where the machine to be woken is only in the arp cache for 5 or so minutes. So the fix is to add a static arp entry.

On my router it was ip arp add 192.168.0.80 aabbccdd(mac address). That fixed my 192.168.0.80 to wake over the internet from a web site for wake on lan over the internet (the one I used is http://wakeonlan.me/ but there are others and you should check them out first).

A lot of consumer routers need a trick to enable telnet or ssh as its usually disabled for isp's benefit to stop casual users breaking their routers by not knowing enough.

Please make very sure you actually need to do this before you begin and start by checking a few things first. You don't want to accidentally break your router, or, accidentally open up a possible security threat.
Asked On
2011-10-20 at 13:39:43ID8355
Tags

wol

Topic

Miscellaneous Networking

Views
1132

Comments

Add your Comment

Please Sign up or Log in to comment on this article.

Join Experts Exchange Today

Gain Access to all our Tech Resources

Get personalized answers

Ask unlimited questions

Access Proven Solutions

Search 3.2 million solutions

Read In-Depth How-To Guides

1000+ articles, demos, & tips

Watch Step by Step Tutorials

Learn direct from top tech pros

And Much More!

Your complete tech resource

See Plans and Pricing

30-day free trial. Register in 60 seconds.

Loading Advertisement...

Top Misc Networking Experts

  1. giltjr

    142,949

    Master

    0 points yesterday

    Profile
    Rank: Genius
  2. hanccocka

    57,868

    Master

    2,800 points yesterday

    Profile
    Rank: Genius
  3. kevinhsieh

    53,840

    Master

    0 points yesterday

    Profile
    Rank: Genius
  4. keith_alabaster

    49,846

    0 points yesterday

    Profile
    Rank: Genius
  5. Darr247

    46,924

    0 points yesterday

    Profile
    Rank: Genius
  6. pergr

    41,116

    0 points yesterday

    Profile
    Rank: Master
  7. donjohnston

    36,633

    2,000 points yesterday

    Profile
    Rank: Genius
  8. rigan123

    34,141

    0 points yesterday

    Profile
    Rank: Guru
  9. nazsky

    32,574

    0 points yesterday

    Profile
    Rank: Wizard
  10. erniebeek

    31,778

    10 points yesterday

    Profile
    Rank: Genius
  11. ve3ofa

    30,145

    664 points yesterday

    Profile
    Rank: Genius
  12. thinkpads_user

    27,941

    0 points yesterday

    Profile
    Rank: Genius
  13. mattvmotas

    26,898

    0 points yesterday

    Profile
    Rank: Sage
  14. eeRoot

    26,578

    0 points yesterday

    Profile
    Rank: Wizard
  15. fmarshall

    26,541

    0 points yesterday

    Profile
    Rank: Wizard
  16. craigbeck

    26,240

    0 points yesterday

    Profile
    Rank: Sage
  17. TimotiSt

    25,004

    2,000 points yesterday

    Profile
    Rank: Master
  18. fgasimzade

    23,834

    0 points yesterday

    Profile
    Rank: Wizard
  19. RobWill

    23,300

    0 points yesterday

    Profile
    Rank: Savant
  20. arnold

    22,913

    0 points yesterday

    Profile
    Rank: Genius
  21. leew

    21,174

    0 points yesterday

    Profile
    Rank: Savant
  22. Netty

    20,562

    0 points yesterday

    Profile
    Rank: Guru
  23. chakko

    20,000

    0 points yesterday

    Profile
    Rank: Genius
  24. Soulja

    19,800

    0 points yesterday

    Profile
    Rank: Genius
  25. DaveBaldwin

    17,908

    0 points yesterday

    Profile
    Rank: Genius

Hall Of Fame