cobalt notes from a small home lab

Wake-on-LAN from a phone without opening any ports

The desktop at home sleeps most of the day. I want to wake it from wherever I am, and I do not want a port forward on the router for that.

The trick: the Pi is always on, and it is already reachable through the same WireGuard tunnel I use for everything else. So the magic packet does not need to cross the internet at all. It only needs to be sent on the LAN by something that is already there.

ssh pi 'wakeonlan aa:bb:cc:dd:ee:ff'

On the phone that is one shortcut in an SSH client. It takes longer to unlock the phone than to run it.

Things that bit me