Skip to main content
Participant
December 6, 2013
Question

Searching for ANE to send WOL command

  • December 6, 2013
  • 1 reply
  • 774 views

Hi,

I'm searching a ANE to send WOL magic-packets to a list of known machines. Anybody knows an extension?

Windows/OSX is my target platform. iOS/Androind would be nice - but low priority.

Regards

Stefan

This topic has been closed for replies.

1 reply

Participating Frequently
January 31, 2014

Here's how to do that using a web server with PHP. No native extensions needed.

1. Configure PHP to allow running command-line executables from a given folder.

2. Place your WOL application there. For example: Gammadyne's Wake-on-LAN utility (I'm not the developer of that application but I use it every day)

3. Write your PHP script:

<?php

          $mac = $_POST["mac"];

          //add some security here including some encryption

          $cmd = "@c:\\wol\\wol.exe " . $mac;

          $output = shell_exec($cmd);

          echo $output;

?>

4. Use the URLLoader class in your Adobe Air app to post data to your script and get its response.