This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

WoL script problem
#1
Bug 
Hello,

Is there any simple Wake-On-Lan script, to wake PC by Logic Machine?

I tried to use code from thread:
http://forum.logicmachine.net/showthread...light=wake
but it doesn't work.



Just found a working script:

Code:
function wol_send(mac_dest)

 local mac = ''
 for w in string.gmatch(mac_dest, "[0-9A-Za-z][0-9A-Za-z]") do
   mac = mac .. string.char(tonumber(w, 16))
 end
 local udp = require("socket").udp()
 udp:settimeout(1)
 udp:setoption("broadcast", true)
 udp:sendto(string.char(0xff):rep(6) .. mac:rep(16) , '255.255.255.255', 9)
 
end

CASE CLOSED  Smile
Reply


Messages In This Thread
WoL script problem - by leondias - 20.03.2017, 13:24
RE: WoL script problem - by admin - 21.03.2017, 07:15
RE: WoL script problem - by leondias - 21.03.2017, 08:10

Forum Jump: