Wake on Lan works from LAN but not WAN

4

3

These describe the situation:

  • I believe the packet is being properly forwarded from the WAN to the LAN host, because WoL Magic Packet Sender utility displays a message the packet is received whenever I send from the WAN or LAN.

  • WOL works perfectly from inside the LAN. If I send the packet from
    another LAN computer, then the computer wakes up from a powered off
    state as it should.

  • WoL does not wake the computer from the powered off state when the
    packet is forwarded though the router from the WAN.

Router is a Dlink DIR-625, target host is a Windows 7 x64 computer on a Big Bang Xpower moboard.

And I reiterate: the packet shows it is being received from the WAN with the computer on, but the packet only turns on the computer when the packet originates from inside the LAN.

steampowered

Posted 2012-08-10T18:42:45.690

Reputation: 2 109

Answers

2

You could try going into 'Network and Sharing Center'

click on your connection

Click 'properties' in the dialog box

in the dialog box that pops up, click configure

Untick "only allow a Magic packet to wake the computer"

Click ok

Carl B

Posted 2012-08-10T18:42:45.690

Reputation: 6 430

Intuitively this doesn't seem right, because the computer wakes up form the LAN. Is the packet different after NAT traversal from the WAN? – steampowered – 2012-08-10T19:58:00.933

2This worked! Apparently the packet is changed during NAT traversal, and unchecking the "only allow a Magic packet to wake the computer" in the NIC properties allows WoL to work from the internet. – steampowered – 2012-08-10T20:05:36.803

1For future reference: in @steampowered's case it worked because the NIC is configured to boot the computer in the event of ANY package being received in the interface. Depending of your router configuration (port forwards, etc), you may experience having your computer being started in undesired times. – wtaniguchi – 2012-08-22T20:40:47.243

3

This is a common problem if you your router isn't multicasting the WoL package received by your WAN port.

I tried this before (I was wishing to turn on my computer remotely if I needed to RDC to it from work), and it only worked shortly after I shut down my computer. I can't find the links right now, but this has to do with your router caching the iptables, but after your computer got cleaned out of the cache it wouldn't work anymore.

So, the solution is configure your router to multicast the magic packet, right? Unfortunately, most of commodity routers won't make this possible. You would either need to "hack" your router to make routing static or buy a somewhat expensive new router.

wtaniguchi

Posted 2012-08-10T18:42:45.690

Reputation: 485