Skip to content

Remote Wake-On-LAN tool. Provides web-interface to send magic packets from the Internet.

Notifications You must be signed in to change notification settings

marcorentap/pi-wol

Repository files navigation

π-WoL

A Flask-based web application that lets you send magic packets to a target machine from the browser.

main-page

Usage

Setup target machine

Enable Wake-On-Lan.

(optional) Set a static IP address.


Setup π-WoL

Edit config.ini and enter your the target machine's configuration.

<mac address. Example: ff.ff.ff.ff.ff.ff>
<local ip address. Example: 255.255.255.255>

Note that if the target machine does not have a static IP address, you will have to edit this file every time the machine restarts.


Make sure that Python 3 is installed.

Then install the dependencies:

pip install -r ./requirements.txt

Set environment variables:

Unix, Linux, MacOS, etc.

export FLASK_APP="remote-wol.py"
export FLASK_ENV="production"

Windows

set FLASK_APP="remote-wol.py"
set FLASK_ENV="production"

Run the server:

python -m flask run --host 0.0.0.0

Then enter the password. You will need this password every time you want to send a magic packet.


You can now go to http://[pi-wol machine's local IP]:5000 to access the web interface.

Remote Access

You can use tunneling software like ngrok or plain ssh tunneling to allow π-WoL to be accessed remotely.

About

Remote Wake-On-LAN tool. Provides web-interface to send magic packets from the Internet.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published