WOL network wake up remote boot

November 4, 2019 1866 point heat Like people 1 1 comment


The basic knowledge of WOL, and how to open the BIOS, whether the motherboard supports WOL, and so on, are not described here. These are believed to be available on the Internet, and a lot of tutorials are searched, so it is not difficult to find them.

The premise of this article is that you can wake up your computer through LAN, otherwise, there is no need to continue to read.

If I am at home at ordinary times, the common way is to let tmall Genie help me turn on the machine, which is just a matter of a word;

When you are not at home, log in to the router background, (I use the Merlin firmware) location in the network tool - wake up over the network (LAN)
Enter the MAC address to wake up the computer.

The disadvantage of this method is to visit the router background every time. It is not convenient and friendly for family and friends to use, and it is easy to misoperate;

Another way is to access the home intranet through VPN, and then use tools or software to send wake-up packets to a device, but the same operation is not very convenient, and even often can not connect to VPN.

Although all the methods mentioned above are feasible, they are still somewhat wordy and not very good.

Later, I thought of an idea, through the Internet or a page, a key to wake up, to save other steps

At that time, I didn't quite understand it at that time. Together with my friends, I wanted to catch the data returned by tmall genie to realize remote wake-up of the computer,
With the help of a friend, the packet was also caught, but in the end, the test was also a lot of problems, and it was not finished.

Two days ago, I saw that there was a method on the Internet to directly map any port of the device. As long as you send the magic package, you can also realize the remote boot method,

According to this idea, there is this: https://api.vv1234.cn/wol/  Wan remote wake up interface
It is also very simple to use. You only need to provide the router DDNS address, device MAC address, and wake up the port used by the device,
It is strongly recommended that you design and construct the form form by yourself. If you have a good-looking template, you are welcome to contribute.
Example:
https://api.vv1234.cn/wol/wol.php?hostname=Home.ddns.org&mac=04:D4:4N:4D:8F:CF&port=999

The basic operation is as follows: forward through the port, map a port out, and then send packets through the interface,
At this time, the wake on LAN Monitor can be used to monitor whether the packets can be received normally
Attachment: wakeonlanmonitor blueplay cloud download address: https://www.lanzous.com/i75o0cd? T password gcod
If the data packet can be received normally, the device can be shut down to test whether it can be turned on.
Of course, there are some differences in Merlin firmware. Because there is no ARP binding function, after the computer is shut down, the traffic transmitted by the port cannot wake up the device normally,
In order to facilitate use, you need to write an ARP binding script
#ARP binding IP address
arp -s 192.168.2.100 04:D4:4N:4D:8F:CF

Then add it in tools / script

 

Gcod

Talking about the trivial matters of life and talking about the whole world, that's all

Article review

  • repostone

    There's no need to keep reading.

    November 4, 2019