4 ms·
Did something similar when I was behind CGNAT and had no IPv6 or port forwarding. Instead of a pi, I cheaped out even more and used an old android phone. Wrote
by natrys 3y ago
Did something similar when I was behind CGNAT and had no IPv6 or port forwarding. Instead of a pi, I cheaped out even more and used an old android phone. Wrote a little Rust program that listened on a ntfy[1] channel, cross-compiled with cargo-ndk[2] and ran it in termux (which had the wol tool, a perl script that sends magic packet). The web UI simply pinged the channel (and showed the pong).
[1] https://ntfy.sh/ https://ntfy.sh/
[2] https://github.com/bbqsrc/cargo-ndk https://github.com/bbqsrc/cargo-ndk