How to set up Wake on LAN on Xiaomi router: the full guide

Today's users often have to access their home computer from a distance, whether it's downloading files, working remotely, or simply managing a home server, all of these tasks require that the PC be turned on. Wake on LAN (WoL) technology allows you to run a computer remotely by sending a dedicated network packet over a local network or the Internet. However, in order for this mechanism to work, the router must correctly route this signal to the target device.

Xiaomi routers running on MIWiFi or global firmware have functionality to implement this scheme, but the settings are often hidden or require an understanding of network processes. You do not need to be a network engineer to set this up, but it is important to follow the steps carefully. In this article, we will discuss the process in detail, eliminating common errors that often block the function.

The main difficulty is that the standard Magic Packet that initiates the awakening must be delivered to a specific network adapter. Xiaomi router is the main controller here, who must know where to send this signal. Without the correct configuration of DHCP and address binding, your computer will remain in sleep mode, ignoring attempts to connect from the outside.

The principle of WoL technology operation in Xiaomi networks

Wake on technology LAN is based on sending a special frame of data that contains MAC-The network card of the computer, even when the PC itself is turned off, continues to consume minimal energy to listen to the network. When the Xiaomi router receives this specific signal, it broadcasts it to all ports or to the specific port to which the PC is connected. The key here is static. IP-address to be assigned to the device.

In the Xiaomi ecosystem, routers use their own traffic management system. If you use the Mi Router 4A, Mi Router Pro or the newer AiMesh system, the logic of the operation remains similar, but the interface may differ. The router must not just skip the packet, but ensure that it is not lost when translating addresses (NAT), which is why dynamically issuing addresses over DHCP without redundancy makes the WoL non-working, since after turning off the PC, its address can go to another gadget.

It's important to understand that the router is the intermediary between the outside world (the Internet) and the internal network. To function from the external network, you need to skip the port, but the router itself must clearly know which internal device the port corresponds to. MAC-address IP-The gateway will cause the signal to simply disappear to nowhere.

โš ๏ธ Warning: Make sure your computer is connected to the Xiaomi router with an Ethernet cable.Most built-in Wi-Fi adapters do not support wake-up when off, as the wireless module shuts down.

The stability of the entire system depends on how correctly the table is configured. ARP This is the mapping table. IP and MAC-If the router forgets, which one? MAC-address corresponds to the reserved IP, So the first and most important step is to fix the addressing within the LAN.

๐Ÿ“Š How do you plan to use Wake on? LAN?
Remote work
File downloading
Access to games
Server management
Just for the sake of interest.

Equipment preparation and BIOS verification

Before you go into the Xiaomi router settings, you need to make sure that the hardware itself is ready to go. Setting up the network card and the motherboard BIOS is the foundation. Without the iron-level resolution, no router settings will help turn the computer on. You need to go to your computer's BIOS/UEFI when you boot up (usually Del or F2) and find the partition associated with power management.

The desired setting can be called variously: Wake on LAN, PME Event Wake Up, Power On By PCI-E or Resume by LAN. It must be converted to Enabled state. Also, in Windows, you should check the properties of the network adapter. In Device Manager, find your Ethernet controller, go to properties and in the Power Management tab, allow the device to withdraw the computer from waiting mode.

โ˜‘๏ธ Verification of PC readiness

Done: 0 / 4

After the program preparation, you need to fix MAC-This is a unique identifier for your network card, which looks like a set of 12 hexadecimal symbols (e.g., hexadecimal symbols, 00-1A-2B-3C-4D-5E). Write it down, you'll need it to set up your router. IP-And you can type in ipconfig on the command line and find the "Primary Gateway" line, which is the address of your Xiaomi router, usually. 192.168.31.1 or 192.168.1.1.

Static IP setting and address binding

Go to the interface of the Xiaomi router. Open the browser and enter the gateway address. After authorization (the password is usually indicated at the bottom of the device or you set it up for the first time), go to the settings section. In Chinese firmware, this section is often called Advanced Settings -> LAN Settings or Address Reservation. In global versions, look for "Static IP" or "Address Reservation".

Here you have to create a new rule. You have to tie it together. MAC-address of your computer with a specific IP-For example, assign 192.168.31.100 to your PC, which ensures that every time the computer requests an address, you will be able to use the address of the computer. DHCP-server router, it will receive this, predetermined IP. This is a critical step in the WoL operation.

ParameterMeaningDescription
MAC AddressXX:XX:XX:XX:XX:XXPhysical address of PC network card
IP Address192.168.31.100Affixed internal address
StatusEnabledActivation of the rule
Lease TimeForeverRental time (always)

After making changes, be sure to click the Save or Apple button. The router may require network services to be rebooted, but usually the changes take effect instantly. Check that the computer has actually received a new address. You can turn off and connect the network cable or run ipconfig /release and ipconfig /renew on the command line.

๐Ÿ’ก

If the Xiaomi router gives out addresses in the 192.168.31.x range, try to choose a static IP at the end of the range (e.g.,.200) to avoid conflicts with automatically connected phones and tablets.

