IM
wolth
๐ค Wake on LAN through HTTP
Get Started
-
Clone the project to the server machine
$ git clone https://github.com/imyelo/wolth.git
-
Install dependencies
$ cd wolth $ yarn -
Start server, the
WOLTH_MACis the MAC address of the machine you want to wake but not the server's$ WOLTH_MAC="12:34:56:78:9a:bc" npm startor set environment variables in
.envfile:$ echo "WOLTH_MAC = 12:34:56:78:9a:bc" > .env $ npm start
-
Wake from machine
$ curl -X POST http://127.0.0.1:3000
You can now wake the machine from anywhere with a simple POST request as long as the server is acceptable from outside. ๐
Configuration
Environment variables:
PORT:- optional, default value is
3000 - the port of wolth server listening
- optional, default value is
WOLTH_MAC:- required
- the MAC address of the machine you want to wake
WOLTH_ADDRESS:- optional, default value is
'255.255.255.255'
- optional, default value is
WOLTH_PORT:- optional, default value is
9
- optional, default value is
Configuration Example
Minimal config in .env file:
WOLTH_MAC = 12:34:56:67:9a:bcFull config: in .env file
# .env
PORT = 8080
WOLTH_MAC = 12:34:56:67:9a:bc
WOLTH_ADDRESS = 192.168.1.10
WOLTH_PORT = 7License
Apache-2.0 ยฉ yelo, 2019 - present
On this page
Languages
JavaScript50.4%HTML49.6%
Apache License 2.0
Created June 19, 2019
Updated March 4, 2023