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

  1. Interesting walkthrough of the research process behind building a local WoL website. I like how you explored the browser limitations before settling on the need for a local server-side component. For experimenting with simple web projects, having a quick way to host HTML files online can also make testing and sharing frontend ideas more convenient.

    ReplyDelete
  2. The article presents an interesting practical web-development project involving a website that can send Wake-on-LAN requests to remotely wake computers. The research stage clearly identifies an important browser limitation around sending UDP broadcast packets and then explores a possible architecture involving a local website, server-side handling, and a program responsible for sending the required magic packet.

    The project is particularly relevant to Javascript Online Training because the author identifies JavaScript as an important technology for building the website and recognizes the need to understand it before continuing. The discussion of Web APIs and browser capabilities also provides a useful example of how front-end development interacts with server-side functionality.

    ReplyDelete
  3. The exploration of WebSockets and alternative communication methods adds another practical dimension to the project. Developers interested in building complete web applications that connect browser interfaces with backend services can also benefit from AI Web Development Course, particularly when learning how different web technologies work together.

    ReplyDelete

Post a Comment

Popular posts from this blog

What is JavaScript?