How to change dynamic IP to static on Xiaomi router: a complete guide with nuances

Why static IP on Xiaomi router is better than dynamic IP and when it really needs to be

You are tired of having your Mi Router. 4A or AX6000 Once a day, it โ€œresetsโ€ the local IP-devices that require reconnection NAS-server, reset port port forwarding or manually update addresses in smart home systems? IP through DHCP It is convenient for most users, but in some scenarios it creates more problems than it solves.

The static IP on Xiaomi router ensures that your computer, security camera, or server will always receive the same address on the local network โ€“ for example, 192.168.31.100.

  • ๐Ÿ–ฅ๏ธ Local servers (Plex, Nextcloud, game servers)
  • ๐Ÿ“น IP-Cameras and video surveillance systems (e.g. Xiaomi Mi Home Camera)
  • ๐Ÿ”Œ Port transfer (for remote access to devices)
  • ๐Ÿค– Smart home (if controllers are tied to fixed home systems) IP)
  • ๐ŸŽฎ Game consoles (PS5, Xbox with open ports for multiplayer)

However, not all Xiaomi routers support โ€œcleanโ€ static IP It's a classic way of thinking, and instead, it's a redundancy mechanism. IP down MAC-And that's an important nuance that we'll be going through later. IP inside the local network and the external whiteยป IP ISPs are two big differences, and this article will focus on local addresses (like the ones you see here). 192.168.x.x).

๐Ÿ“Š What kind of Xiaomi router do you have?
Mi Router 4A/4C
Mi Router 5/5G
AX1800/AX3000
AX6000/AX9000
Another brand

Preparation: What to Know Before Changing IP to Static

Before you go into the settings, make sure you understand a few key points:

  1. MAC-The address of the device is its unique "passport" on the network. Without it, the router will not be able to secure the device. IP. Find out. MAC You can use ipconfig. /all (Windows), ifconfig (Linux/macOS) or in the device settings.
  2. The default DHCP range on Xiaomi router is usually 192.168.31.100โ€“192.168.31.199. Static IP must be outside this range (e.g. 192.168.31.50), otherwise the router may โ€œoverwriteโ€ it.
  3. IP conflicts โ€“ if you manually assign an address that is already being used by another device, both gadgets will lose access to the network.

