NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
shaggys
Jan 28, 2010Aspirant
WAKE addon problem
Hi Just installed the WAKE addon but when trying to wake a computer upp I get the error below. Do I have the wrong PHP version on my DUO? I use PHP from here PHP5 5.2.11 from WhoCares http://ww...
gonzo_74
Feb 06, 2010Aspirant
I was able to get the Wake feature to work by replacing a section of Super-Poussin's code.
For setting a broadcast option to socket, this is what I did:
// $opt_ret = socket_set_option($s, 1, 6, TRUE);
if(socket_sendto($s, $msg, strlen($msg), 0, $addr, $socket_number)) {
echo "Magic Packet sent successfully!";
socket_close($s);
return TRUE;
}
else {
echo "Magic packet failed!";
return FALSE;
}
That 1st line is from Super-Poussin's code, and I disabled the line and then replaced the code from that line through the line that said "your PC with Mac Address xx-xx-xx-xx-xx has been awakened!"
I am able to do a Wake On Lan through my website now. I'm not sure why I can do it, but I can. It seems that the socket set option is optional. I am only trying to wake 1 computer, so maybe there is something to do with that.
Hope that helps.
For setting a broadcast option to socket, this is what I did:
// $opt_ret = socket_set_option($s, 1, 6, TRUE);
if(socket_sendto($s, $msg, strlen($msg), 0, $addr, $socket_number)) {
echo "Magic Packet sent successfully!";
socket_close($s);
return TRUE;
}
else {
echo "Magic packet failed!";
return FALSE;
}
That 1st line is from Super-Poussin's code, and I disabled the line and then replaced the code from that line through the line that said "your PC with Mac Address xx-xx-xx-xx-xx has been awakened!"
I am able to do a Wake On Lan through my website now. I'm not sure why I can do it, but I can. It seems that the socket set option is optional. I am only trying to wake 1 computer, so maybe there is something to do with that.
Hope that helps.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!