How to find out the password from Wi-Fi on the Xiaomi router: all working methods

Why you can’t just β€œforget” your Wi-Fi password on Xiaomi

A forgotten password from home Wi-Fi is a situation that almost every second user of Xiaomi routers faces. Unlike smartphones, where passwords are often synced with a Google or Mi Account account, routers store security keys locally, which means that without access to the device settings, it is impossible to restore the password using standard methods (for example, via SMS or email).

Xiaomi routers feature closed firmware MiWiFi, which does not always allow you to view the password in plain view even through the web interface. For example, in models Mi Router 4A Gigabit Edition or AX3600, the password field can be displayed in asterisks () without the possibility of disclosure, in such cases, workarounds are required - from using the Mi Home application to connecting via SSH.

It’s important to understand that if the router was not configured by you (such as the provider or previous owner), some methods may not work due to the changed administrator credentials, in which case only the hardware reset remains – but it erases all settings, including the network name (SSID) and password.

Method 1: Viewing a password through the router’s web interface

The most obvious method is to go to the router control panel through the browser. It works on all Xiaomi models, including the Mi Router. 3/3G/4/4A/4C/4Q, if the administrator login / password has not been changed (by default β€” admin/admin or linked to a Mi Account account).

Instructions:

  • 🌐 Connect to the router network via cable (LAN) Wi-Fi (if the device is already connected).
  • πŸ”— Enter 192.168.31.1 or miwifi.com (for new firmware).
  • πŸ”‘ Log in with your login/password (if you haven’t changed it, try it). admin/admin).
  • πŸ“‘ Go to the Wi-Fi section β†’ Wi-Fi settings (or Wireless Mode) β†’ Security).
  • πŸ‘οΈ The Wi-Fi password field can be hidden by stars. To see it, click on the icon of your eye (πŸ‘οΈ) or copy the password to the clipboard.

Check the connection to the router (cable or Wi-Fi)|Update the page (Ctrl+F5)|Try a different browser (Chrome, Firefox)|Reset the browser cache|Make sure that IP-The router address has not changed (check via cmd) β†’ ipconfig)

-->

⚠️ Note: In firmware older than 2021 (e.g., on Mi Router 3), the password field may not appear even after clicking on the eye icon. In this case, use Method 2 (Mi Home app) or Method 3 (SSH).

Method 2: Use the Mi Home app (for tied routers)

If the router is linked to your Mi Account, the Wi-Fi password can be viewed through the official Mi Home app (available for Android and iOS), which works even if you have forgotten the login details.

Step-by-step:

  1. Open the Mi Home app and log in.
  2. Select your router from the device list (e.g. Mi Router AX6000).
  3. Go to the Wi-Fi settings (or Network Management) section.
  4. Click on your network name (SSID).
  5. The password will be displayed in the Wi-Fi password field (may be hidden – click on the eye icon).

πŸ”Ή Important: If the router is not linked to your account, this will not work, and in some regions (for example, for European firmware), the password section may be hidden due to restrictions. GDPR.

πŸ“Š What kind of Xiaomi router do you have?
Mi Router 4A
Mi Router 4C
Mi Router AX1800
Mi Router AX3600
Other
I don't know.

Method 3: SSH Connection (for advanced users)

If the web interface and Mi Home do not show a password, you need to connect to the router using the SSH protocol. This method requires minimal knowledge of working with the command line, but allows you to get full access to configuration files, where the password is stored in an open form.

What you need:

  • πŸ’» Computer with Windows, macOS or Linux.
  • πŸ”Œ Connection to the router via cable (LAN).
  • πŸ› οΈ Programme for SSH-Connections: PuTTY (Windows) or built-in terminal (macOS/Linux).

Instructions:

  1. Find out. IP-router address (usually 192.168.31.1).
  2. Connect to SSH with root and web interface password (default: admin). Example: ssh root@192.168.31.1
  3. Run the command to view the Wi-Fi configuration: cat /etc/config/wireless Look for the key='your password' line in the wifi-iface section.

⚠️ Attention: On New Firmware (2023)+ yearly access SSH It can be disabled by default. To turn it on, you first need to go to the web interface and activate the Allow option. SSH in the section Additional settings β†’ Systemic tools.

What if the SSH is disabled?
If the option to Allow SSH is not available in the web interface, try: 1. Update the router’s firmware to the latest version (sometimes returns hidden settings). 2. Use Method 4 (reset to factory settings). 3. Install custom firmware (such as OpenWRT), but this voids the warranty and requires technical skills.

Method 4: Reset the router to factory settings (extreme case)

If none of the previous methods worked, then you have to reset hardware, which erases all your router settings, including network name (SSID), password, Mi Account binding, and firewall rules, and only use this method if you're ready to reconfigure the router.

