If a script is having trouble, capture & examine any errors its components produce. Discarding output (especially error output) is a good way to hide what's going wrong.All those cryptic piles of symbols matter, and if you get them a little bit wrong you can wind up doing something very different from what you intended.There are some scripting lessons to be learned here: I suspect if you look in the file "1", you'll be able to tell which of these (or possibly something else) is happening. Which means the ping will fail and exit with an error status, making your loop run forever. Which doesn't actually exist on the Internet. Other versions will interpret 8.8.8.8 as a hop to use on the way to the final destination 2, which is an old shorthand for the IP address 0.0.0.2. Some versions of ping will give an error/usage message here, because they only accept a single target IP address (and then exit with an error status, making your loop run forever). One solution for this, is sending the packet to the broadcast IPv4 address, which every devices receives. Note how it shows "dynamic" when your program successfully wakes the TV, but shows "invalid" when it fails to wake the TV up. You can view this list with the command arp -av on Windows The real question then becomes, why does it work directly after shutting down, and the reason for this is that your OS keeps a list of IPv4+mac address table, so it can quickly send the packet out. The real wake on lan packet will never be send, as it des not know the destination mac address. Since you TV is shutdown, it does not respond. So it asks the network "Who has IPv4 192.168.2.32? Tell me your mac address". When your computer has to send a packet to an IPv4 address, it needs to know its MAC address. When sending a wakeonlan packet, you need to make sure the target device can receive the packet.Īt the moment, you are sending the packet to the IPv4 address of the device.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |