How to change IP-Xiaomi router address: 3 proven ways + mistake-making

Change of change IP-Xiaomi router addresses may be required in several cases: in case of address conflict in the local network, to improve security, when setting up VPN The standard address is 192.168.31.1, which is used by most Mi Router models (including the one used by the Mi Router). 4A, 4C, 5, 6 and AX3000), It is not always optimal, especially if you already have a device with the same IP.

In this article, we will discuss three official ways of changing the IP-Addresses: via web interface, Mi Wi-Fi mobile application and console SSH (You will also learn how to avoid common errors when changing the address and what to do if the router stopped responding after the change. IP This can cause you to lose access to the control panel – so write down your current network settings before you start.

If you're a beginner, we recommend starting with the first method (web interface). SSH, where the advanced settings, including reservations, are described DHCP-pool MAC-address.

Preparation for change IP-address

Before you change IP-Xiaomi router address, follow a few mandatory steps to avoid device loss and network conflicts.

Step 1: Check the current IP-router.

Open the command line (Win + R β†’ cmd) and type:

ipconfig /all

Look for the main gateway line – this is the current one. IP For Xiaomi, it's 192.168.31.1, but it could have been changed earlier.

Step 2: Make sure that the new IP It does not conflict with other devices.

Select an address from a range 192.168.X.1 (where X is any number from 0 to 255, except 0 and 127. For example, if your current address is 192.168.31.1, you can change it to 192.168.10.1 or 192.168.0.1. IP other device, with the help of a command:

ping 192.168.10.1

If the answer is exceeded waiting interval – the address is free.

Step 3: Prepare a backup access method.

After the shift IP You lose contact with the router, you can restore access:

  • πŸ”„ Reset to factory settings (reset button for 10 seconds).
  • πŸ“± Using the Mi Wi-Fi mobile app if the router is connected to the Xiaomi account.
  • πŸ–₯️ via a direct Ethernet cable (if) IP changed, but DHCP work).

⚠️ Note: If you are using Mi Router in Repeater or Bridge mode, change IP-Addresses may disrupt the connection, in which case, first put the device in Router mode.

2. Method 1: Modification IP via web interface (for all models)

This is the easiest and safest method that is suitable for most users.The instructions are relevant for Xiaomi Mi Router routers. 4A, 4C, 5, 6, AX3000 and other models with a web panel.

Step 1: Log in to the control panel.

Open the browser and enter the current one. IP-router address (default) 192.168.31.1). Enter the login and password (by default β€” admin/admin or a tied Xiaomi account).

Step 2: Go to the network settings.

In the menu, select: Additional settings β†’ Network β†’ LAN

Here you will see the current local network settings.

Step 3: Change IP-address and save settings.

In the field IP-Enter a new address (e.g. 192.168.10.1). The subnet mask usually remains 255.255.255.0.

Check that the new one is IP It does not conflict with other devices.|

Make sure the subnet mask is 255.255.255.0|

Remember the new one. IP β€” You will need it to re-enter.|

Turn it off. VPN or proxy if they are active.-->

Once saved, the router will restart. Wait 1-2 minutes and connect to it on a new one. IP.

⚠️ Attention: If after the shift IP The router is not responding, check: πŸ”Œ Is Ethernet cable connected (if you use a wired connection). πŸ“Ά Are you connected to the right Wi-Fi network (SSID must not change). πŸ”„ Are the settings not at fault? DHCP (Try to manually prescribe IP on a computer from a new subnet, such as 192.168.10.100).

Method 2: Shift IP via Mi Wi-Fi app for mobile users)

If you do not have access to your computer, change IP-The Xiaomi router address is available through the official Mi Wi-Fi app (available for Android and iOS), a method that is convenient but requires the router to be linked to a Xiaomi account.

Step 1: Connect to the router via Wi-Fi.

Make sure your smartphone is connected to the router network, IP Whichever device you want to change, open the Mi Wi-Fi app and select your device.

Step 2: Go to the settings LAN.

Slip on the router icon β†’ Settings β†’ Additionally. β†’ Network β†’ LAN.

Step 3: Enter a new one IP and keep.

