

Thus, the same wake-on-lan tools may be used for both wake and sleep operations (python wake-on-lan script, OpenHab WoL plugin, Android applications, and so on). Just send a regular wake-on-lan command but with a reversed MAC address.

Grab the latest windows + linux release or snapshot : Sleep through UDP Written in go, the code shoud run on linux and windows platforms. Executed commands are fully customizable. Additionnaly, it can also be triggered through a REST endpoint (with something like curl). that will listen the same Wake-On-LAN port and send the computer in sleep mode when the reversed MAC address received matches a local address. Technically, you have to run a little daemon (the sleep-on-lan program on your computeri, server, NAS. It works with the exact same magic packet than for Wake-On-LAN, the only difference is that the MAC address has to be written in reverse order. This project allows a windows or linux box to be put into sleep from any other device. At this time, there is not standard to make the opposite and send a computer in sleep mode. Wake-on-LAN is a standard low-level protocol implemented in various hardware.
