Skip to content
192.168.31.1Open
build v1.0.0 · operational
Private IPv4 · Xiaomi Routers

192.168.31.1 Login

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 the easier name router.miwifi.com. Xiaomi routers ask for an admin password only, with no user name, and you create that password during first setup.

The address only answers on your own network, so join the router's Wi-Fi or plug in a cable first. A new or reset router opens the setup steps instead of a login box. Nothing you type here is sent to this website.

Typed 192.168.31.l with a lowercase L, 192.168 31.1 with a space, or 192.168.1.31 with the last numbers swapped? All of them mean 192.168.31.1. The address finder below will confirm it.

Private IPv4 address · works on your local network only

3D render of a white Wi-Fi router beside a browser window showing the 192.168.31.1 gateway address
Type 192.168.31.1 into your browser to reach the router login page.

Quick answer

What Is 192.168.31.1?

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

  • router.miwifi.com opens the same page as 192.168.31.1 on a Xiaomi router.
  • The login is a password only, created at first setup, and it cannot be read back.
  • “Login time is up” is a session timeout, so reload and sign in again.

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

Not Sure You Typed It Right? Check It Here

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.

Step 01 · Access

How to Login to 192.168.31.1?

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.

Four-step login flow: connect to Wi-Fi, type 192.168.31.1 in a browser, enter credentials, then manage router settings
  1. Connect to the router

    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.

  2. Type the address

    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.

  3. See what opens

    A router that is already set up shows a password box. A new or reset router opens the first-setup steps instead.

  1. Enter the admin password

    Type the admin password you set during setup. There is no user name. The Xiaomi login table below explains where the password comes from.

  2. Open your settings

    After you sign in, check Wi-Fi, connected devices and the internet connection, change one thing at a time and save.

Credentials

192.168.31.1 Username and Password

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.

192.168.31.1 Username and Password
RouterUsernamePasswordAlso opens at
Xiaomi Mi Router and Redmi routersNone; password onlyThe admin password you set at setup. If you never changed it, it may be the same as the Wi-Fi passwordrouter.miwifi.com
A new or reset Xiaomi routerNoneNo password yet. The setup steps ask you to create onerouter.miwifi.com
Some Sweex routerssweexmysweex on some modelsNo web address
Provider-branded routers on this addressPrinted on the labelPrinted on the labelCheck 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

Set Up a New or Reset Xiaomi Router

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.

Router at 192.168.31.1 and a phone showing a setup screen with a Wi-Fi name, a Wi-Fi password and an admin password
  1. Power on and join its Wi-Fi

    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.

  2. Open the setup page

    Type http://192.168.31.1 or router.miwifi.com into a browser. The setup steps start automatically.

  3. Choose the internet connection

    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.

  1. Set the Wi-Fi name and password

    Choose a name and a Wi-Fi password of at least 8 characters. Use WPA2 or WPA3 where the router offers it.

  2. Set the admin password

    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.

  3. Finish and reconnect

    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

192.168.31.l or 192.168.31.1? Correct Ways to Enter It

The router page only opens when the address is typed exactly. These are the mistakes people make most often, and what to type instead.

192.168.31.l or 192.168.31.1? Correct Ways to Enter It
What was typedWhy it failsType this instead
192.168.31.l · 192.168.l31.1 · 192.168.31.i · 192 l 168.31 1The 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 1Spaces 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 loginThe 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.1An 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.1The 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.1Xiaomi 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/webPaths 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 loginTwo 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

Is 192.168.31.1 Your Router? How to Check

Your router's address is the default gateway shown on every connected device. If yours shows another address, type that one instead.

Windows, Mac, Android and iPhone screens each highlighting the router address 192.168.31.1 as the default gateway

Android

  1. Join the router's Wi-Fi.
  2. Open Settings, then Network & internet, then Wi-Fi.
  3. Tap the network and read the Gateway or Router line for 192.168.31.1.

iPhone

  1. Open Settings, then Wi-Fi.
  2. Tap the information button beside your network.
  3. The Router line should show 192.168.31.1.

Windows

  1. Connect to the router's Wi-Fi or by cable.
  2. Open Command Prompt and run ipconfig.
  3. Read the Default Gateway line.

Mac

  1. Open System Settings, then Wi-Fi, and select Details.
  2. Open TCP/IP.
  3. The Router line shows the address to type.

Behind a provider box

  1. If your Xiaomi router plugs into a provider's modem, devices on it show the Xiaomi router's address.
  2. To reach the provider's box, connect to it directly.

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

What You Can Change at 192.168.31.1

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.

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.

Admin Password

Set an admin password that differs from the Wi-Fi password, so someone who has your Wi-Fi cannot change the router.

Connected Devices

See what is on the network and block or limit anything you do not recognise.

Internet Connection

Choose how the router connects, such as automatic, PPPoE or a fixed address, to match your provider.

Guest Network and Security

Create a separate guest network, and keep the router's firmware updated from the update page when the router offers one.

LAN Address and DHCP

Change the router's own address or the range of addresses it hands out. After saving, sign in at the new address.

Compatibility

Routers That Use 192.168.31.1

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 Mi Router

Xiaomi 192.168.31.1 Login

Redmi

