Factory Reset Mi WiFi Router 4: 3 Proven Methods

Router Xiaomi Mi WiFi Router 4 (models R4A And R4CM) is a popular solution for home networks due to its stable operation and affordable price. However, even the most reliable equipment sometimes requires a factory reset. Perhaps you forgot your password? admin panels, have experienced constant connection drops, or your router has started acting up after a firmware update. In such cases, a reset is the fastest way to get your device back up and running.

In this article we will look at all possible reset methods Mi Router 4, including hardware (button Reset), software (via the web interface), and alternative methods for emergency situations. You'll also learn how to properly configure your router after a reset, avoid common errors, and save important data. If your router stops responding to connections or displays an error 502 Bad Gateway — here you will find the solution.

When You Need to Reset Mi Router 4: 5 Obvious Reasons

You shouldn't reset your router settings at the first sign of a problem—sometimes a reboot or firmware update is enough. But there are situations when factory reset becomes the only way out:

  • 🔑 Lost password from the web interface (admin/password not suitable) or Wi-Fi networks.
  • 🌐 The router doesn't distribute the Internet., despite the working connection from the provider (the orange indicator is on WAN).
  • 🔄 Cyclic reboot (the router constantly turns on/off).
  • Errors after firmware update, for example, the web interface is not available at 192.168.31.1.
  • 🛡️ Suspected hacking — unknown devices have appeared on the network or DNS servers have changed.

If the problem is temporary (for example, slow internet during peak hours), try first diagnostic stepsReset erases all settings, including:

  • 📡 Wi-Fi name and password (SSID).
  • 🔌 Provider connection parameters (type WAN, PPPoE/DHCP).
  • 🔒 Firewall rules, DMZ, port forwarding.
  • 📱 List of connected devices and priorities QoS.
⚠️ Attention: After the reset, the router will return to the default IP address. 192.168.31.1, network name Xiaomi_XXXX and the password indicated on the sticker under the case. If the sticker is worn off, the password can be found in special section.

Method 1: Hard reset using the Reset button (for all Mi Router 4 models)

This is the most reliable method, which works even if the router does not turn on or is frozen. Button Reset on Mi Router 4 It is recessed into the body, so you will need a thin object: a paper clip, a toothpick, or an unbent paper clip.

Step-by-step instructions:

  1. Disconnect the router from the power supply (remove the plug from the socket).
  2. Find the button Reset on the back panel (next to the port) WAN).
  3. Hold the button Reset And don't let go, while you connect the power.
  4. Continue holding the button 10-15 secondsuntil the indicators start flashing orange.
  5. Release the button - the router will automatically reboot and reset the settings.

If the indicators do not flash, repeat the procedure by holding the button longer (until 20 seconds). On models R4CM (Chinese version) may be required 30 seconds retention.

☑️ Checking the reset was successful

Completed: 0 / 4
⚠️ Attention: Do not use for pressing Reset Metal objects (needles, knives) can damage the button contacts. A plastic toothpick or the special tool included in the kit is the best option.

What to do if the Reset button does not work?

  • 🔌 Check the power supply - try another adapter with similar parameters (12V/1A).
  • 🔄 Try resetting your router without turning off the power (hold Reset 30 seconds).
  • 🛠️ If the router doesn't respond, the memory chip may be faulty - you will need repair.

Method 2: Reset via the web interface (if you have access to the admin panel)

If you remember your control panel password, you can reset the settings using software. This method is safer because it allows you to preserve some settings (such as firmware).

