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://www.readynas.com/forum/viewtopic.php?f=47&t=35880
Error I get is this(I removed the mac adress -:) )
Warning: socket_set_option() [function.socket-set-option]: unable to set socket option [42]: Protocol not available in /c/webroot/wake/action.php on line 34
Le PC ayant pour adresse MAC deletedMACAdress à été réveillé !
Si vous souhaitez utiliser le controle à distance, merci de patienter quelques instants le temps que votre machine demarre.
Vous pouvez fermer cette fenetre.
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://www.readynas.com/forum/viewtopic.php?f=47&t=35880
Error I get is this(I removed the mac adress -:) )
Warning: socket_set_option() [function.socket-set-option]: unable to set socket option [42]: Protocol not available in /c/webroot/wake/action.php on line 34
Le PC ayant pour adresse MAC deletedMACAdress à été réveillé !
Si vous souhaitez utiliser le controle à distance, merci de patienter quelques instants le temps que votre machine demarre.
Vous pouvez fermer cette fenetre.
26 Replies
Replies have been turned off for this discussion
- mdgm-ntgrNETGEAR Employee RetiredI think you were supposed to use this PHP add-on.
- shaggysAspirantok I removed the PHP5 addon
Installed the PHP 1.1 from poussin.
Reboot
Tried and I get the same thing...
Warning: socket_set_option() [function.socket-set-option]: unable to set socket option [42]: Protocol not available in /c/webroot/wake/action.php on line 34
Thanks in advance
//Lasse - super_poussinVirtuosoWill look on this asap
- shaggysAspirantThank u. Really appriciate it. The Wake up function is just what I have been looking for.
//Lasse - PereToinouAspirantHello !
I have the same problem, and one more. Look :
Warning: socket_set_option() [function.socket-set-option]: unable to set socket option [42]: Protocol not available in /c/webroot/wake/action.php on line 34
Warning: socket_sendto() [function.socket-sendto]: unable to write to socket [13]: Permission denied in /c/webroot/wake/action.php on line 37
Le PC ayant pour adresse ... à été réveillé !
Thanks a lot !
PS : php addon was already installed when i installed wake. Thx ;-) - shaggysAspirantActually when I switched from the wrong PHP to the other one I also got the
Warning: socket_sendto() [function.socket-sendto]: unable to write to socket [13]: Permission denied in /c/webroot/wake/action.php on line 37
//Lasse - shaggysAspirant
super-poussin wrote: Will look on this asap
Did u have time to look at this yet?
Thanks in advance
//Lasse - PereToinouAspirantShaggys, if you find a solution, please could you post it into this forum ? I'll do the same if i can find.
"Wake" will be a very very usefull addon if we can do it run !
See you - PereToinouAspirantSalut poussin,
y'a du neuf, t'as eu le temps de jeter un oeil ?
Merci d'avance ! - gonzo_74AspirantI 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.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!