![]() ‘/fnjeber3rh jk345t3443nl/nameofcomputertowakeup.php’ php file on a obscure directory with a long and complicated file name on your web server. Computers that are capable (and configured) to wake on network access / WOL.A router with port forwarding to forward the incoming requests to the web server.A web server on the local network (I run this on a raspberry pi).The more savvy of you could also build a web page UI over the top of this service in order to make it more user friendly. ![]() I you have more than one machine then just create different rest endpoints each with it’s own php script. So, you can wake any machine on your network from anywhere with an internet connection. Not so with this script.īelow is a PHP script I use on my server (it ‘s a was a low-power, intel atom server which I leave running) which offers a simple rest service that would allow the server side php script, when requested by a browser, to request a WOL packet to be sent to another machine on the local network in order to wake it up. Others, like the older BT Home Hubs, only supports forwarding the ‘magic-packet’ used for WOL on port 9 to one machine on your network, so if you want to wake others from outside your network, you often need to log in to an existing powered-on machine and then run a program within the local network to wake the other machine(s) over the LAN. Some home routers (including the newer BT Smart Hub) won’t do any forwarding with the WOL ‘magic-packet’. Trying to perform remote Wake On Lan (WOL) to multiple machines over the web can be difficult without an expensive router. Just make sure you harden apache and also your headers as per the posts here. I know there are ways to replace sed by some shell expansion or so.Update: I recently moved the REST service described in this post over to a Raspberry Pi where it works really well, and consumes far less power. It is used here to remove ':' and add \x to each pair of characters in the magic packet's forged string. (1) Well, indeed, sed is not explicitly required. In this case replace $Broadcast address by the destination public IP, and open/forward the specified $PortNumber (UDP) on destination.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |