How to Reboot Xiaomi Gateway Remotely: Methods and Instructions

Home network management often requires prompt intervention, especially when devices stop responding or lose connection stability. The question of how to reboot the Xiaomi gateway remotely becomes critical for network administrators and advanced users who want to avoid physical contact with equipment.

Modern Xiaomi and Mi Router devices offer different software interfaces for management, but not all of them allow you to complete a full cycle of shutdown and power on without physical access. In some cases, remote reboot is only a reconnection of the network service, in others, a full Reboot system. Understanding the difference between these processes will help you choose the right method of restoring the health of your equipment.

In this article, we will take a closer look at all the available ways to manage power and software gateways from Xiaomi. We will look at the standard web interface, mobile application capabilities, as well as more complex methods through Telnet and SSH for those who are used to working with the command line. It is important to understand that software reboot is possible only if the device is at least partially responsive to requests over the network.

Software reboot via the router web interface

The most affordable and secure way to perform a remote reboot of the Xiaomi gateway is to use the built-in web interface. This method works if the device is on the network and you can connect to it. IP-You need to open your browser on any device connected to the same LAN as the gateway.

In the address bar, type in the standard gateway address, which usually looks like 192.168.31.1 or miwifi.com. Once you enter the address, the system will request authorization. Here you will need the administrator password you set when you first set up the router. If you haven't changed it, try to find the data on the sticker at the bottom of the device, although modern MiWiFi firmware often requires you to change the password on the first sign in.

Once you have successfully logged in, you'll see a control panel, and the interface may vary depending on the firmware version (Chinese or global), but the logic remains the same. You'll need to find the system settings section, often hidden in the Settings or System Settings menu. Look for Status or Status, where the reboot button is usually located.

πŸ“Š How do you usually manage a router?
Through the web interface on the PC
Through the mobile app
Through SSH/Telnet
Just a button on the body.

When you find the button you want, usually signed as Reboot or Reboot, click on it. The system will request confirmation of the action, warning you that the connection will be temporarily severed. This is normal behavior, since in the Reboot process all network interfaces are turned off. The process takes 1 to 3 minutes depending on the gateway model and the number of devices connected.

⚠️ Note: When rebooting via a web interface, make sure you have an alternative communication channel with a remote object (e.g., a remote object, 4G-modem or second provider, otherwise you will lose access to the device immediately after confirming the command.

Remote management through the Mi Home app

The Mi Home mobile app is the central control node for Xiaomi’s eco-friendly smart home, including gateways and routers. This is ideal for users who do not want to deal with the problem of the mobile phone. IP-However, the functionality of remote reboot in the application is often limited or hidden to prevent random user actions.

To access the management functions, open the app and go to the device tab corresponding to your gateway or router. If the device supports remote control, you will see its status online. In the device settings menu (usually a three-dot icon or a gear in the corner), look for General Settings. This is where the reboot function can be located.

It is worth noting that not all Xiaomi gateway models have a software reboot button in the mobile interface. This is due to the company's policy, which seeks to simplify the interface for the average user. If you did not find such a button, this does not mean that the feature is not available, it is just hidden in other sections or requires activation through plugins.

πŸ’‘

If there is no reboot button in the main menu of the application, try adding the β€œMi Router” plugin or updating the application to the latest version, as the functionality often changes.

In some cases, full remote management requires linking the router to your Mi Account and enabling cloud management. Without this, the application can only work on a local Wi-Fi network, making remote reboot from another point in the world impossible. Check the cloud settings in your device profile.

Use of the Telnet and SSH command line

For advanced users and system administrators, the most reliable way is to use the Telnet or SSH remote access protocols. These tools allow you to send direct commands to the gateway operating system, ignoring the GUI. This is especially useful if the web muzzle is getting stuck, but the system kernel is still responding to queries.

You will need a terminal to connect (to) Linux/macOS) Or a program like Putty (on Windows). IP-gateway address and port (standard for SSH β€” 22, for Telnet β€” 23). Login and password can be standard (root/root) or the ones you installed earlier. SSH Often closed by default and requires activation through special URL-address or configuration modification.

Once you have successfully logged in, you will have access to the command line, and you will use a standard Linux command to perform the reboot.

reboot

Or if a more stringent reboot is required:

shutdown -r now

These commands initiate the immediate process of turning the device off and on. Unlike the web interface, there are no graphical confirmations, so be careful when you type. A syntax error can lead to the wrong action, although modern shells usually have protection against critical errors.

