43 points · by invpt · 3y ago · 43 comments
Then your UI to wake up your machine, from anywhere in the world, would be to access that URL via a Web browser or `curl` script.
For accessing the machine once it's awakened, probably you have a single TCP port forward configured on the router, forwarded to the port on the machine for SSH or whatever service is exposed. No other networking config.
(You could alternatively code a small "wake-on-demand" program that runs on the router, and initially listens on the port that will be forwarded to the service of the machine, but is resilient against port-scanning (maybe in a service-specific way to validate requests before waking machine), and reliable in setting and unsetting the port forward in the router when the machine is up and down.)
This is one of the most ridiculous things to care about. And no, a proper hardware doesn't chew up RTC battery even if unplugged for months.
Might even save that much in idle draw over the lifespan of the battery.
They would go to their vacation home each year, and a couple days beforehand I would boot their computers up and install updates and sync files etc. That way they could start working as soon as they arrived. Dyndns and a tiny web server. Something something.net/mag1cpack3t
Is that still the case even if you've hard-coded an IP address using DHCP on the router?
I created WOL software, but didn't do a good job of maintaining it. :|
I've also built a reset-on-LAN card using an old wake-on-LAN-capable NIC and some simple circuitry to shape the pulse so it's suitable for the motherboard's reset signal. I send a WOL packet to the otherwise-unused address, and kapow, the presumably-wedged machine is no longer wedged!
Writeup here:
https://www.i3detroit.org/reset-on-lan-an-ethernet-aware-rem...
One of the pins of the power switch is probably 5V (though possibly high impedance if a pull-up is used, so not much power).
But I think I'll rather look into one of these Pi-based "ilo" with HDMI in and USB gadget support to get remote access to the BIOS as well. It may also be useful for remotely debugging computers of family members :)