Wi-Fi Name and Password
Rename the network and set a new password, for the 2.4 GHz and 5 GHz bands where the router has both. Then reconnect your devices.
Private IPv4 address · works on your local network only

Quick answer
192.168.31.1 is the private IPv4 address that Xiaomi and Redmi routers use for their admin page. Type http://192.168.31.1 into a browser on a device connected to the router, or use router.miwifi.com. Xiaomi routers ask for an admin password only, with no user name, and you create that password during first setup.
Short answer: It is the private address Xiaomi and Redmi routers use for their admin page. Open it while connected to the router.
Key takeaways
IP address type
Private
Local network only
Typical routers
Xiaomi
Mi Router and Redmi models
Easier name
router.miwifi.com
Opens the same page
Login type
Password only
No user name
Address finder
Type the address the way you remember it, typos and all. The finder turns it into the right gateway address and opens it for you.
It copes with spaces, the letter o or l in place of a number, extra words such as http or login, and swapped numbers. Only official router addresses are offered.
Or open one directly
Step 01 · Access
Five steps take you from a connected device to the 192.168.31.1 admin page, as long as 192.168.31.1 is your router's address.

Join its Wi-Fi or plug in an Ethernet cable. A neighbour's network, a public hotspot or mobile data will not reach your router.
Open a browser and enter http://192.168.31.1, or router.miwifi.com, in the address bar, not the search box. Most failures come from address mix-ups.
A router that is already set up shows a password box. A new or reset router opens the first-setup steps instead.
Type the admin password you set during setup. There is no user name. The Xiaomi login table below explains where the password comes from.
After you sign in, check Wi-Fi, connected devices and the internet connection, change one thing at a time and save.
Credentials
A Xiaomi router has no fixed default login. It asks for a password only, and you choose it at first setup. Match your router in the table to see where the password comes from.
| Router | Username | Password | Also opens at |
|---|---|---|---|
| Xiaomi Mi Router and Redmi routers | None; password only | The admin password you set at setup. If you never changed it, it may be the same as the Wi-Fi password | router.miwifi.com |
| A new or reset Xiaomi router | None | No password yet. The setup steps ask you to create one | router.miwifi.com |
| Some Sweex routers | sweex | mysweex on some models | No web address |
| Provider-branded routers on this address | Printed on the label | Printed on the label | Check the label or provider app |
A forgotten admin password cannot be read back. If you cannot remember it, reset the Xiaomi router and set a new one.
Step 02 · First setup
A new or reset Xiaomi router opens the setup steps at 192.168.31.1 instead of a login box. The wizard asks for three things, and the order below matches most models.

Plug in the router and wait for its light to settle. A new or reset router often broadcasts an open or default network. Join it from your phone or laptop.
Type http://192.168.31.1 or router.miwifi.com into a browser. The setup steps start automatically.
Let the router detect the connection type, or pick the one your provider uses, such as automatic, PPPoE with a provider user name and password, or a fixed address.
Choose a name and a Wi-Fi password of at least 8 characters. Use WPA2 or WPA3 where the router offers it.
Choose the password that signs in at 192.168.31.1. The wizard may offer to reuse the Wi-Fi password, which is convenient but less secure. Write the admin password down, because it cannot be read back.
Let the router restart, rejoin the new Wi-Fi name, and sign in at 192.168.31.1 to check that it works. The Mi Wi-Fi app can also manage the router remotely once it is added.
Typing fixes
The router page only opens when the address is typed exactly. These are the mistakes people make most often, and what to type instead.
| What was typed | Why it fails | Type this instead |
|---|---|---|
| 192.168.31.l · 192.168.l31.1 · 192.168.31.i · 192 l 168.31 1 | The letter l or i stands in for the number 1, so the browser treats it as a search. | 192.168.31.1 |
| 192.168 31.1 · 192.168 31 1 · 192.168. 31.1 · 192 168.31 1 · 192 168 31 1 | Spaces replace dots, which breaks the four-number address. | 192.168.31.1 |
| 192.168.1.31 · 192.168 1.31 · 192.168.1.31/login.html · 192.168.1.31 login | The last two numbers are swapped. 192.168.1.31 is an ordinary device address, not the router. | 192.168.31.1 |
| 192.168.31.1.1 · 192.168.31.1.31 · 192.168.31 · 192.168.3.1 | An extra or missing part makes the address invalid, and 192.168.3.1 is a different address. | 192.168.31.1 |
| http //192.168.31.1 · http//192.168.31.1 · http 192.168.31.1 · //192.168.31.1 | The colon or slashes are in the wrong place, so the browser runs a web search instead. | http://192.168.31.1 |
| https://192.168.31.1 · https //192.168.31.1 · https 192.168 31.1 | Xiaomi routers serve their local page over plain HTTP, and a browser that forces HTTPS shows an error. | http://192.168.31.1 |
| 192.168.31.1/login · 192.168.31.1/login.html · 192.168.31.1/cgi-bin/luci/web | Paths belong to particular firmware and can return an error on yours. The address alone opens the right page. | http://192.168.31.1 |
| 192.168.31.1 miwifi.com · miwifi.com 192.168.31.1 login | Two ways to reach the same router are joined together. Use one of them, not both. | http://192.168.31.1 |
Use the address finder above to fix a messy version in one step, or copy 192.168.31.1 from the button.
Reference
Your router's address is the default gateway shown on every connected device. If yours shows another address, type that one instead.

