danielabrantes / wake-pc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wake PC

Wake PC is a super tiny password protected PHP webapp that sends WOL packets to other machines. Currently it supports a single machine but I plan to add a config GUI and option to add a list of machines that can be WOL-ed separately.

screenshot

How to set up

1. Install Wake PC

All you need is wake-pc.php and wake-pc-config.ini. You can either clone this repo or just download the php file and wake-pc-config-default.ini that you need to copy and rename and fill out with your own connection data. You will be able to serve Wake PC with your webserver of choice as long as it supports PHP. To host with NGINX, follow the instructions here.

2. Config Target PC

For WOL to work it needs ot be enabled on the target PC, by default this is usually not the case. You will likely find this setting in your BIOS.

You also need to make sure that the machine will only be woken up by WOL packets and nothing else, otherwise the initial ping that checks whether the machine is online will also turn it on.

Go in Control Panel\All Control Panel Items\Network Connections, select your connection -> right click -> Properties -> Power Management, tick "Allow this device to wake the computer" and make sure to also tick "Only allow a magic packet to wake the computer".

Planned Improvements

  • remove plaintext password haha
  • gui config
  • multiple machines
  • scheduling
  • shutdown and reboot maybe?
  • ability to disable ping

About


Languages

Language:PHP 100.0%