Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've ubuntu server on lan with static IP within lan, I use router: DSL-2640B.

For waking I use program called "wolcmd".

From within lan network it is very easy to wake up the machine.

I just issue command:

/Users/usr/Downloads/wolcmd [mac] [lan IP] 9

And server comes online.

From WAN I came up with this trick (but it is long and tedious) and I wonder if there is simpler way to do this!!.

So I ssh into router from WAN and do

arp add [lan IP] [ff:ff:ff:ff:ff:ff]

than I issue command from WAN

/Users/usr/Downloads/wolcmd [mac] [public IP] 9

At this point I ssh back to router, and ping local IP of server... ping goes and server is up.

than I modify arp entry yet once more

arp add [lan IP] [mac]

Only after this last change my server is accessible from WAN.

I'm not a network expert, I discovered this trick simply by trying different options to get my server turn on... so I'm sure there is logic behind, which by expert could be slimmed down and made easier!

I just want to use wolcmd whenever I want to turn server on, and not mess with router every time.



share|improve this question
ah I ask hard questions... I know :) – Sandro Dzneladze Feb 26 '12 at 22:03
Hi Sandro, this is a fairly complete description of the WOL over WAN approach with a static arp (though using a broadcast arp rather than unicast for some reason) but you missed in your description the part where you portforward the UDP packet. Could you add it so the question is complete? I think it will be confusing to others without that step. – Paul May 27 '12 at 12:58
up vote 1 down vote accepted

I managed to fix this problem by creating fictional IP address and leaving it in ARP table:

arp add [fictional lan IP] [ff:ff:ff:ff:ff:ff]

I issue command: /Users/usr/Downloads/wolcmd [mac] [public IP] 9

And server comes online and takes Correct ip/mac in arp table.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .