Introduction: Why you canβt login to your router settings
You try to log into the Xiaomi Router 4A web interface at 192.168.31.1 or through the Mi Wi-Fi app, but the system stubbornly refuses to accept the login and password entered? This situation is familiar to many users - especially those who received the router "inherited" from previous owners or have not logged into the control panel for a long time.
First, factory credentials could be changed when you first set up (and you just forgot the new password); second, if the router was bought by a used router, the previous owner could set up their own login credentials; third, Xiaomi periodically updates the firmware, and in some versions the authentication algorithm changes; and finally, software failures can be excluded, which makes even the correct password no longer work.
In this article, we'll look at all the ways you can restore access, from standard combinations to hardware resets, and how to avoid similar problems in the future, starting with the simplest: checking factory credentials.
Standard login and password for Xiaomi Router 4A
If youβve never changed the login data to the admin panel, try the standard combinations. Xiaomi Router 4A (R4A, R4AC, R4A Gigabit Edition models) depends on the firmware version and the region of sale:
- π Login: admin | Password: Admin is a classic combination for most Xiaomi routers.
- π Login: empty field | Password: Admin β found in early firmware.
- π Login: root | Password: Admin is a rare option, but sometimes it works.
- π Login/password: the last 8-digit SN (router serial number β used in some regional versions (e.g. China).
Where do I see the serial number? It's on the sticker under the router: XXXXXXXXXXXX, where the last 8 characters is a potential password. SN You can find it in the Mi Wi-Fi app in the Device section β Information.
Important: If the router was purchased in China, the default password may be a combination of letters and numbers (e.g. xiaomi123 or miwifi123), in which case try to enter admin in the login field and miwifi or xiaomi in the password field.
How to Reset Your Password Through the Web Interface (If You Know the Current one)
If you remember your current password but want to change it (for example, for security reasons), do so through the Control Panel.
- Connect to the router network via Wi-Fi or cable.
- Open your browser and type 192.168.31.1 (or miwifi.com).
- Enter your current login and password.
- Go to System Settings β Device Management β Password.
- Enter the old password, then the new one (twice) and save the changes.
Recommendations for choosing a new password:
- π Use at least 8 characters (numbers, letters, signs).
- π Avoid obvious combinations like 12345678 or password.
- π Do not use personal information (date of birth, name of pet).
βοΈ Secure Password for a Router
If you have forgotten your current password but have physical access to the router, go to the next section, hardware reset.
Hardware reset Xiaomi Router 4A to factory settings
If the standard passwords don't fit, and the current one you don't remember, the only reliable way to get back access is to reset the settings completely, which will bring the router back out of the box, including the factory login/password, but also delete:
- π‘ All Wi-Fi settings (network name, password).
- π Port configuration and DHCP.
- π Firewall and Parental Control Rules.
- π± Tied devices in Mi Home (if used).
Resetting instructions:
- Turn on the router and wait for full load (indicators burn steadily).
- Find the Reset button on the back (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.
What to do if the Reset button doesnβt work?
Attention! On some versions of the Xiaomi Router 4A (especially with the MiWiFi ROM firmware), the reset can take up to 2-3 minutes.
Restoring access through the Mi Wi-Fi app
If you have a smartphone with Mi Wi-Fi (or Mi Home) installed, you can try to restore access without resetting.
- π± The router was previously linked to your Xiaomi account.
- πΆ The phone is connected to the router network (or was previously connected).
- π The router was not reset after the link.
Instructions:
- Open the Mi Wi-Fi app and log in under the same account you used when setting up your router.
- If the router is displayed in the list of devices, tap it.
- Go to Settings β Device Management β Password Reset.
- Follow the instructions on the screen (confirmation via SMS or email may be required).
If the router is not displayed in the app:
- Make sure your phone is connected to its Wi-Fi network.
- Try updating the list of devices (swipe down).
- Reinstall the application and log in again.
π‘
If you don't have access to the Xiaomi account that the router is attached to, you can't recover the password through the app, and only a hardware reset will help.
Alternative ways to log in: SSH and Telnet
For power users, it is possible to access the router via SSH or Telnet, a technique that requires technical skills and does not work on all firmware, but can be useful if:
- π§ You don't want to reset the settings.
- π§ You have access to the local network of the router.
- π§ Remote access is enabled on the router (default is disabled by default).
Instructions for SSH connection:
- Install PuTTY (Windows) or use a terminal (Linux/macOS) on your PC.
- Connect to the router network.
- Enter the command: ssh admin@192.168.31.1 Default password: admin (or the last 8-digit SN).
- If access is obtained, change the password with the command: passwd
Warning: Inexperienced actions in the console can lead to the router inoperability.If you are not sure about your knowledge, use a reset button.
| Method of recovery | Difficulty | Conditions required | Risks. |
|---|---|---|---|
| Standard login/password | β | No. | No. |
| Reset via web interface | ββ | Knowledge of the current password | No. |
| Hardware reset (Reset) | ββ | Physical access to the router | Losing all settings |
| Recovery via Mi Wi-Fi | βββ | Linking to Xiaomi account | No. |
| Access to SSH/Telnet | ββββ | Technical skills, access included | Firmware damage |
How to avoid password problems in the future
To avoid facing access blocking again, follow these tips:
- π Save your passwords in a safe place (for example, in the Bitwarden or KeePass password manager).
- π Update the routerβs firmware β new versions often fix authentication vulnerabilities.
- π± Link the router to your Xiaomi account β it will make it easier to restore access.
- π Use two-factor authentication (if supported by your model).
We also recommend checking the backup login regularly, for example, every 3-6 months, try to log into the control panel from a spare device (laptop, tablet) to make sure that the password is not reset after updating the firmware.
π‘
The most reliable way to not lose access is to link the router to your Xiaomi account and save a backup of your settings in the cloud.