Also check if the target device is not enabled. AP IPA (Random MAC Address - she changes MAC-address at each connection that will make reservation IP It's pointless. On Android, it's configured in Wi-Fi settings, on iOS, it's configured in Settings. โ†’ Wi-Fi โ†’ (i) close to the network โ†’ Private Wi-Fi address.

๐Ÿ’ก

If you're setting up a static IP for a server or NAS, write down the address you select in a notebook and stick the sticker on the device itself, which will avoid confusion in future settings.

This is the most reliable method, because it binds IP ce MAC-The instructions are suitable for all modern models: Mi Router 4A, 4C, 5, AX1800, AX3000, AX6000 and others with MiWiFi firmware.

Step 1. Connect to your router via cable or Wi-Fi and open the web interface by going to http://192.168.31.1 (or miwifi.com).

Step 2. Go to Additional Settings โ†’ Local Network โ†’ DHCP (on some firmware, the path may look like Settings โ†’ Local Network โ†’ DHCP settings).

Step 3. Find the Address Reservation (or IP and MAC Link) block and click Add.

  • ๐Ÿ”น In the field MAC-Enter the address of the target device (for example, A4:17:31:XX:XX:XX).
  • ๐Ÿ”น In the field IP-address: provide the desired static address (e.g. 192.168.31.50).
  • ๐Ÿ”น In the Description field, add the device name (optional, but useful for identification).

Make sure that IP off-range DHCP|Check it out. MAC-misspelling|Provide a description for convenience|Save settings and restart the router-->

Step 4: Save the changes and restart the router through System Tools โ†’ Reboot. After restarting, the predefined device MAC-The address will always be given to you. IP.

โš ๏ธ Note: If the device does not receive the specified IP, Check if the random function is included. MAC-address (see section "Preparation"). Also make sure that IP Does not conflict with other devices on the network.

Method 2: Configure static IP on the device itself (alternative)

If you don't have a router backup for some reason (like your old firmware), you can assign static IP directly to your device, whether it's a computer, smartphone or server, but this is less reliable because if you change the router or reset the router, you'll have to reconfigure everything.

For Windows 10/11:

  1. Open Control Panel โ†’ Network and Internet โ†’ Network Control Center โ†’ Change the adapter settings.
  2. Right-click on your connection (Wi-Fi or Ethernet) and select Properties.
  3. Select IP version 4 (TCP/IPv4) and press Properties.
  4. Choose Use the following IP-enter: IP-address: 192.168.31.50 (example) Subnet Mask: 255.255.255.0 Main gateway: 192.168.31.1 (your router's address) Preferred DNS-server: 192.168.31.1 or 8.8.8.8 (Google) DNS)

For Android:

Go to Settings โ†’ Wi-Fi โ†’ (click on your network) โ†’ Change network โ†’ Additional โ†’ IP settings and select Static. Fill in the fields similar to Windows.

For macOS/Linux:

The setup is done via a terminal or a graphical interface of network connections. For example, in Ubuntu, this is done in Settings โ†’ Network โ†’ Cog next to the connection โ†’ IPv4.

โš ๏ธ Note: If you are going to have a static IP on the device, but do not reserve it on the router, another gadget on the network can โ€œstealโ€ this address through the router. DHCP. This will lead to conflict and loss of connection.

What to do if the static IP is not working?
1. Check that the IP is not in the DHCP range (e.g., if DHCP is giving away 192.168.31.100โ€“199, take the address below 100). 2. Make sure the subnet mask and gateway are correctly listed (typically 255.255.255.0 and 192.168.31.1). 3. Reboot both the router and the target device. 4. Check if the firewall (e.g., on Windows) blocks the new connection.

Table: Comparison of methods for assigning static IP to Xiaomi

MethodPlusesConsSuitable for
Router reservationsCentralized management Works for all devices Not lost when changing OSRequires access to the router Does not work on a random MACServers, IP-cameras, smart home
Setup on the deviceNo router is suitable for temporary tasksIP Conflict Risks Get Rid When Network ChangesTesting, temporary tasks
Disable DHCP + Manual SetupMaximum control is suitable for experienced usersDifficult to set up Inconvenient for a large number of devicesAdvanced fixed address networks

Common Mistakes and How to Avoid Them

Even experienced users sometimes encounter problems when configuring static IP. Here are the most common errors and their solutions:

  • ๐Ÿšซ IP-range DHCP โ†’ The router can overwrite it.Solution: Change range DHCP in the router settings or select IP beyond.
  • ๐Ÿšซ A typo in MAC-address โ†’ The reservation won't work.Solution: Check it out MAC via ipconfig /all or in the device settings.
  • ๐Ÿšซ Conflict IP โ†’ Two devices try to use the same address. Solution: Check the list of connected devices in the router's web interface (Devices on the network).
  • ๐Ÿšซ wrong gateway or DNS โ†’ No Internet access. Solution: Make sure the gateway is the gateway. IP your router (usually 192.168.31.1).
  • ๐Ÿšซ Accidental MAC-address โ†’ Reservations are not working.Solution: Disable Random MAC device-wise.

If after all the manipulations the device still does not receive a static IP, try:

  1. Reset network settings on the target device.
  2. Update the router firmware (relevant for older models such as Mi Router 3).
  3. Temporarily disable firewall/antivirus that can block network changes.

๐Ÿ’ก

Reservation of IP on the router is more reliable than setting up on the device, as it does not depend on its OS and eliminates conflicts.

Additional settings: port rollover and DMZ for static IP

One of the big advantages of static IP is that you can configure Port Forwarding or DMZ to access your device from the Internet, for example, to remotely connect to your home server or camera.

How to set up port port port transfer on Xiaomi:

  1. Go to Additional settings โ†’ Redirect โ†’ Port rollover.
  2. Click Add the rule and complete it: ๐Ÿ“Œ Name: Name of the service (e.g. Cameraยป) ๐Ÿ“Œ Protocol: TCP, UDP either ๐Ÿ“Œ External port: Port that will be open from the outside (e.g. 8080) ๐Ÿ“Œ Internal IP: Static IP your device (e.g. 192.168.31.50) ๐Ÿ“Œ Internal port: Port on the device (e.g. 80 for a web server)

Save the rule and restart the router.

DMZ setting:

If you want to open all ports for a single device (like a game console), use the DMZ:

  1. Go to Additional Settings โ†’ Redirect โ†’ DMZ.
  2. Enable the function and specify the static IP device.
  3. Save the settings.

Try assigning a different IP to your device or temporarily disable your reservation.

Can I make a static IP for a guest network on Xiaomi?
No, the guest network on Xiaomi routers uses a separate subnet (usually 192.168.32.x) and does not support IP reservation. For a static address in the guest network, you will have to configure it directly on the device.
Will static IP work after the router is reset to factory settings?
No, all IP reservation settings will reset. Once reset, you will have to reconfigure the static addresses in the web interface. To avoid this, save the router configuration to a file (System Tools โ†’ Backup/Restore).