How to reset:

  1. Find the Reset button on the back of the router (usually recessed in the case).
  2. Take a paperclip or toothpick, press and hold the button for 10-15 seconds until the indicators start flashing.
  3. Release the button - the router will restart and return to factory settings.

After discharge:

  • πŸ”„ Connect to a network with a name Xiaomi_XXXX (passwordless).
  • πŸ“± Open 192.168.31.1 in your browser and go through the initial setting.
  • πŸ” Set a new password for Wi-Fi in the Wireless Network section.

Important: If the router was linked to a Mi Account, you may need to re-authorize after the reset, and if you don't remember the account details, the router will become a brick, you'll have to stitch it through UART.

Method 5: Viewing the password on the connected device (without access to the router)

If you have a device (smartphone, laptop, tablet) that is already connected to Xiaomi’s Wi-Fi network, you can extract the password from its settings. It works on Android, Windows and macOS.

For Android (with or without root rights):

  • πŸ“± Open the Settings. β†’ Wi-Fi.
  • πŸ” Click on the name of your network (SSID).
  • πŸ‘οΈ In some firmware (for example, MIUI) password will be displayed after entering PIN-fingerprint.
  • πŸ“‹ If the password is hidden, use applications like WiFi Password Viewer (requires root).

For Windows 10/11:

  1. Open the Command Prompt (Win + R β†’ enter cmd).
  2. Follow the command: netsh wlan show profile name=Name network key=clear Look for the key content.

For macOS:

  • 🍎 Open the Programs β†’ Utilities. β†’ Keychain.
  • πŸ” Find your Wi-Fi network name and double-click on it.
  • πŸ”‘ Check the Show Password and enter the password from your Mac account.

πŸ’‘

If you often forget passwords, save them in the password manager (like KeePass or Bitwarden).For Xiaomi routers, you can also attach a password sticker to the back of the device - this is safer than resetting settings.

Table: Methods compatibility with Xiaomi router models

Model routerWeb interfaceMi HomeSSHResetView on the device
Mi Router 4Aβœ… (password visible)βœ…βœ… (inclusion)βœ…βœ…
Mi Router 4Cβœ… (stars, but there's a display button)βœ…βŒ (defaulted)βœ…βœ…
Mi Router AX1800βœ… (only for a linked account)βœ…βœ… (switched on)βœ…βœ…
Mi Router Pro❌ (password hidden)βœ…βœ…βœ…βœ…
Redmi Router AC2100βœ… (pointing out)βœ…βœ…βœ…βœ…

πŸ”Ή Note: Routers with firmware for the European region (marked) EU In the name of the model, some methods may be blocked due to the requirements of the GDPR. This will only help the reset or SSH.

Frequent Mistakes and How to Avoid Them

When trying to find out the password from Wi-Fi on Xiaomi, users often face typical problems, and here are the most common ones and ways to solve them:

  1. Unable to access the web interface (192.168.31.1 not open): βœ… Check the connection to the router (the cable must be in the port) LAN, not WAN). βœ… Try another browser or clear the cache. βœ… Make sure that IP-The router address has not changed (check via ipconfig in cmd).
  2. Mi Home app doesn't show password: βœ… Update the application to the latest version. βœ… Check if the router is linked to your Mi Account. βœ… For European firmware, try changing your account region to China (in profile settings).
  3. SSH plug-in: βœ… Make sure the service SSH included in the web interface. βœ… Check that you are using the right one. IP-address and port (22). βœ… New firmware may need to be activated first SSH in Additional settings.

⚠️ Note: If you bought a router from hand, the previous owner could change the data to log into the web interface (admin/admin In this case, the only way out is to reset to the factory settings (see Method). 4).

πŸ’‘

Before resetting the router, be sure to check whether it is not tied to someone else's Mi Account. If it is tied, after reset, you will need to enter the username / password of the previous owner, otherwise the router will become unusable.

Can I find out the Wi-Fi password on Xiaomi without resetting?
Yes, in most cases. Use the web interface (192.168.31.1), the Mi Home app, or an SSH connection. Resetting is a last resort if other methods have failed.
Why does the web interface display the password in stars and not reveal?
This is a feature of Xiaomi firmware for the European region (due to GDPR) or older versions of the software. Try: Update the router firmware. Use the Mi Home app. Connect to SSH and execute the command cat /etc/config/wireless.
What to do if I forget the password from the router’s web interface?
If the standard username/password (admin/admin) is not suitable, only a hardware reset (Reset button) remains. Please note that after a reset, the router may require authorization through Mi Account if it was linked.
Can I recover my Wi-Fi password after resetting my router?
No. Reset erases all settings, including the Wi-Fi password, and after resetting, you have to reset the router (set a new network name and password).
Do these methods work on Redmi routers?
Yes, Redmi routers (e.g. Redmi Router AC2100) use the same MiWiFi firmware as Mi Router models. All of the methods described (web interface, Mi Home, SSH) are applicable to them as well.