How to change the IP address of the Xiaomi router: a guide

Xiaomi devices, including the popular Mi Router and Redmi Router series, use a standard gateway address by default, which is most often 192.168.31.1 or 192.168.1.1. However, in a dense urban environment or when creating a complex home network with multiple routers, standard settings can cause conflicts or limit administration. IP-Router addresses are a basic but critical operation for advanced users.

Changing this setting avoids intersections if you connect a new Xiaomi router to an existing network of another provider or main modem, and it is the first step to proper network segmentation, which is especially true for Smart Home systems, where the number of connected devices is in the tens.

In this article, we will take a closer look at the algorithm, the necessary preparatory steps and the possible pitfalls you may encounter when reconfiguring network equipment, and learn how to choose the right subnet and avoid losing access to the admin panel during the change.

Why Change the Router’s Standard IP Address

Standard settings set by the manufacturer are convenient for initial installation out of the box, but in the long run often become a source of problems. IP-If you use two routers on the same network (e.g. one from the provider and the other Xiaomi in access point mode) and they have the same gateway addresses (e.g. both 192.168.1.1), the network will not work.

The second important aspect is security, and while IP-address change is not a panacea for hacker attacks, it is a security through obscurity element. Automated bot scripts often scan standard address ranges for vulnerable devices, and shifting the address to a non-standard subnet will make life harder for random scanners.

If your main router distributes addresses in the range 192.168.0.x, the secondary router Xiaomi must have a gateway address different from the main one, but located in the same logical group or in the adjacent subnet for proper traffic routing.

⚠️ Attention: After the change IP-All connected devices may lose access to the Internet until the moment of reconnecting or updating DHCP-leases.

Understanding the structure of the LAN will help you avoid errors. An address consists of two parts: the network ID and the host ID. When you change the last digits, you change only the address of the device within your subnet without affecting the external network of the provider.

πŸ“Š Have you been in conflict? IP-home-network addresses?
Yeah, the network was always off.
No, I'm using one router.
There were problems with the smart home.
I'm having trouble answering.

Preparing for changes in network settings

Before making changes to the configuration of Xiaomi Router, you need to make sure the connection is stable. LAN-Wi-Fi connection may be interrupted when settings are applied, which will result in loss of access to the web interface if you do not know the new address.

You will need to know the current IP-If your device's address has been changed before, or make sure you're on the right subnet. For Windows, you can do this via the command line by ipconfig. Find the "Default Gateway" line, which is the current address of your Xiaomi router.

It is also recommended to record or photograph the current settings. In case of an error, you will have to reset to factory settings, holding the Reset button on the router case clamped for more than 10 seconds. Keep the username and password from the admin panel at hand, as after changing the IP they will not change, but you will need to access them at the new address.

β˜‘οΈ Checklist before setting up

Done: 0 / 5

Make sure that your computer is static. IP-address or receive the correct address DHCP. If you are planning to change the subnet (for example, with the 192.168.31.x on 192.168.50.x), The computer must be able to work on a new network, which usually happens automatically after the network card is restarted.

Log in to the web interface of the Xiaomi router

You can access the settings through any modern browser. Open Chrome, Firefox or Edge and enter the current one in the address bar. IP-For Xiaomi devices, this is often 192.168.31.1 or the domain name miwifi.com. However, using a numerical address is more reliable because it is more reliable. DNS It can work incorrectly when network failures.

Once you enter the address, the system will request authorization. Enter the administrator password. Please note, this is not a Wi-Fi password, but a password for managing the router. If you didn't change it when you first set it up, it could be set automatically or matched with a Wi-Fi password.

MiWiFi OS can be in Chinese or English, depending on the firmware version. Look for the password field in the center of the screen. Once you log in, you'll see a status page with a network map showing connected devices and traffic speeds.

πŸ’‘

If web interest does not open, try using the incoognito mode in the browser or clear the DNS cache with the ipconfig /flushdns command.

In some cases, especially on older Xiaomi routers, the browser may issue an HTTPS error warning. This is normal for local devices. You need to accept the risks and go to the site, since the certificate is self-signed.

Step-by-step instructions for changing IP addresses