β˜‘οΈ Preparation for SSH-access

Done: 0 / 4

⚠️ Attention: Using the command line requires accuracy. Entering the rm command -rf Or other destructive operators can completely destroy the gateway's file system, turning it into a brick".

Comparison of Remote Reboot Methods

The reboot method you choose depends on your current situation, device access level and gateway model. The web interface is convenient for rare operations, SSH is indispensable for automation and deep diagnostics, and the Mi Home app is suitable for basic control. Below is a table to help determine the best way.

MethodAccess requiredDifficultyReliability
Web interfaceLocal area network / Wi-FiLow.Medium (depending on GUI)
Mi Home appendixInternet / Mi AccountLow.Low (depending on model)
SSH / TelnetNetwork / Password rootTall.High (direct access to the core)
Smart socketPhysical access to the socketMediumMaximum (hardware discharge)

As you can see from the table, software methods have their limitations: if the GUI is stuck, the web method will not work. If the kernel itself is hanging, neither SSH nor the application will help, in which cases hardware intervention is required, which can also be organized remotely, but with additional hardware.

πŸ’‘

The most reliable method is SSH, but it requires pre-configuration. The most affordable is the web interface, but it is powerless when the interface freezes.

Hardware reset through smart sockets

What if the software methods don't work and you can't physically get to the Xiaomi gateway? There's a hardware way that guarantees that even a fully-hung device can be rebooted, and that requires a smart outlet that's compatible with the Mi Home or Home Assistant ecosystem.

The idea is that the gateway connects to a smart outlet, and the power outlet itself is controlled remotely over the Internet, and when you need to reset the gateway, you just turn off the power to the outlet through the app, wait a few seconds and turn it on again, which is equivalent to pulling the cord out of the network.

To implement this scheme, you will need:

  • πŸ”Œ Smart socket (for example, Xiaomi Mi Smart Plug).
  • πŸ“‘ Stable Wi-Fi for the outlet itself.
  • πŸ“± Smartphone with installed application for socket management.
  • βš™οΈ Customized scenario or manual power control.

This method is the only way to restore the gateway if its operating system completely no longer responds to any network requests (ICMP, HTTP, SSH), but it carries certain risks for the file system, as it does not correctly complete the writing processes.

Risks of abrupt power outage
Abrupt shutdown can damage the file system, lose logs, or reset factory settings in the worst case scenario, and only use this method when software reboots are not possible.

Frequent problems and their solution

In the process of remote management, users often face a number of typical problems, one of the most common is the loss of connection immediately after sending a reboot command. This is an expected behavior, but it can cause panic. Make sure you do not try to reconnect in the first 30-60 seconds.

Another problem is that you can't log in, and if you change your password but you forget to update it in your browser or application data, access will be blocked. In SSH, changing your host keys or blocking access after several failed login attempts is a common problem.

It is also worth mentioning the problem of β€œdouble”. NAT". If your Xiaomi gateway is connected to another router and doesn’t have white IP-Remote access from an external network (not from a local one) will not be possible without setting up port forwarding or using the VPN.

⚠️ Note: Do not leave Telnet ports (23) open to access from an external network (WAN). This protocol transmits data, including passwords, in plaintext, making your network vulnerable to hacking.

If none of the software methods helps, and there is no smart socket at hand, you can only hope for the stability of the device or look for the possibility of physical access. IP-plug-out (PDU), which allow cyclically switching on and off power ports over the network.

πŸ’‘

For critical network nodes, always plan a backup control channel or use hardware watchdog timers if possible.

Can I reboot the Xiaomi gateway if I forget the administrator password?
If you forget your password for the web interface or SSH, the software reboot through these channels will not be available. You will have to use the physical Reset button on the device body (holding it for 5-10 seconds), which will reset the settings to the factory.
Is it safe to reboot Xiaomi router remotely often?
Yes, software reboot is safe for hardware, but frequent reboots (several times a day) can indicate firmware, overheating, or power instability, and normally, just reboot the device once a week or a month to clean up RAM.
Why does the Mi Home app not see my router to manage?
This can happen if the router and phone are on different subnets, or if the router has a cloud management feature disabled, and check if the router is tied to your region in the app, as some Chinese models are not visible in global versions of the app without changing the region.
How do you know? IP-gateway address?
On a Windows computer, open the command line and type ipconfig. Find the Default Gateway. On macOS or Linux, use the command netstat -nr | grep default or ip route | grep default. This is usually the address of the type 192.168.x.1.