https://github.com/yianandcode/wol
网络唤醒
https://github.com/yianandcode/wol
Last synced: 6 months ago
JSON representation
网络唤醒
- Host: GitHub
- URL: https://github.com/yianandcode/wol
- Owner: YianAndCode
- Created: 2021-01-18T07:42:09.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-08T15:26:35.000Z (about 5 years ago)
- Last Synced: 2025-03-25T02:43:47.652Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 122 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wol
WOL (网络唤醒)服务
## 编译和运行
### Linux/macOS
```bash
make
```
### Windows
```cmd
go build -o ./bin/wol.exe .
```
### 运行
```bash
./bin/wol
# 或者在后台运行(Linux)
./bin/wol &
```
## 唤醒机器
假设运行本程序的机器内网 IP 地址为 `10.0.0.10`,则访问 `http://10.0.0.10:9394/wake?mac={你的MAC地址}`
## iOS 捷径
通过添加 iOS 捷径,你可以使用 Siri 来帮你唤醒局域网中的机器,捷径的设置非常简单:

## 鸣谢
`magic_packet.go` 由 [https://github.com/sabhiram/go-wol/](https://github.com/sabhiram/go-wol/) 提供!