How to enable wake on lan such that computer turns on when I try to access IP?
from illusionist@lemmy.zip to linux@lemmy.ml on 11 Sep 05:33
https://lemmy.zip/post/48396401

Edit: I’ve got a mini computer that could wake up the big one.

#linux

threaded - newest

koala@programming.dev on 11 Sep 05:43 next collapse

dgross.ca/blog/linux-home-server-auto-sleep did the rounds lately.

But you’ll need another system to always be on to handle this.

In many cases, you can “fake” this in other means. For example, I had Remmina configured to run a script to send a WOL packet and wait before connecting via remote desktop to a computer.

SpaceNoodle@lemmy.world on 11 Sep 08:13 collapse

For a while I just had a widget on my phone where I could just tap an icon to send a magic packet to the desired MAC.

ZWQbpkzl@hexbear.net on 11 Sep 05:49 next collapse

I don’t think if you can wake with an http request but after either a bios/kernel setting you can do wol mac:add:re:ss from a different computer.

The key restrictions here is not every hardware supports wake-on-lan, and one computer must be configured to “wake” the other.

interdimensionalmeme@lemmy.ml on 11 Sep 06:16 collapse

That could be a very interesting feature for a reverse proxy to have, wake-on-lan-on-demand, I guess it could show the server’s ping status with a “please wait server is starting” image and a countdown to the next retry / how long it usually takes to wake up.

I found something similar called WOL proxy

github.com/darksworm/go-wol-proxy

[deleted] on 11 Sep 05:55 next collapse

.

utopiah@lemmy.ml on 11 Sep 05:56 next collapse

If your computer boots when plugged in (not only by pushing the power button) it would be feasible via a connected plug, but you’d still need a small computer, e.g HomeAssistant on a RaspberryPi, to convert the HTTP request to ZigBee, or a WiFi plug but I’m not sure which one would handle an HTTP request, if any.

full_throttle@lemmy.world on 11 Sep 21:22 next collapse

You can accomplish this using your router. The router can send the magic package to the computer. You can do this remotely from over the internet and even through a VPN connection to your router (preferred). If your router doesnt support the functionality out-of-the-box, OpenWRT does!

LiveLM@lemmy.zip on 11 Sep 22:19 next collapse

Well, you can in theory enable WOL without Magic Packet, but that means any network activity will wake it up, even a random ping, so you might find your PC waking up randomly.

meekah@lemmy.world on 15 Sep 13:59 collapse

Would that be multicast or broadcast activity? Or unicast?

LiveLM@lemmy.zip on 15 Sep 22:17 collapse

The Wake-on values define what activity triggers wake up: d (disabled), p (PHY activity), u (unicast activity), m (multicast activity), b (broadcast activity), a (ARP activity), and g (magic packet activity).

Looks like you can choose which one you want

meekah@lemmy.world on 15 Sep 23:16 collapse

Yeah, I just don’t know what those terms mean lol

I was asking which one I need to choose to wake my server io whenever I try sending packets to it

LiveLM@lemmy.zip on 16 Sep 00:08 collapse

Oh. Sorry I’m not well versed in networking to know either lol.
I’d suggest querying which modes your card supports with the command listed, and enable them all except “g” which is magic packet, then give it a test.

IrritableOcelot@beehaw.org on 12 Sep 16:29 collapse

Some motherboards explicitly enable wake on LAN as a BIOS option. If not in the BIOS it’s going to be a bit harder, but the software option recommended, (the Archlinux forum link) looks interesting.