Send magic packet from php to wake up a host using "Wake on Lan"
index.php
started as a one file drop in tool for waking up computers when they are suspended.
- Windows Operation System
- PHP7
- PHP7 enabled socket extension
- Internet connection for CDN includes (.js, .css)
- Either clone the repository or download the zip file
- Copy the file
index.php
to a directory on your web server. - Fill
hosts.js
with hosts data.
Open your favorite browser and navigate to the index.php
url.
- Wake - send a magic packet for the selected host.
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.
index.php
is published under MIT license.