Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 966 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 966 Bytes

wake-on-lan.php

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

Wake-On_Lan Screenshot

index.php started as a one file drop in tool for waking up computers when they are suspended.

Requirements

  • Windows Operation System
  • PHP7
  • PHP7 enabled socket extension
  • Internet connection for CDN includes (.js, .css)

Installation

  • 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.

Setup

Open your favorite browser and navigate to the index.php url.

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

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

index.php is published under MIT license.