In the field IP-Address: Provide a new address (e.g. 192.168.20.1).Click Save and confirm reboot.

Through the web interface |

Through the Mi Wi-Fi app|

Through SSH/console|

I don’t use the factory settings.-->

Once the router is restarted, the application may lose its connection.

  • πŸ”„ Reconnect to the router's Wi-Fi network.
  • πŸ“± Close and reopen the Mi Wi-Fi app.
  • πŸ”§ If it doesn’t help, connect to the new one. IP browser.

Limitations of the method:

In some versions of the Mi Wi-Fi application, the change option is available. IP It can be hidden. If you can't see the item, LAN, Update the application or use the web interface.

Method 3: Modification IP through SSH (power-user)

This method is suitable for advanced users who want to change the system. IP, but also configure additional network settings (e.g. redundancy) DHCP Attention: incorrect commands can lead to loss of access to the router!

Step 1: Turn on SSH router.

By default. SSH It's off, so it can be activated:

  • πŸ–₯️ Go to the router's web interface β†’ Additional settings β†’ System system β†’ SSH.
  • πŸ”‘ Enable access and set a password (remember it!).

Step 2: Connect to the router SSH.

Use the PuTTY (Windows) program or the terminal (Linux/macOS). Enter the command:

ssh root@192.168.31.1

Enter the password you set in the previous step.

Step 3: Change IP-address.

Follow the commands in order:

uci set network.lan.ipaddr='192.168.10.1'


uci commit network




/etc/init.d/network restart

Where 192.168.10.1 is your newest IP-address.

Step 4: Set up DHCP (optionally).

If you want the router to distribute IP-Addresses from the new subnet, follow:

uci set dhcp.lan.start='100'


uci set dhcp.lan.limit='150'




uci set dhcp.lan.leasetime='12h'




uci commit dhcp




/etc/init.d/dnsmasq restart

It'll set up the pool. DHCP from 192.168.10.100 to 192.168.10.250.

What if the router stopped responding after the commands?
If you lose access after the change IP through SSH, Try: 1. Connect to a new connection. IP (possibly, DHCP Not updated - write down IP manually on a PC, such as 192.168.10.100). 2. Reset the router with the Reset button (hold 10 seconds). 3. Reconfigure the settings to make sure the subnet mask and gateway are correctly indicated. If the router does not respond even to a reset, check the power and cables.

⚠️ Attention: When working through SSH Do not interrupt the session until the commands are completed. If the router restarts during the configuration change, it may boot with incorrect network settings.

5. Typical errors and their solution

Even when following instructions, users often face problems after a shift. IP-So let's look at the most common cases and how to fix them.

Mistake 1: The router does not respond to the new IP.

Causes and solutions:

Reason.Decision
The wrong subnet maskMake sure the mask is 255.255.255.0. If changed to 255.255.0.0, return it.
IP conflict with another deviceCheck the network with the arp command -a change IP free-for-all.
Settings not saved DHCPWrite it down. IP on a PC manually (e.g. 192.168.10.100) and try to connect.
Firmware failureReset the button with the Reset button (10 seconds).

Mistake 2: The Internet is gone after a shift IP.

If the router responds to a new IP, But the internet doesn't work:

  • πŸ”Œ Check the connection of the cable from the provider (indicator) WAN burn).
  • πŸ“‘ Restart router and modem (if it is separate).
  • πŸ”§ Make sure that in the settings WAN the correct type of connection is indicated (DHCP, PPPoE, etc.).

Error 3: Access to the web interface is not working.

If the router ping, but the management page does not open:

  • πŸ”„ Clear the browser cache or try another one (like Firefox instead of Chrome).
  • πŸ›‘οΈ Turn it off. VPN/Proxies and antivirus (they can block access).
  • πŸ”‘ Check if the administrator password has been lost (reset it through Reset if you forget).

πŸ’‘

After the shift IP Xiaomi smart devices (lamps, cameras) have stopped working, check if they are tied to the old subnet.

6. Additional settings after the shift IP

Change of change IP-The router's address is just the first step. To keep the network running smoothly, it's recommended that you make a few additional adjustments.

1. Update. DHCP-pool.

