Configure Sleep on Lan (Shutdown)
mainGPTWOL sends a reverse MAC Wake-on-LAN packet on port 9 to trigger a shutdown. To enable this, you must install and configure the sleep-on-lan utility on the target computer.
Debian-based computers
Create a sol.json file with the following content:
{
"Listeners": [
"UDP:9"
],
"LogLevel": "INFO",
"Commands": [
{
"Operation": "shutdown",
"Command": "poweroff",
"Default": true
}
]
}Windows computers
Create a sol.json file with the following content:
{
"Listeners": [
"UDP:9"
],
"LogLevel": "INFO",
"Commands": [
{
"Operation": "shutdown",
"Command": "shutdown /s /t 0 /f",
"Default": true
}
]
}Note for Windows: You must configure the Windows Defender Firewall to allow an Inbound Rule for UDP port 9.