I have an Ubuntu box that I can wake on lan (WOL) in my local network.

My router setup is as follows:

ISP > Modem > Router > Ubuntu box

I am not able to wake the Ubuntu box from outside my network, although I have forwarded port 7 and 9 (both UDP and TCP) in the router to the ubuntu box.

Am I forgetting something? Should I change modem settings in order to get WOL-over-ethernet working?

Thanks in advance,



When the computer is asleep, it cannot reply to the router's ARP requests, so you must either add a static ARP entry into the router, or forward the packets to the subnet broadcast address. (It doesn't have to be port 7 or 9; any UDP port will work fine.)

Also make sure that your "Wake on LAN" tool is sending the magic packets to the right address.

  • Thank you for your reply! Could you get me started on how to forward the packets to the subnet broadcast address? Thank you! – Vincent Sep 9 '12 at 15:05
  • @M0sthated: Try entering or similar as the forward-to address? (network_address | ~netmask) – grawity Sep 9 '12 at 15:54
  • Alright, so my netmask is and my router's IP is Using an IP calculator (jodies.de/…) I now know that the broadcast address is In my router there are several fields that need to be filled out for port forwarding. Could you tell me which goes where? Thanks in advance! These are the fields: PORT RANGE - LOCAL IP - LOCAL PORT - PROTOCOL (tcp/udp) - PROTOCOL NO. – Vincent Sep 10 '12 at 16:26
  • @M0sthated: 9-9 / / 9 / udp / ??? – grawity Sep 10 '12 at 16:55

The "Magic Packet" is really a broadcast frame, and broadcasts don't cross layer-3 boundaries (routers). You need to have a router which can do WoL for you, or you need to have a WoL server on the LAN.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.