WakeOnLAN
A simple C program that sends a magic packet
Install / Use
/learn @GramThanos/WakeOnLANREADME
WakeOnLAN
A simple C program that sends a magic packet
You can use this program to wake up a PC over the network. It sends the so-called magic packet to the network card of the target PC, instructing it to open the PC. [Download]
Usage
./WakeOnLAN <mac address>[ <broadcast address>][ <interface>]
The first parameter is the mac address of the target (usually your network card's mac address). The second parameter is optional and defines the broadcast address to send the packet. The third parameter is optional and defines the source interface to send the packet from (not for Windows).
Example
./WakeOnLAN 00:11:22:33:44:55 192.168.1.255 eth0
or, from a file with MAC addresses inside:
./WakeOnLAN -f macs-list.txt
where macs-list.txt has one MAC address per line:
00:1A:2B:3C:4D:5E
00:11:22:33:44:55
12:34:56:78:90:AB
.
.
.
Pre-compiled Binaries (Latest Release)
Platform | Links v0.3 ------------ | ------------- Windows | x86 Linux | x64 Raspberry Pi | arm
Compile from source
For Linux, you can compile the source using GCC
gcc WakeOnLAN.c -o WakeOnLAN
For Windows, you can compile the source using MinGW
gcc WakeOnLAN.c -o WakeOnLAN.exe -lwsock32
Or Open up a Visual Studio Native Tools Command Prompt, navigate to your source directory
cl WakeOnLAN.c -o WakeOnLAN.exe
Makefile
GNU make can be used in order to compile the sources on Linux/Mac:
make
To clean everything:
make clean
CMake
CMake can also be used on Linux/Mac:
mkdir build
cd build
cmake ..
cmake --build .
Feedback
For any problems, you may open an issue
Also, you can send me an email
License
This project is under The MIT license. I do appreciate attribution.
Copyright (c) 2024 Grammatopoulos Athanasios-Vasileios
Related Skills
node-connect
348.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
348.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
348.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
