Git Product home page Git Product logo

wakeonlan's Introduction

latest version Windows build Linux build Mac build

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>]

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.

Example

./WakeOnLAN 00:11:22:33:44:55 192.168.1.255

Pre-compiled Binaries

Platform Links
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

Makefile

GNU make can be used in order to compile the sources on Linux/Mac:

make

to clean everything:

make clean

Feedback

For any problem you may open an issue

Also, you can send me a mail


License

This project is under The MIT license. I do although appreciate attribute.

Copyright (c) 2019 Grammatopoulos Athanasios-Vasileios


GramThanos DinoDevs

wakeonlan's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

wakeonlan's Issues

Not work under Mac

gcc WakeOnLAN.c -o WakeOnLAN
WakeOnLAN.c:94:21: error: variable has incomplete type 'struct sockaddr_in'
        struct sockaddr_in udpClient, udpServer;
                           ^
WakeOnLAN.c:94:9: note: forward declaration of 'struct sockaddr_in'
        struct sockaddr_in udpClient, udpServer;
               ^
WakeOnLAN.c:94:32: error: variable has incomplete type 'struct sockaddr_in'
        struct sockaddr_in udpClient, udpServer;
                                      ^
WakeOnLAN.c:94:9: note: forward declaration of 'struct sockaddr_in'
        struct sockaddr_in udpClient, udpServer;
               ^
WakeOnLAN.c:113:69: warning: format specifies type 'unsigned char' but the argument has type 'unsigned int' [-Wformat]
        printf("Packet will be sent to %02hhx:%02x:%02x:%02x:%02x:%02x\n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
                                       ~~~~~~                              ^~~~~~
                                       %02x
1 warning and 2 errors generated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.