Send magic packet from php to wake up a host using "Wake on Lan"
wake-on-lan.php
started as a one file drop in tool for waking up computers when they are suspended.
- Windows Operation System
- XAMPP or IIS
- PHP5 or PHP7
- Internet connection for CDN includes (.js, .css)
- Either clone the repository or download the zip file
- Copy the file
wake-on-lan.php
to a directory on your web server.
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.
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.
wake-on-lan.php
is published under MIT license.