Note: a Xiaomi mesh satellite follows the main router, so sign in to the main router at 192.168.31.1.
Step 03 · Use it
Menus differ by model and firmware, but these are the settings people sign in for. Change one at a time and save so you can undo it.
Rename the network and set a new password, for the 2.4 GHz and 5 GHz bands where the router has both. Then reconnect your devices.
Set an admin password that differs from the Wi-Fi password, so someone who has your Wi-Fi cannot change the router.
See what is on the network and block or limit anything you do not recognise.
Choose how the router connects, such as automatic, PPPoE or a fixed address, to match your provider.
Create a separate guest network, and keep the router's firmware updated from the update page when the router offers one.
Change the router's own address or the range of addresses it hands out. After saving, sign in at the new address.
Compatibility
The default address depends on the model and firmware, not just the brand. These are the makers most often linked to 192.168.31.1.
Xiaomi 192.168.31.1 Login
Redmi 192.168.31.1 Login
Sweex 192.168.31.1 Login
Magenta 192.168.31.1 Login
Other router 192.168.31.1 Login
Brand names identify compatible hardware only. This site is not affiliated with, endorsed by or sponsored by any router manufacturer.
Reference
All three are private gateway addresses on different ranges. 192.168.31.1 is usually a Xiaomi or Redmi router, while the other two belong to many other brands.
| Property | 192.168.31.1 | 192.168.1.1 | 192.168.0.1 |
|---|---|---|---|
| Network it sits on | The 192.168.31.x network | The 192.168.1.x network | The 192.168.0.x network |
| Often seen on | Xiaomi and Redmi routers | Linksys, ASUS and most NETGEAR models | TP-Link, Tenda, D-Link and many cable gateways |
| Typical login | A password set at setup, no user name | admin with a password, or the label | admin with a password, or the label |
| Full guide | This page | The 192.168.1.1 login guide | The 192.168.0.1 login guide |
A router answers on only one of these. Use the default gateway your device shows.
Reference
What the address is, and why a lookup tool tells you nothing about who owns it.
Step 04 · Fix
When the page will not open or the login fails, the cause is nearly always the connection, the address or the password. Work through these in order.

Solution
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Step 05 · Maintain
Clear out devices you do not recognise, or reset the router when you cannot remember the admin password.
Unknown devices slow your Wi-Fi and share your connection. Removing them keeps it faster and more private.
A forgotten admin password cannot be read back, so a reset is the only way in. It erases your Wi-Fi name, passwords and settings, so note anything you need first.
Answers
The questions people ask most before signing in to 192.168.31.1.
It is the private IP address that Xiaomi and Redmi routers use for their admin page. Opening it in a browser lets you set up the router and manage Wi-Fi, connected devices and network settings.
A Xiaomi router asks for a password only, with no user name. It is the admin password you chose at first setup. If you never changed it, it may be the same as the Wi-Fi password.
On a Xiaomi router, yes. Both open the same admin page, and router.miwifi.com is easier to remember. If one does not load, try the other.
Join the router's Wi-Fi, open http://192.168.31.1 or router.miwifi.com, and enter your admin password. A new or reset router opens the setup steps instead of a login box.
It means the session timed out, so the router signed you out. Reload the page, sign in again, and finish your change sooner. It does not mean the router is broken.
It cannot be read back from the router. Reset the router with its Reset button, then open 192.168.31.1 and the setup steps will let you create a new Wi-Fi password and admin password.
No. 192.168.1.31 has the last numbers swapped and is an ordinary device address on another network. The router page is 192.168.31.1.
Some may. The address depends on the model and firmware. Check the default gateway on your device, and if it shows 192.168.31.1, use this page.
No. The buttons only open http://192.168.31.1 in your browser. Your password goes to your own router, never to this site, and the page only loads when you are on that router's network.
No. 192.168.31.1 is a private address, so it only points at the router you are connected to. To manage the router away from home, use the Mi Wi-Fi app where it is supported.
Join your Xiaomi router's Wi-Fi first, then launch 192.168.31.1 and enter your admin password, or run the setup steps.
Your credentials go to your own router, never to this site.
