Building a website for sending WOL requests
I have been tasked with building a website that allows users to wake their PC's remotely.
Research Stage:
How am I going to do it? No idea.
Can I send a WoL packet directly from the browser? Doesn't look doable
The WoL needs to send a UDP broadcast package to the LAN. But browsers don't expose any API for UDP packages.
You need either server-side coding or browser plugins. You can write your own plugin that uses udp api. - ykaragol (2016)
I need to build a local website that can handle user requests and send them to a local server, then I need to build a program(?) that can take those web requests and send the necessary magic packet.
I've come across something called Web APIs, sounds useful 🧐
Website:
Something JavaScript I guess.
Server Program:
Ok... Initial thoughts are that I should write a server side web-socket? (I have no idea if that's right but let's go with it)
So, I looked at a web-socket, but it's a persistent connection suitable for online games and such. Would it be overkill to use this here? Is there anything below a web-socket?Right... I will be back. I think I need to go learn some javascript first.

Comments
Post a Comment