I built a small ESP32 firmware that keeps an outbound connection and exposes a minimal web UI to trigger Wake-on-LAN using a device ID. The ESP32 then sends the WoL packet locally on the network.
Firmware is open source. You can build it yourself or flash precompiled firmware via the web installer.
Demo: https://wol.kreaxv.top/