If you're in the main admin menu, go to the settings section. Depending on the version of the interface, it might be called Settings, Common Settings, or have a gear icon. We need a subsection that's responsible for the local network, usually called LAN Settings or Internal Network.

In the menu you will see the field. IP Address (Address) LAN). This is where the current gateway address is located. The default subnet mask is set to 255.255.255.0, which means that you can only change the last digit of the address (2 to 254).

For example, if the current address is 192.168.31.1, you can change it to 192.168.31.254 or completely change the third group of digits, for example, to 192.168.50.1. After entering the data, be sure to click the Save or Apply button.

Example of correct address: 192.168.10.1


Example of incorrect: 192.168.10.256 (number cannot be >255)

The system will warn you that after you have set up the connection will be broken. This is normal behavior. Xiaomi router will restart the network interface with new parameters, you will have to manually enter a new address in the browser to continue working.

What to do if you forget your new IP?
If you change your address and forget it, the only way to get back access is to do a full reset. Find the Reset hole on the case, turn on the router and press the button with a clip for 10-15 seconds before the indicator flashes. The router will return to the factory IP indicated on the sticker at the bottom.

Configure DHCP server after changing address

It is important to understand that the change IP-The address of the router (gateway) often requires adjustment of settings DHCP-This service automatically distributes addresses to connected devices (smartphones, laptops, TVs) and the range of addresses distributed must correspond to the new subnet.

For example, if you change the router address to 192.168.50.1, the DHCP range should start at 192.168.50.2 and end at, for example, 192.168.50.200. If the range remains old (for example, 192.168.31.x), the devices will receive addresses that are incompatible with the new gateway, and the Internet will not work.

In the LAN Settings menu, look for the DHCP Server section. Make sure it's Enable. Check the Start IP and End IP fields. These should be in the same third group of digits as the new router address.

ParameterOld meaningNew value (example)Description
IP Address192.168.31.1192.168.50.1Address of the router itself
Subnet Mask255.255.255.0255.255.255.0Subnet mask
DHCP Start192.168.31.2192.168.50.2Start of distribution range
DHCP End192.168.31.254192.168.50.254End of the distribution range

Once you save your DHCP settings, it is recommended to restart the router via the System Status -> Reboot menu, which ensures that all services start with the new configuration and begin to correctly issue addresses to customers.

Possible problems and solutions

The most common problem after a shift IP β€” The solution is simple: turn off and reconnect the network cable or reconnect to Wi-Fi. The operating system will request a new address from the DHCP-router.

If access is not restored, check the network card settings on your computer. IP, It's a conflict with the new network. TCP/IPv4 Choose "Get." IP-addressΒ».

There are also situations where some smart home devices don't see the router after changing the subnet. Xiaomi Home devices running over the cloud usually recover themselves, but local scenarios may require reconfiguration.

⚠️ Note: Do not set your router address to 192.168.0.1 or 192.168.1.1 if you already have another router from your provider.

In rare cases, Xiaomi firmware can freeze when settings are applied. If the indicator is lit red or flashes orange for more than 5 minutes, you will need to flash the device through recovery mode.

πŸ’‘

The main rule: new IP-router address and range DHCP-servers must be in the same subnet (match the first three numbers, for example, 192.168.X.X).

Frequently Asked Questions (FAQ)

Can I change the IP address of the Xiaomi router through the Mi Home app?
Unfortunately, the Mi Home mobile application has limited functionality compared to the web interface, full LAN and DHCP configuration is only available through the browser at the router address, and the application allows only basic monitoring and management of Wi-Fi.
What if the router stopped giving out the Internet after changing the IP?
Most likely, the DNS or DHCP range settings are down. Go to the router settings at the new address, check that the provider addresses or public DNS (for example, 8.8.8.8) are written in the DNS field, and the DHCP range coincides with the new router subnet.
Does the change in local IP affect the speed of the Internet?
No, the address itself (e.g. 192.168.31.1 or 10.0.0.1) does not affect the data rate, but the speed depends on the provider, the quality of the cable, the load of the Wi-Fi channel and the power of the Xiaomi router processor.
How to return the IP address if I forgot a new one?
The only reliable way is to reset the settings. Find a small hole on the case, press a paper clip on the device on and hold for about 10 seconds until the indicator blinks. The router returns to the factory settings indicated on the sticker.