Sign inSign up

bentasker12/wake-on-lan-python

By bentasker12

•Updated over 3 years ago

A utility to send Wake On LAN (WOL) packets to hosts on the local network

Image
0

2.1K

bentasker12/wake-on-lan-python repository overview

wol.py is A small Python 3 script to allow the sending of aWake-On-LAN (WOL) Magic packet so that LAN clients can be remotely switched on from another machine on the same subnet. Rather than needing to know the MAC address of the desired machine, the script allows you to specify by hostname, so long as that host is included in the configuration file.

⁠Usage: Docker

It is also possible to run the utility with Docker, however there is a small additional configuration step required the first time that it's run

Run list:

docker run \
--rm \
-v ~/.config/bentasker.Wake-On-Lan-Python/:/wol_config \
bentasker12/wake-on-lan-python list

Edit the generated configuration file

vi ~/.config/bentasker.Wake-On-Lan-Python/wol_config.ini

You will find that the broadcast address is for the wrong network, replace this with the correct prefix

[General]
broadcast = 172.0.1.255

becomes

[General]
broadcast = 192.168.1.255

Subsequent runs should then run as desired

docker run \
--rm \
-v ~/.config/bentasker.Wake-On-Lan-Python/:/wol_config \
bentasker12/wake-on-lan-python myPC

See the maintained README at https://github.com/bentasker/Wake-On-Lan-Python⁠ for more information on the configuration file.

Tag summary

Content type

Image

Digest

sha256:164ebfbf1…

Size

19 MB

Last updated

over 3 years ago

docker pull bentasker12/wake-on-lan-python