Instructions:

  1. Connect to your router via cable or Wi-Fi (use your current login details).
  2. Open your browser and go to the address http://192.168.31.1 (or miwifi.com).
  3. Enter your login and password (default - admin/admin, if you haven't changed it).
  4. Go to the section Settings → Advanced → System Management → Recovery.
  5. Click Reset settings and confirm the action.

After confirmation, the router will reboot (takes ~2 minutes). If the section Recovery missing, update firmware via Settings → Update.

Router model Reset path in the web interface Reboot time
Mi Router 4 (R4A) Settings → Advanced → System Management → Recovery 1–2 minutes
Mi Router 4C (R4CM) Advanced → System Tools → Restore 2-3 minutes
Mi Router 4A Gigabit Settings → System → Backup/Reset 1 minute

On Chinese routers (R4CM), after a reset, you may need to link your Xiaomi account via the Mi WiFi app. Without this, some features (such as guest Wi-Fi) will be unavailable.

Method 3: Reset via the Mi WiFi mobile app (for firmware-enabled routers)

If your Mi Router 4 flashed with alternative firmware (for example, Padavan or OpenWRT), standard reset methods may not work. In this case, the official app will help. Mi WiFi (available for Android And iOS).

How to reset via app:

  1. Install Mi WiFi from Google Play or App Store.
  2. Connect to the router's network (even if there is no internet).
  3. Open the app and select your router from the list.
  4. Go to Settings → Advanced → Reset settings.
  5. Confirm the action and wait for the reboot.

If the application does not see the router:

  • 📱 Reinstall the app and grant all permissions (network access, location).
  • 🔄 Restart your router and phone.
  • 🌐 Check that your phone is connected to the network Mi Router 4, and not to another access point.
📊 Which reset method did you use?
Reset button
Via the web interface
Via the Mi WiFi app
Another method
⚠️ Attention: On routers with custom firmware, reset via the app Mi WiFi may lead to "bricking" (loss of functionality). In this case, a firmware update will be required UART or TFTP.

What to do after a reset: setting up Mi Router 4 from scratch

After the reset, the router will return to factory settings and will have to be configured again. minimum checklist to restore operation:

☑️ Basic setup after reset

Completed: 0 / 5

Step-by-step setup:

  1. Internet connection:
    • Go to Settings → Internet.
    • Select connection type (PPPoE for Rostelecom, DHCP for Beeline/MTS).
    • Enter your provider login/password (specified in the contract).
  2. Wi-Fi setup:
    • Go to Settings → Wi-Fi.
    • Set a new network name (SSID) and a strong password (recommended) WPA2-PSK).
    • Turn it off WPS (security vulnerability).
  • Firmware update:
    • Go to Settings → Update.
    • If a new version is available, install it (do not interrupt the process!).

    For advanced users:

    • 🔒 Set up DMZ or port forwarding for game consoles/servers.
    • 📊 Turn on QoS to prioritize traffic (for example, for streaming or online gaming).
    • 🛡️ Replace the default DNS with 1.1.1.1 (Cloudflare) or 8.8.8.8 (Google) to speed up the Internet.

    Common errors after a reset and how to fix them

    Even after a successful reset, problems may arise. Here are the most common ones and how to solve them:

    Problem Possible cause Solution
    It doesn't open 192.168.31.1 The router's IP address has changed Check your current IP via ipconfig (Windows) or ifconfig (Mac/Linux). Connect to the new address.
    There is Wi-Fi, but no internet. Incorrect settings WAN Check your connection type (PPPoE/DHCP) and data from the provider.
    The router reboots cyclically Corrupted firmware Flash the router manually via TFTP (instructions in special section).
    Settings are not saved File system failure Perform the reset again by holding Reset 20+ seconds.

    If the router gives an error 502 Bad Gateway when trying to log into the admin panel:

    1. Clear your browser cache or try a different one (for example, Firefox instead of Chrome).
    2. Disable VPN/proxy.
    3. Reset your browser to factory settings.
    What to do if the router does not respond to a reset?

    If the router fails to reset using any of the methods, the flash memory chip may be damaged. In this case, the only solution is to reflash the firmware via the UART port using a programmer. This requires disassembling the router and soldering to the contacts on the board. If you're unexperienced, it's best to contact a service center.

    Where can I find the factory Wi-Fi password if the sticker has worn off?

    On the bottom panel Mi Router 4 There is a sticker with connection data: network name (SSID), Wi-Fi password, and MAC address. If the sticker is worn off or missing, try one of the following:

    Method 1: View in the web interface

    1. Connect to the router via cable.
    2. Open 192.168.31.1 and log in using your username/password admin/admin.
    3. Go to Settings → Wi-Fi — the current password will be displayed here.

    Method 2: Use the Mi WiFi app

    1. Connect to the router's network.
    2. Open the app Mi WiFi and select your router.
    3. The password will be displayed in the section Wi-Fi Management.

    Method 3: Password generation algorithm

    On some versions Mi Router 4 the password is generated using the formula:

    The last 6 characters of the MAC address (without colons) + "XM"

    Example: If the MAC address A4:17:31:AB:CD:EF, the password will be CDEFXM.

    ⚠️ Attention: On Chinese versions (R4CM) The password may be linked to the serial number. In this case, it can only be recovered using the official software. MiWiFi.

    When a reset doesn't help: signs of hardware failure

    If your router doesn't respond to a reset, doesn't turn on, or constantly overheats, the problem may be hardwareHere are some signs that your device needs repair:

    • 🔥 The router gets very hot (hot even after 5 minutes of operation).
    • 💡 The indicators do not light up or light up in a non-standard color (for example, red).
    • 🔌 Port WAN/LAN does not work (cable is not detected).
    • 🔄 The reset does not work either via the button or through the web interface.
    • 📶 Wi-Fi turns on, but devices cannot connect (authentication error).

    What you can do yourself:

    • 🔧 Check the power supply - measure the voltage with a multimeter (there should be 12V ± 5%).
    • 🧹 Clean the router from dust (especially the ventilation holes).
    • 🔄 Try flashing your router through TFTP (instructions below).

    When to contact service:

    • 🔥 The power controller burned out (black deposits are visible on the board).
    • 💾 The memory chip is damaged (the router does not maintain settings).
    • 📡 The Wi-Fi module does not work (there is no signal even after a reset).

    Emergency Flashing of Mi Router 4 via TFTP (for experienced users)

    If the router is bricked after an unsuccessful update or reset, it can be restored via the protocol TFTPThis method requires a Windows PC with a network card.

    What you will need:

    • 🖥️ Computer with Windows 7/10/11.
    • 🔌 Network cable (connect the router to the PC directly).
    • 📁 Firmware for your model (download from official website).
    • 🛠️ Program TFTP client (For example, TFTPD64).

    Step-by-step instructions:

    1. Set up a static IP address on your PC 192.168.31.100 with a mask 255.255.255.0.
    2. Connect the router to the PC with a cable (to the port LAN).
    3. Launch TFTPD64 and specify the path to the firmware file (.bin).
    4. Hold the button Reset on the router, connect the power and hold the button 10 seconds.
    5. IN TFTPD64 send the firmware file to the address 192.168.31.1.
    6. Wait until it is completed (the router will reboot automatically).

    If the firmware does not work:

    • 🔌 Check the cable and port LAN.
    • 🔄 Try a different firmware version (for example, an older one).
    • 🛡️ Disable Windows Firewall.
    ⚠️ Attention: Incorrect firmware can permanently damage your router. If you're unsure, contact a service center.

    Diagnosing problems before a reset: maybe it's not necessary?

    Before resetting the settings, check if the problem is caused by external factors. Here diagnostic checklist:

    ☑️ Pre-reset check

    Completed: 0 / 5

    Common problems and their solutions:

    Symptom Cause Solution
    Slow Wi-Fi Channel congestion, interference Change the Wi-Fi channel in the router settings (select 1, 6 or 11 for 2.4 GHz).
    Some websites cannot be accessed DNS failure Replace DNS with 1.1.1.1 or 8.8.8.8 in the settings WAN.
    The router is overheating Dustiness, ventilation Clean the case from dust, provide space around the router.
    Wi-Fi disconnects periodically Energy saving Turn it off WMM or 802.11n Only in the Wi-Fi settings.

    If the problem is temporary (for example, lags in the evenings), try:

    • 📡 Install a repeater or mesh system to boost the signal.
    • 🔄 Enable QoS and prioritize important devices (such as smart TV).
    • 🛡️ Update your router firmware and network card drivers on your PC.

    FAQ: Frequently asked questions about resetting the Mi Router 4

    ❓ How do I find out the model of my Mi Router 4 (R4A or R4CM)?

    The model is indicated on a sticker under the case. You can also determine it by its appearance:

    • R4A (global version) - white case, 4 antennas.
    • R4CM (Chinese version) - black case, inscriptions in Chinese.

    Another way: go to the web interface and look in the section Status → Device.

    ❓ Is it possible to reset a router without losing the firmware?

    Yes, if you use the reset via the web interface (Settings → Recovery). This method preserves the current firmware, resetting only user settings. Hard reset (using the button) Reset) erases everything, including firmware.

    Why does the router ask me to link it to my Xiaomi account after a reset?

    This is a feature of the Chinese versions (R4CM). To remove the binding:

    1. Install the application Mi WiFi.
    2. Create a Xiaomi account (or log in to an existing one).
    3. Connect to the router and bind it via the app.

    If the router is flashed with custom firmware (for example, Padavan), no binding is required.

    How do I reset my router if I forgot my admin password and the reset button doesn't work?

    In this case it will help hardware reset via UART:

    1. Disassemble the router and find the contacts UART (usually 4 pins: GND, TX, RX, 3.3V).
    2. Connect to them via a USB-TTL adapter (eg. CP2102).
    3. Use the program Putty or Screen to access the console.
    4. Enter the command firstboot and confirm the reset.

    This method cannot be implemented without soldering and a programmer. If you're unsure, contact a service center.

    ❓ Is it possible to roll back the firmware after a reset?

    Yes, but only if you have a backup of the old firmware. After resetting, the router will revert to the factory version, and it's impossible to roll back without a backup. To avoid problems:

    • Before updating, always save the current firmware (section Settings → Backup).
    • Download firmware only from official website.