# ESP32 Wake On Lan Remote

Turn on your gaming or home PC from Telegram, MQTT, or a private web dashboard - no port forwarding or cloud subscription.

一块板子长期挂在家里局域网里，替电脑发 Wake-on-LAN 魔术包，把开机这件事搬到 Telegram、MQTT 或网页看板上，既不用端口映射也不用云服务。

- id: jonathan0823-esp32-wake-on-lan-remote
- author: Jonathan0823
- repository: https://github.com/Jonathan0823/esp32-wake-on-lan-remote
- license: MIT
- shape: wide
- scenes: games, tools
- boards: ESP32
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/jonathan0823-esp32-wake-on-lan-remote/
- html_zh: https://esp32gallery.com/zh/projects/jonathan0823-esp32-wake-on-lan-remote/
- json: https://esp32gallery.com/data/catalog/projects/jonathan0823-esp32-wake-on-lan-remote.json

## Hardware

Supported hardware: ESP32. Confirm the exact board revision and pin map in the upstream repository.

支持硬件：ESP32。烧录前请在上游仓库核对板卡版本与引脚定义。

## English

```
A board sits on the home LAN and sends the magic packet that boots a gaming or office PC, reached from Telegram, MQTT or a browser dashboard without port forwarding or a cloud subscription. A Telegram command /wake asks for confirmation first and /wake force fires immediately; /ping returns reset reason, heap, RSSI and uptime, and /status reports whether the machine answers a TCP probe. MQTT is an alternative path over TLS on port 8883, with retained availability and state topics plus separate command, reply and event topics. The React and Vite dashboard talks MQTT over WebSocket and is meant to sit behind Cloudflare Access, since its VITE_* credentials are shipped in the browser bundle. Any board the esp32:esp32 Arduino core supports will do; PubSubClient is the only added library. Wake-on-LAN has to work from that LAN before any of this helps.
```

## 中文

```
一块板子长期挂在家里局域网里，替电脑发 Wake-on-LAN 魔术包，把开机这件事搬到 Telegram、MQTT 或网页看板上，既不用端口映射也不用云服务。Telegram 里 /wake 会先问一句再发包，/wake force 直接发；/ping 报复位原因、堆内存、RSSI 和运行时长，/status 则用 TCP 探测判断电脑在不在线。MQTT 是另一条路，走 TLS 的 8883 端口，availability 和 state 两个主题保留消息，命令、回复、事件分开。React + Vite 看板通过 WebSocket 连 MQTT，部署在 Cloudflare Pages 后面套 Cloudflare Access，因为 VITE_ 开头的凭据会打进浏览器包里。板子只要是 esp32:esp32 核心支持的都行，开 MQTT 才需要装 PubSubClient；前提是同一网段里 WoL 本来就能唤醒，否则换什么板子都没用。
```
