Loading ...
Sorry, an error occurred while loading the content.

Re: [nslu2-general] Can I use NSLU2 to send WOL to local PC from internet?

Expand Messages
  • phinas
    One way that I did it was to install the php mod and run this script.
    Message 1 of 5 , Dec 13, 2007
      One way that I did it was to install the php mod and run this script.


      function WakeOnLan($mac)

      // Create Magic Packet

      $packet .= chr(255);

      $mac_byte = explode(':', $mac);

      $mac_addr .= chr(hexdec($mac_byte[$i]));

      $packet .= $mac_addr;

      // Set to UDP broadcast

      $sock = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
      socket_set_option($sock, SOL_SOCKET, SO_BROADCAST, TRUE);
      socket_sendto($sock, $packet, strlen($packet), 0, '', 9);






      header( 'Location: http://my.orb.com' ) ;


      pinyilde wrote:
      > My router does not support or provide for sending Wake On LAN (WOL)
      > packets to a local PC from the Internet so I'm wondering about the
      > feasibility of remoting into an NSLU2 and getting it to send the WOL
      > packet. Any suggestions on how this could be done?

      View this message in context: http://www.nabble.com/Can-I-use-NSLU2-to-send-WOL-to-local-PC-from-internet--tp14309648p14329235.html
      Sent from the Nslu2 - General mailing list archive at Nabble.com.
    Your message has been successfully submitted and would be delivered to recipients shortly.