I am using Ubuntu 16.04 for my OS system.

I'm trying to set the wake on lan with IP Address.

For my previously method, I can do it with MAC address(HWaddr) in local network area.

But now I want to wake up my computer from other place(with global network).

How can I do it?

Is it possible to set with IP Address?

  • 2
    No, it is not possible. You need to have access to at least one computer (or router) on the LAN, and send the wake-up arp package from that.
    – hschou
    Nov 8, 2017 at 7:46
  • 1
    Basically, you ssh into a system on the same local network as your server to wake and use the MAC address to wake it. Your server that is "sleeping" does not have an IP address!
    – thecarpy
    Nov 8, 2017 at 7:50
  • 1
    If you have an analog modem you can use wake on ring/wake on modem feature so you can turn on remotely your computer by doing a phone call. Nov 8, 2017 at 8:19
  • @hschou But for windows it can wake with IP Address. Is that you mean I have to connect a router to public network and send the wake-up arp package from the router? Nov 8, 2017 at 8:35
  • @thecarpy I've found a website said how to wake on lan over internet. ubuntuforums.org/showthread.php?t=1570275 Is this set with the IP Address? Nov 8, 2017 at 8:36

1 Answer 1


Assuming you have a Linux system on the local network that is up and running.

You use systemd socket to listen on a port that executes a shell script to wake the other, ideally, you could check that the request contains a certain string to prevent script kiddies from waking your sleeping computer. You forward a port on your router to your Linux system that is up.

Just opening a connection to your router on the specified port sending the specified string will start your sleeping Linux computer.

Another option, as the op has seen, is to configure your router to do the job. In my experience, wifi routers do not allow you to add static ARP entries. You could try OpenWRT, which is great, however, flashing your router with OpenWRT just for this is, I think, overkill. Then again, OpenWRT is really good and worth the effort, especially from a security stand point (you can patch the router when you see fit without having to wait for the vendor to release a patch)! All this, provided OpenWRT supports your router.

  • 1
    Now I have a solution for this. I could use the commend wakeonlan -i [IP Address] [MAC Address] to wake my machine.Before that, I have to send arp arp -a [IP Address] to the machine from my local machine.But I still have question here.If I've got a machine locate at L.A. and the other machine locate at New York.Is that possible to wake the machine located at L.A. from New York by wakeonlan? Nov 9, 2017 at 6:46

You must log in to answer this question.

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