1

I've been asked to set up a system where a user can visit an internal website from one domain, submit the name of the PC they'd like turned on in another domain, then the server sends a WOL Packet to that PC (through running a program like wolcmd?).

At the moment all of our PC's are set to turn on in the morning before people start working so that they can remote into their PC's from home without someone needing to be there to turn it on, however this is a waste of electricity, especially when the PC isn't being used that day.

How would you set up a system like this? I've tried looking for a similar problem but failed to find one. Thank you.

Jord
  • 13
  • 2

1 Answers1

0

You would have to write a web app that does exactly this, and hopefully checks for some kind of authentication. Wake-on-lan is really just a specific packet, you can send it from pretty much any program.

One possible solution would be to write a Django or Flask app which authenticates the user and then sends a WOL packet using wakeonlan.

Gasp0de
  • 1,199
  • 2
  • 12
  • 30
  • Node-Red has a module for this. – joat Nov 20 '22 at 15:48
  • The one thing to keep in mind is that the magic packet "sender" will need to be in the same network segment as the target. In other words, they'll employ the same broadcast address and reside in the same IP space (e.g.. 192.168.1.0 thru 192.168.1.254 with 255.255.255.0, or 172.16.0.0-172.16.255.255 with 255.255.0.0, or 10.0.0.0 thru 10.255.255.254 with 255.0.0.0). – joat Nov 20 '22 at 16:26