Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/GramThanos/WakeOnLAN
A simple C program that sends a magic packet
https://github.com/GramThanos/WakeOnLAN
lan network packets wakeonlan
Last synced: 8 days ago
JSON representation
A simple C program that sends a magic packet
- Host: GitHub
- URL: https://github.com/GramThanos/WakeOnLAN
- Owner: GramThanos
- License: mit
- Created: 2017-10-24T15:07:40.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-14T00:25:34.000Z (4 months ago)
- Last Synced: 2024-08-02T15:30:57.725Z (3 months ago)
- Topics: lan, network, packets, wakeonlan
- Language: C
- Homepage:
- Size: 32.2 KB
- Stars: 100
- Watchers: 6
- Forks: 35
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![latest version](https://img.shields.io/badge/latest%20version-v0.3-green.svg?style=flat-square)](https://github.com/GramThanos/WakeOnLAN/releases/latest)
![Windows build](https://img.shields.io/badge/window%20build-pass-blue.svg?style=flat-square)
![Linux build](https://img.shields.io/badge/linux%20build-pass-blue.svg?style=flat-square)
![Mac build](https://img.shields.io/badge/mac%20build-pass-blue.svg?style=flat-square)# WakeOnLAN
A simple C program that sends a magic packetYou 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]](https://github.com/GramThanos/WakeOnLAN/releases)
___
### Usage
```bash
./WakeOnLAN [ ][ ]
```
The first parameter is the mac address of the target (usually your's 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 it (not for windows).Example
```bash
./WakeOnLAN 00:11:22:33:44:55 192.168.1.255 eth0
```___
### Pre-compiled Binaries
Platform | Links
------------ | -------------
Windows | [x86](https://github.com/GramThanos/WakeOnLAN/releases/download/v0.3/WakeOnLAN_v0.3_windows_x86.zip)
Linux | [x64](https://github.com/GramThanos/WakeOnLAN/releases/download/v0.3/WakeOnLAN_v0.3_linux_x64.zip)
Raspberry Pi | [arm](https://github.com/GramThanos/WakeOnLAN/releases/download/v0.3/WakeOnLAN_v0.3_raspberrypi.zip)___
### Compile from source
For Linux you can compile the source using GCC
```bash
gcc WakeOnLAN.c -o WakeOnLAN
```For Windows you can compile the source using MinGW
```bash
gcc WakeOnLAN.c -o WakeOnLAN.exe -lwsock32
```### Makefile
GNU make can be used in order to compile the sources on Linux/Mac:
```bash
make
```
to clean everything:
```bash
make clean
```### CMake
CMake can also be used on Linux/Mac:
```bash
mkdir build
cd build
cmake ..
cmake --build .
```
___### Feedback
For any problem you may [open an issue](https://github.com/GramThanos/WakeOnLAN/issues)
Also, you can [send me a mail](mailto:[email protected])
___
### License
This project is under [The MIT license](https://opensource.org/licenses/MIT).
I do although appreciate attribute.Copyright (c) 2019 Grammatopoulos Athanasios-Vasileios
___
[![GramThanos](https://avatars2.githubusercontent.com/u/14858959?s=42&v=4)](https://github.com/GramThanos)
[![DinoDevs](https://avatars1.githubusercontent.com/u/17518066?s=42&v=4)](https://github.com/DinoDevs)