A very simple python script that replicates the listens for UDP wake on lan packets from outside the network
This is a easy way of using Wake on Lan from outside the network when your router does not support forwarding ports to the broadcast address.
It also allows you to enforce the SecureOn if your NIC does not support it.
I use it in a Raspberry Pi without running into any problems so far.
- Clone this repository:
git clone https://github.com/jaime29010/wol-packet-replicator
- Run it directly:
python replicator.py
or in a background task (tmux, screen)
For this to work at all you will need to allow the traffic to go to the device where this application is running.
It is recommended to do all of this:
- Assign a reserved IP address on your DHCP settings or configure the IP manually on the device
- Forward the local port (5009 by default) to the external port you want
- Setup dynamic dns, you can do this on your router if it supports it or in the same device
After you have done that, you can just send the WOL packet to the hostname and external port you chose.
You can test it with this tool
Check the output of the script or the app.log
file to see the debug messages this prints
You can also add your own settings here as shown in the two examples. This is a great way of making sure only you can wake up your devices even if your NIC does not support SecureOn