klemens-st / wake-on-lan.php

Send magic packet from php to wake up a host using "Wake on Lan"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wake-on-lan.php

Send magic packet from php to wake up a host using "Wake on Lan"

Wake-On_Lan Screenshot

wake-on-lan.php started as a one file drop in tool for waking up computers when they are suspended.

Requirements

  • Windows Operation System
  • XAMPP or IIS
  • PHP5 or PHP7
  • Internet connection for CDN includes (.js, .css)

Installation

  • Either clone the repository or download the zip file
  • Copy the file wake-on-lan.php to a directory on your web server.

Setup

Open your favorite browser and navigate to the wake-on-lan.php url. Now you can start adding your the hosts you want to wake.

  • Export - open a modal window with the configuration as a json file. Copy the contents of the edit window and save the configuration as a file.

  • Import - open a modal window with a text box. Paste your configuration into the text box and click on Import.

  • Wake up! - send a magic packet for the selected host.

  • Remove - delete the row from the configuration. The data of the deleted row is placed in the input fields for adding a new host. If you accidently removed a host you can simply press Add again to add it again.

  • Add - adds a new entry to the table. Fill in the text boxes and press Add.

Caveat

Does not run under linux. Because the linux user used to run php code on the server side usually has very limited permission it cannot create the raw socket to send the magic packet.

License

wake-on-lan.php is published under MIT license.

About

Send magic packet from php to wake up a host using "Wake on Lan"

License:MIT License


Languages

Language:PHP 72.0%Language:JavaScript 28.0%