$ [sudo] npm install wake-on-lan -g
wake-on-lan <mac-address>
wake-on-lan <mac-address> --ip=..
wake-on-lan <mac-address> --host=..
wake-on-lan <mac-address> --relay
Also, you can use wake-on-lan
to wake your machine remotely via internet, use --relay
option. Thx Daniel-Oberlin
Originally inspired by node_wake_on_lan.