Redmi 192.168.31.1 Login

Sweex

Sweex 192.168.31.1 Login

Magenta

Magenta 192.168.31.1 Login

Other routers

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

192.168.31.1 vs 192.168.1.1 and 192.168.0.1

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.

192.168.31.1 vs 192.168.1.1 and 192.168.0.1
Property192.168.31.1192.168.1.1192.168.0.1
Network it sits onThe 192.168.31.x networkThe 192.168.1.x networkThe 192.168.0.x network
Often seen onXiaomi and Redmi routersLinksys, ASUS and most NETGEAR modelsTP-Link, Tenda, D-Link and many cable gateways
Typical loginA password set at setup, no user nameadmin with a password, or the labeladmin with a password, or the label
Full guideThis pageThe 192.168.1.1 login guideThe 192.168.0.1 login guide

A router answers on only one of these. Use the default gateway your device shows.

Reference

What Is 192.168.31.1? Facts and WHOIS

What the address is, and why a lookup tool tells you nothing about who owns it.

Address block
192.168.31.1 belongs to 192.168.0.0 to 192.168.255.255, one of three ranges that RFC 1918 reserves for private networks.
Typical network
A router on 192.168.31.1 usually gives devices addresses from 192.168.31.2 to 192.168.31.254 with the subnet mask 255.255.255.0.
WHOIS lookup
A WHOIS lookup of 192.168.31.1 shows only a reserved private-use block, with no owner or location, because many networks use the same address at once.
Reachability
192.168.31.1 only points at the router you are connected to. It cannot be opened from the internet, and a website cannot sign in to it for you.

Step 04 · Fix

192.168.31.1 Not Working? Common Problems and Fixes

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.

Broken link between a laptop and a router next to a checklist of fixes for when 192.168.31.1 is not working
  • The page says the login time is up

    Solution

    • That is a session timeout. Reload the page, sign in again, and finish your change before the session lapses.
    • Close extra tabs that are signed in to the same router, and avoid leaving the settings page open and idle.
  • You are not connected to the router

    Solution

    • Join the router's own Wi-Fi or use an Ethernet cable. A neighbour's network or mobile data does not reach it.
    • Turn off any VPN while you sign in, because it can route the request away from the router.
  • The page opens a different router

    Solution

    • If another router is on your network, 192.168.31.1 may belong to it. Check which router replies by reading the default gateway on your device.
    • Connect to the Xiaomi router directly and try again.
  • router.miwifi.com does not open

    Solution

    • Type http://192.168.31.1 instead. It reaches the same page.
    • Check that no custom DNS or VPN is interfering, and that you are on the Xiaomi router's own network.
  • The admin password is rejected

    Solution

    • Xiaomi routers ask for a password only. Leave out any user name, and check capital letters.
    • If you never changed it, try the Wi-Fi password. If you cannot remember it, it cannot be recovered, so reset the router.
  • A certificate or “not secure” warning appears

    Solution

    • Type http://192.168.31.1 and press Enter. If the browser forces https, continue only for this address on your own network.
    • Try a private window or a different browser.
  • A path such as /login.html returns an error

    Solution

    • Paths belong to particular firmware. Remove them and open http://192.168.31.1 on its own.
    • Clear the cache and cookies, or try another browser.
  • Nothing loads at all

    Solution

    • Restart the router, wait for its light to settle, and try again over a cable.
    • Check that the power and Ethernet cables are firmly seated.

Step 05 · Maintain

Remove Unknown Devices and Reset the Router

Clear out devices you do not recognise, or reset the router when you cannot remember the admin password.

Remove Unknown Devices

Unknown devices slow your Wi-Fi and share your connection. Removing them keeps it faster and more private.

  1. Sign in to the router at 192.168.31.1.
  2. Open the connected devices list.
  3. Compare each device name with the devices you own.
  4. Block anything unfamiliar, then change the Wi-Fi password so it cannot rejoin.

Reset After a Forgotten Password

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.

  1. Keep the router powered on.
  2. Find the small Reset button or pinhole on the device.
  3. Hold it with a paperclip for the time your model's guide gives, until the indicator changes.
  4. Wait for the router to restart and for its light to settle.
  5. Open http://192.168.31.1 or router.miwifi.com, and the setup steps start.
  6. Set a new Wi-Fi name and password, and a new admin password, and write them down.

Answers

192.168.31.1 FAQs

The questions people ask most before signing in to 192.168.31.1.

What Is 192.168.31.1 Used For?

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.

What Is the Username and Password for 192.168.31.1?

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.

Is router.miwifi.com the Same as 192.168.31.1?

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.

How Do I Log In to a Xiaomi Router at 192.168.31.1?

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.

What Does “The Login Time Is Up” Mean?

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.

I Forgot My Admin Password. What Now?

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.

Is 192.168.1.31 the Same as 192.168.31.1?

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.

Do Magenta Routers Use 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.

Does This Website Log In to My Router?

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.

Can I Open 192.168.31.1 From Outside My Home?

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.

Ready to sign in at 192.168.31.1?

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.

Browser address bar with http://192.168.31.1 entered and linked by glowing beams to a laptop and a Wi-Fi router
Open 192.168.0.1