go version >= 1.12
$ git clone https://github.com/k0ngk0ng/wol-http.git
$ cd wol-http
$ export GO111MODULE=on
$ go build
wol-http [-p port]
Note: the port number is 8000 by default.
$ curl 'http://localhost:8000/wol/wake?mac=xx:xx:xx:xx:xx:xx&bcast=255.255.255.255'
- mac: the mac address
- bcast: the broadcast address, default is 255.255.255.255