Skip to content

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

License

Notifications You must be signed in to change notification settings

xmegz/wake-on-lan.php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 98.8%
  • JavaScript 1.2%