If you've changed IP from 192.168.31.1 to 192.168.10.1, update the range of addresses dealt:

  • πŸ“Œ Initial. IP: 192.168.10.100
  • πŸ“Œ Finite IP: 192.168.10.200

This will prevent conflicts with static addresses of other devices.

2. Set up reservations IP (DHCP Reservation).

If you have fixed devices on your network IP (for example, NAS, printer, IP-cameras, tie them up. MAC-address IP subnet:

Go to Additional Settings β†’ Network β†’ DHCP and add reservation rules.

3. Check ports and airways.

If you use Port Forwarding for game servers, cameras, or torrent clients, update the rules to reflect the new rules. IP. For example, if the pass was at 192.168.31.100:8080, now you may need 192.168.10.100:8080.

4. Update the settings on client devices.

On computers and smartphones, where IP handwritten, update:

  • πŸ–₯️ Default gateway (new) IP router).
  • 🌐 DNS-servers (you can leave 8.8.8.8 and 8.8.4.4 or specify the router as the server servers). DNS).

πŸ’‘

After shift. IP router be sure to reconnect all devices to the network - even if the Wi-Fi name (SSID) It's not changed. It'll update their network settings and prevent access issues.

7 Security: How to Protect a Router After a Shift IP

Change of change IP-Addresses can improve your network security, but that’s not enough.The following steps will help protect your Xiaomi router from hacking and unauthorized access.

1. Change the standard administrator password.

By default, many Xiaomi routers use an admin password or are tied to a Xiaomi account. Set a complex password (at least 12 characters with numbers and special characters).

2. Turn off remote access.

In the router settings (System) β†’ Remote control: Disable access from the internet if you don’t need it.

3. Update the firmware.

Outdated firmware versions contain vulnerabilities. Check for updates to Additional Settings β†’ System system β†’ Update of the PO.

4. Set up a firewall (Firewall).

In the routers Xiaomi can include basic protection:

  • πŸ›‘οΈ Lockdown ICMP (protection against ping attacks).
  • 🚫 Filtration MAC-Addresses (allow connection only to known devices).
  • πŸ” Prohibit access to the web interface from the local network (leave only for specific IP).

5. Hide. SSID (optionally).

Hiding the name of the Wi-Fi network (Wi-Fi settings) β†’ Hide. SSID) It does not provide 100% protection, but reduces the number of attempts to connect third-party devices.

⚠️ Note: If you use a Xiaomi router in an office or public place, consider setting up a guest network with a separate subnet.

FAQ: Frequent change questions IP on Xiaomi routers

Can I change? IP-Xiaomi router address without losing internet?
Yes, if you set the parameters correctly. WAN. On shifts. IP local-network (LAN) settings of connection to the provider (WAN) However, if you manually prescribe the gateway or DNS On client devices, they will have to be updated.
What? IP-The address is better to choose for the Xiaomi router?
Recommended options: 192.168.0.1 – standard for many networks. 192.168.10.1 or 192.168.20.1 – less common, reduce the risk of conflict. 10.0.0.1 – alternative private range (if the range is not available). 192.168.x.x Avoid addresses like 192.168.1.1 if you have other routers with one. IP (for example, from a provider).
Why not after the shift? IP Xiaomi router does not give away the Internet?
Probable causes: πŸ”Œ Wrong settings WAN (check the type of connection: DHCP, PPPoE, static IP). πŸ“‘ Conflict with another router on the network (for example, if the provider issues a device with the same router) IP). πŸ”§ Failure DHCP (Try to manually prescribe IP and DNS Solution: reset the router to factory settings and set it up. IP freshly.
Can we bring back the old one? IP-address if the new one doesn't fit?
Yes, for that: Connect to the router on a new one. IP. Return the old address in the settings LAN. Save the settings and restart the device. If access is lost, reset with the Reset button (10 seconds).
Should I change? IP-router address IPTV?
If your provider requires a specific subnet to IPTV (for example, 192.168.1.x). In this case: Find out from the provider which IP The router must have it. LAN to the required (e.g. 192.168.1.1). IGMP and Multicast in the section IPTV. Without the right one. IP-address IPTV may not work or slow down.