You are not logged in.
Pages: 1
Do you have an idea why the windows command
WolCmd.exe 00902789FB02 192.168.7.12 255.255.255.0but linux command
wol -i 192.168.7.12 00:90:27:89:FB:02doesn't?
Last edited by Lockheed (2012-03-05 10:10:25)
Offline
andif you try : wol 00:90:27:89:FB:02 ?
“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson
Offline
This one works on LAN, but I will need to run it from the internet through router's port forwarding and I don't think it will forward it if I do it this way, without the IP.
Offline
Exactly. But you will need to specify the EXTERNAL ip of your router.
wol -i <your.external.ip.address> 00:90:27:89:FB:02
and you'll have to forward the right port to your target machine. ( 40000 by default, if I remember well )
“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson
Offline
That's the problem It doesn't work with -i even if I use local IP.
Offline
That's the problem It doesn't work with -i even if I use local IP.
I use for wake on lan this:
https://aur.archlinux.org/packages.php?ID=52919
Here is the usage:
https://github.com/Asfaloth/Woly/blob/master/README.md
A simple, lightweight distribution - Why the hell 'simple' ? It doesn't sound geekish -.-"
Offline
My knowledge of the OSI layers is a bit rusty, but from what I can read on wikipedia it seems that you might be out of luck unless you put the machine you want to wake up in the DMZ. Wake on lan might not use tcp or udp so forwarding a tcp/udp port will not work I suppose.
Different implementations (software wise) of wake on lan do things differently so you may want to try a few different programs. You really should at least read [1] and then try to move to more specific pages.
I have seen cases where a recently powered off machine would wake up fine but if left alone for some time (say 1 week) it would not wake up, even though the router would say a link was detected at the port used by the machine in question, so I'd say you might want to start with a direct connection to see if things work and then move from there.
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
My knowledge of the OSI layers is a bit rusty, but from what I can read on wikipedia it seems that you might be out of luck unless you put the machine you want to wake up in the DMZ. Wake on lan might not use tcp or udp so forwarding a tcp/udp port will not work I suppose.
Hey R00KIE,
WoL is a stupid (= very simple) protocol.
The network card just checks for the Magic Packet sequence.
TCP will never work, because it's connection oriented. The 3-way handshake won't work with only one hand ![]()
You have to forward a UDP port on your router which routes the UDP traffic to your sleeping computer.
Then call Woly:
$ ./woly -4 -h YYY.YYY.YYY.YYY -p ZZZZ -m XX:XX:XX:XX:XX:XXWhere:
YYY.YYY.YYY.YYY stands for your public ip address (http://whatismyip.org)
ZZZZ is the forwarded port
XX:XX:XX:XX:XX:XX is the MAC address of the sleeping computer
hope my post was clear enough (-;
A simple, lightweight distribution - Why the hell 'simple' ? It doesn't sound geekish -.-"
Offline
I knew tcp wouldn't work, but there is no assurance that the used program will use udp either (unless that can be forced or the program explicitly says it uses udp), to quote wikipedia:
The magic packet is a broadcast frame containing anywhere within its payload 6 bytes of all 255 (FF FF FF FF FF FF in hexadecimal), followed by sixteen repetitions of the target computer's 48-bit MAC address, for a total of 102 bytes.
Since the magic packet is only scanned for the string above, and not actually parsed by a full protocol stack, it may be sent as any network- and transport-layer protocol, although it is typically sent as a UDP datagram to port 7 or 9, or directly over Ethernet as EtherType 0x0842.
The problem is if one is trying to use a program that sends the packet as EtherType 0x0842 and expecting it to pass the router, and believe me, I've seen both implementations. That is why I suggested to try different programs as some send udp packets and others use EtherType 0x0842. Even on the local network things might not work well, or the cards might not like one of the ways of doing it, that is why I also suggested to start with a direct connection if possible and then go from there.
On another note, make sure you activate wol *every* time before you turn off the machine as that setting is reset every time the driver is loaded (that can be done on rc.local).
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
Pages: 1