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:
- Open the Mi Home app and log in.
- Select your router from the device list (e.g. Mi Router AX6000).
- Go to the Wi-Fi settings (or Network Management) section.
- Click on your network name (SSID).
- 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.
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:
- Find out. IP-router address (usually 192.168.31.1).
- Connect to SSH with root and web interface password (default: admin). Example: ssh root@192.168.31.1
- 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?
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:
- Find the Reset button on the back of the router (usually recessed in the case).
- Take a paperclip or toothpick, press and hold the button for 10-15 seconds until the indicators start flashing.
- 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:
- Open the Command Prompt (Win + R β enter cmd).
- 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 router | Web interface | Mi Home | SSH | Reset | View 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:
- 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).
- 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).
- 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.