PDA

View Full Version : WakeOnLAN from Girder



Marquis
January 26th, 2007, 06:49 AM
Hi Folks,

I must send a WOL Magicpacket from my Server (Girder running on it) to my HTPC to wake him up. I haven't found a WOL-function inside Girder, so please can someone show me the easiest way to do this?

BTW: If possible, I want a pure Girder solution. I know that there a cmd-programs that offer that functions, but I don't want to be dependent from those.

Thanks,
Marc

Promixis
January 26th, 2007, 06:51 AM
Marc,

its win.WakeOverLan

Marquis
January 26th, 2007, 10:29 AM
Dear Mike,

thanks for you help - I must have been blind on both eyes.

I configured a scripting-action in Girder that uses the following line:

win.WakeOverLan("192.168.1.255","00:30:05:33:36:E2")

return values after execution: ret = true, err=nil

But my HTPC did not wake up. Then I took a look into the NR config, because when I send the WOL from NR it's waking up. The IP there is 255.255.255.255, but also got no success from Girder.

Girder is wired connected, NR is wireless. But both go through the same router. I am wondering where is my mistake.

harleydude
January 26th, 2007, 10:30 AM
Mike

I was looking at this for something I am doing, does it require both the IP and MAC parameters?

Rick

Dinges
January 27th, 2007, 06:14 AM
Note that you must enable WOL on the other PC. You should:

- Check that the motherboard/nic has support for it.
- Enable WOL in the bios
- Enable WOL in windows (check device manager -> networkcontrollers)

For this to work, you must furthermore:

- Know the MAC address (You know this I presume)
- Send it to a broadcast IP adress (for local lan, use: 255.255.255.255)

WOL should work now.

You might try apps like winwake to try and see if you can get it right.

harleydude
March 10th, 2008, 07:25 AM
Does anyone have this working in Girder 5? I have tried and it does not work. I am able to WOL other PC's from the same PC using 3rd party apps.


local ret, err = win.WakeOverLan("255.255.255.255", "00:50:2C:A4:3A:AB")
print (ret,err)

returns true,nil but it does not wake up the PC.

mhwlng
March 10th, 2008, 07:36 AM
this works for me :



ret,err =win.WakeOverLan("192.168.1.255", "00:19:DB:29:9E:AA")

Marcel

harleydude
March 10th, 2008, 07:55 AM
That did it.

Thanks Marcel