Timeline for How to wake-on-lan via internet with python code?
Current License: CC BY-SA 4.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 21, 2021 at 21:24 | comment | added | Philip Couling | I was almost going to write my own answer until I read your penultimate paragraph. Yes! Create a static ARP entry for the PC you want to wake, it's by far the cleanest solution. Some routers (eg: draytek) do this if you pin the IP. For OpenWRT there's a Q/A telling you how here. | |
| May 15, 2021 at 14:25 | comment | added | A.B | Also FWIW, I just discovered that unicast->broadcast is a routing restriction on Linux, not caused by netfilter (although netfilter can't handle correctly reply packets, but it doesn't matter for WOL). tested and it works when enabling the all and the ingress interface, according to this S/F answer: serverfault.com/questions/232582/… | |
| May 15, 2021 at 14:05 | comment | added | telcoM | @A.B I have seen a WoL tool that claimed to use TCP. Probably it just built up a raw packet for WoL and just abused the Ethernet protocol identifier of TCP. Might have worked once upon a time, but yes, any modern firewall worth its price would probably reject it. | |
| May 15, 2021 at 13:54 | comment | added | A.B | nitpicking, TCP would never work: sending the 102 bytes of the MagicPacket™ in the SYN appears difficult. | |
| May 15, 2021 at 13:15 | history | answered | telcoM | CC BY-SA 4.0 |