WOL (Wake on LAN) script - start a computer remotly - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (/forumdisplay.php?fid=151)
+---- Thread: WOL (Wake on LAN) script - start a computer remotly (/showthread.php?tid=24843)
- dragonneus - 2006-01-07 08:54
trying to use the wol script i have added all mac addresses of the pcs i wish to activate via xbmc wol script, all nics are wol capable and has been confirmed by seeing it on my switch when all machines are off. all pcs in question have wol activated in the cmos settings on the motherboards. even using an xover cable directly doesnt work.
- Asteron - 2006-01-09 20:01
can you send a wol from pcs to eachother? some older motherboards require a special cable going from the nic to the machine for it to work. i would make sure that this signal works before trying it on the xbox.
- dragonneus - 2006-01-10 11:08
ill try that thankyou for the insight. when you say special cable do you mean a crossover?
- sCAPe - 2006-01-10 15:08
my network card on my pc is onboard, thus there is no wol cable from the netword card to the motherboard.
the wol script is also not functioning for me. i have enabled wol in my computers bios. i have entered the correct mac-adress in the script. but i cannot wakup my pc from the xbox.
is the script working for anybody? can somebody confirm this script works in general?
any hints or tips?
- Asteron - 2006-01-10 17:54
(dragonneus @ jan. 10 2006,04:08 Wrote:ill try that thankyou for the insight. when you say special cable do you mean a crossover?there is such a thing as a wol cable (small two wires) that connects an nic to the motherboard that could possibly be required (not sure though).
for wol to work it must construct a magic packet that contains
ffffffffffff followed by the mac address 16 times.
Quote:00 ff ff ff ff ff ffi dont have wol setup but remember looking at that script a while ago. you might need to be careful about router settings i suppose? the router might block broadcast traffic. maybe you should send it on a port forwarded to the target computer.
- sCAPe - 2006-01-10 18:27
(asteron @ jan. 10 2006,16:54 Wrote:i dont have wol setup but remember looking at that script a while ago. you might need to be careful about router settings i suppose? the router might block broadcast traffic. maybe you should send it on a port forwarded to the target computer.router settings. that could be the problem. my computer is connected to the router and the xbox is connected to the router too.
could you please help me which port exactly and which protocol tcp/udp to forward in the router config? so that the magic packet for wakeonlan arrives to my computer and will not be blocked by my router.
i think i cannot configure any port in the wol script, or can i ?
thanks in advance.
- Nuka1195 - 2006-01-10 19:32
do you have a link light even with power off? you should for wol to work.
- Asteron - 2006-01-10 20:32
the magic packet shouldnt care about port... looking at the code it looks like this
Quote: # broadcast it to the lan.
can be changed to something like
Quote: # send to specific computerreplace those last two fields with the pc's local address.
this makes the script less general of course. try setting the router to forward the port to the correct ip.
- dragonneus - 2006-01-13 08:47
i will certainly try your idea. i have to say though that even if i use a crossover from the xbox directly to the pc (removing the router and switch) it still doesnt work. anyone else have any ideas. i mean i have a seperate room thats my pc lab its not difficult to just turn them on but it would be cool to get this to work.
- dragonneus - 2006-01-13 08:48
and yes nuka1195 i have all link lights on my switch when the power is off to the pcs in question.