Port Forwarding (Port Forwarding)

To run a computer from the Internet (not from a home Wi-Fi network), you need to configure port diffraction. In the menu of the Xiaomi router, find the Port Forwarding or Virtual Servers section. Often it is under "Security" or "Advanced." You need to create a new rule that will redirect external requests to a specific port in the network to your computer.

Create a rule with a name"WoL_PC". As an internal IP Please provide the static address you previously reserved (for example, 192.168.31.100). You can choose any free port, standard for WoL is considered to be 9 or 9999. Select the protocol UDP, The Magic Packet is transmitted through the Magic Packet, and the external port is also specified. 9 (or chosen by you).

โš ๏ธ Note: Opening ports creates a potential vulnerability. Use complex Wi-Fi passwords and router admin panels. Don't use standard ports like 9 for mission-critical systems, choose a random number above 1000.

After you set up the rule, check its status. It should be active. Now the router knows if it's on its external side. IP-address (WAN) come UDP-port-pack 9999, This package should be sent to the internal IP Without this step, remote launch from the mobile network 4G/5G Or from the office will be impossible.

Configure DDNS to access by domain name

The problem with most home connections is that the provider is issuing a dynamic white. IP-The address that changes every time you reconnect the router or every day, so you don't have to know a new one. IP-Xiaomi router address is used every time before waking up the PC DDNS (Dynamic DNS). She's tying the changing. IP permanent domain name.

Xiaomi routers often have built-in support for services DDNS, Sign up for one of these services, create a host (e.g. myhomepc.ddns.net) and enter your account details into your router settings in the section DDNS. After successful connection, the router will automatically update the record on the server when changing. IP-address.

What to do if the provider uses CGNAT?
If your Xiaomi router gets IP-range 10.x.x.x or 100.x.x.x, So you're in for it. NAT In this case, the port port transfer and DDNS The only solution is to ask the provider for a static white. IP or use third-party tunnels (ZeroTier, Tailscale).

Now, to run your computer, you'll need to send the Magic Packet to a domain name, not a numerical IP, which makes life much easier and makes the system more reliable. Make sure that the DDNS status on the router interface is displayed as "Connected" or "Success."

Starting a computer from a phone or other device

When all the router settings are complete, there comes a moment of truth: turn off your computer completely (close-up mode, not hibernation). Now take a smartphone connected to the mobile Internet (turn off Wi-Fi to check the work from the external network), you will need an app to send WoL signals. Popular options are Wake On Lan (Android), Mocha WoL (iOS) or Fing.

In the app, create a new device. Specify MAC-The address of your network card. IP-Address or Host Enter Your Domain DDNS (e.g. myhomepc.ddns.net) or current external IP Specify the port you've been sprinting (e.g. 9999). Press the switch on. If everything is set up correctly, the computer should start in a few seconds.

If your computer is not turning on, check the logs of Xiaomi router. Often you can see if the packet came and if it was dropped by a firewall. Also make sure that the antivirus on your PC does not block incoming connections at a low level. Sometimes it helps to resend the packet 2-3 times in a row.

๐Ÿ’ก

Successful remote launch is possible only with a combination of three factors: the correct setup. BIOS/network card, static IP net-and-dump UDP-router.

Diagnostics and troubleshooting

Even if you're fine-tuned, you can have problems. One of the common causes is network card sleep. Windows adapter properties have a tab called Power Management. Make sure it ticks "Allow this device to leave your computer in standby mode." Also, the advanced driver features may have a "Wake on Magic Packet" option that needs to be enabled.

Another problem is the ISP blocking, and some ISPs are blocking incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming incoming. UDP-Try changing the port in the Xiaomi router's port settings to another one, such as 5678"AP" (Customer isolation, which prevents devices from seeing each other, although for WoL from the outside, this is less critical than proper routing.

โš ๏ธ Note: When updating the firmware of the Xiaomi router, all settings, including port forwarding and static IP, They can be dropped to factory. Always back up the configuration before you update the router software.

If you use IPv6, the situation may be easier as each device receives its own unique public address. However, setting up an IPv6 firewall on Xiaomi routers can be more difficult for a beginner, so the classic method with IPv4 and port diffuser remains the most versatile and understandable solution.

Can I wake up my computer through Wi-Fi if it is connected without a cable?
Technically, it is possible (WoWLAN), but supported by very few adapters and routers. In 99% of cases, Wake on LAN on Xiaomi routers requires a wired Ethernet connection, since a Wi-Fi module in a sleepy PC usually turns off to save power.
Is it safe to keep port 9 open on your router?
An open port is a potential risk. Although the WoL packet itself does not carry viruses, the presence of an open port signals hackers that there are vulnerabilities, it is recommended to use a non-standard port (for example, above 10,000) and be sure to set a strong password to the router's admin panel.
Why does the computer turn on itself after a while after turning off?
This can be due to BIOS settings or network activity. If there are devices on the network that are constantly scanning the network, they can accidentally send packets similar to the Magic Packet. Try turning off wake-up on any event in the BIOS except for an explicit Wake on LAN.