How to set up static IP-Address on Xiaomi router: a complete guide with examples

Static adjustment IP-Addresses on the Xiaomi router are a challenge faced by both novice users and experienced home network administrators. IP It's for remote access to cameras, servers, printers, or just for easy control of devices on a local network. IP, The static address remains constant, which eliminates the need to search for a device on the network after each reboot of the router.

In this article, we will discuss two main ways of binding static IP: through DHCP-redundancy (the recommended method for most users) and through manual setup on the device itself.Both options work on all modern Xiaomi routers - from budget Mi Router 4A flagship AX9000. We will focus on common mistakes that lead to conflict. IP or loss of network access.

Why do we need static IP on a Xiaomi router?

Many users mistakenly believe that static IP It's only required for advanced tasks, and it's actually useful in everyday scenarios:

  • ๐Ÿ“น IP-cameras and DVRs โ€“ without a static address after restarting the router, the camera can โ€œlostโ€ in the network, and the recording will be interrupted.
  • ๐Ÿ–จ๏ธ Network Printers and MFPs โ€“ if IP The printer is changing and will have to be added to every computer.
  • ๐Ÿ’ป Local servers (NAS, Plex, Nextcloud โ€“ Static IP Ensures that the server can always be connected to the same address.
  • ๐ŸŽฎ Game consoles โ€“ some online games require port rollover, which is not possible without a fixed port. IP.

Also, static IP Simplifies remote access to devices over the Internet (if you configure port overhead) and helps to avoid conflicts IP, When two devices accidentally receive the same address from the DHCP-router.

โš ๏ธ Note: If you are setting up static IP To access your device from the Internet, remember to also configure Port Forwarding and change the router's standard admin panel password. Otherwise, your network may become vulnerable to attacks.

Method 1: Reservation IP through DHCP (method)

The easiest and most reliable way to tie a static IP โ€” function DHCP-backup in the router settings. In this case, the device still receives IP automatically, but the router always gives him the same address, tied to the MAC-address.

Advantages of the method:

  • โœ… Does not require manual adjustment on the device itself (works even if the device does not support static). IP).
  • โœ… Avoids conflict IP, The router itself monitors the uniqueness of the addresses.
  • โœ… Easy to undo or change bindings via web interface.

The instructions are suitable for all Xiaomi routers with MiWiFi firmware or Xiaomi Router OS, including models AX3600, AX6000, Mi Router 4C others.

Connect the device to the router via Wi-Fi or cable

Make sure the device is on and active on the network

Remember or write down. MAC-Device address (can be found in router settings)

Open the router's web interface at 192.168.31.1-->

Step 1. Find it. MAC-address

MAC-The address is a unique identifier of the network interface, and it can be recognized in two ways:

  1. Through router settings: Open the routerโ€™s web interface at the address http://192.168.31.1 (or http://miwifi.com). Go to the Devices. โ†’ Connected devices. Find the right device on the list and copy it. MAC-address MAC).
  2. Through Device Settings: On Windows: Open the Command Prompt (Win) + R โ†’ cmd) and enter: ipconfig /all MAC-The address will be in the physical address. On Android: go to Settings โ†’ The phone. โ†’ General information โ†’ MAC-Wi-Fi address. On iOS: Settings โ†’ Wi-Fi โ†’ (i) close to the network โ†’ MAC-address.

Step 2. Reserve. IP router-setting

Now we'll tie it down. MAC-address IP:

  1. In the router web interface, go to Additional settings โ†’ Local area network โ†’ DHCP.
  2. Find the Address Reservation (or Reference) section IP and MAC firmware).
  3. Click Add and enter: MAC-address of the device (without spaces and dashes, for example) A4:1B:2C:3D:4E:5F). IP-the address you want to assign (e.g. 192.168.31.100) Description (optional, e.g ยซIP-kitchen-chamberยป).

Save the settings and restart the router.

After restarting, the device will always receive a fixed IP. You can check this in the Connected Devices section - next to MAC-The address will be displayed as reserved IP.

๐Ÿ’ก

DHCP-Reservations are the safest way to tie a static IP, The router controls the uniqueness of the addresses and eliminates conflicts.

Method 2: Manually adjusting static IP device-wise

If for some reason you cannot use DHCP-redundancy (e.g., the router does not support this feature or the device connects to multiple networks), you can configure static IP But this method requires caution: if you specify IP, If you are already using another device, there will be a conflict. IP, Both devices will lose access to the network.

Before proceeding, make sure that the selected IP:

  • It is located within the range of your local network (usually 192.168.31.2-192.168.31.254 for Xiaomi routers).
  • Not included in DHCP-pool (the range of addresses that the router gives out automatically) can be viewed in the settings. DHCP.
  • Not used by another device (check in the list of connected devices).

Reservation through DHCP (router)

Manual setting on the device

I don't know, I haven't tried it yet.

I'll use both ways.-->

Setup on Windows 10/11

Instructions for wired (Ethernet) or Wi-Fi connection:

  1. Open the control panel. โ†’ Network and Internet โ†’ Network and Sharing Control Center.
  2. Click on your current connection (e.g. Ethernet or Wi-Fi).
  3. In the state window, click Properties โ†’ IP version 4 (TCP/IPv4) โ†’ Properties.
  4. Choose Use the following IP-enter: IP-address: for example, 192.168.31.100 Subnet mask: usually 255.255.255.0: IP your router (usually 192.168.31.1). DNS-server: you can specify 192.168.31.1 (router) or public DNS, e.g. 8.8.8.8 (Google).

Save the settings and reboot the network.

Setup on Android

On Xiaomi smartphones and tablets (and other brands), the process is similar:

  1. Open the Settings. โ†’ Wi-Fi.
  2. Click on your network name and hold your finger, then select Change Network (or Additional).
  3. In the IP Settings section, select Static.
  4. Fill in the fields: IP-address: for example 192.168.31.101 Gateway: 192.168.31.1. Network prefix length: 24 (mask equivalent 255.255.255.0). DNS 1 and DNS 2: You can default or specify 8.8.8.8 and 8.8.4.4.

Save it and reconnect.

โš ๏ธ Note: If you have set up a static IP Internet is lost, check: Correctness of the entered gateway (should match with the IP router, no conflict IP (Try another address from the free range. DNS โ€” If it doesnโ€™t work, try to specify 1.1.1.1 (Cloudflare).

To avoid conflicts, use them. IP-free range addresses โ€“ those that are not included in DHCP-The following is a table with typical settings for Xiaomi routers:

Model routerIP router (gateway)DHCP-defaultRecommended static IP
Mi Router 4A, 4C, 4Q192.168.31.1192.168.31.100โ€“192.168.31.199192.168.31.2-192.168.31.99 or 192.168.31.200-192.168.31.254
AX3600, AX6000, AX9000192.168.31.1192.168.31.100โ€“192.168.31.199192.168.31.2-192.168.31.99 or 192.168.31.200-192.168.31.254
Mi Router 3G, 3 Pro192.168.31.1192.168.31.100โ€“192.168.31.200192.168.31.2-192.168.31.99 or 192.168.31.201-192.168.31.254
Xiaomi Router 4 (old firmware)192.168.0.1192.168.0.100โ€“192.168.0.199192.168.0.2โ€“192.168.0.99 or 192.168.0.200โ€“192.168.0.254

Important: If you have changed the router's subnet (for example, with a 192.168.31.x on 192.168.1.x), static IP They also have to be from the new subnet, otherwise the devices will lose communication with the router.

Common Mistakes and How to Avoid Them

Even experienced users sometimes face problems when setting up a static IP. Here are the most common mistakes and their solutions:

  • ๐Ÿ”ด Conflict IP-Addresses: Two devices are trying to use the same address IP. Solution: Check the list of connected devices in the router and change IP free-for-all.
  • ๐Ÿ”ด Wrong gateway or subnet mask - the device cannot access the Internet. Solution: Make sure the gateway matches the one that is connected to the Internet. IP router, and the mask subnet โ€” 255.255.255.0 (or /24).
  • ๐Ÿ”ด IP outside the range of the local network โ€“ for example, indicated 192.168.1.100 when the router is 192.168.31.x. Solution: Check the settings of the router network in the Local Network section.
  • ๐Ÿ”ด It's not working. DNS โ€” The websites are not open, although IP Solution: Try to specify public DNS (for example 8.8.8.8 or 1.1.1.1).

If after setting up the static IP The device has stopped going online:

  1. Check the lights on the router โ€“ if it flashes orange, it may have been looped. DHCP.
  2. Turn off static. IP on the device and check if the Internet appears when automatically receiving the address.
  3. Restart the router and device.
What to do if the router does not save the settings DHCP-reservation?
Sometimes after restarting the router binding IP ce MAC This can be due to: 1. Firmware failure โ€” try to upgrade the router to the latest version of the software. 2. Lack of memory โ€” on budget models (for example, Mi Router). 4A) with a large number of reservations IP Errors can occur. Delete unnecessary anchors. 3. Conflict with third-party software - if the router has additional scripts or firmware installed (for example, Padavan), they can block changes.

Port overlay and static IP: whenever necessary?

If you are setting up a static IP Remote access to a device via the Internet (for example, to a camera or server), one reservation IP You also need to set up port forwarding on the router, and without that, the device will only be available on the local network.

Example of scenarios where port port transfer is required:

  • ๐Ÿ“ก You want to connect to your home. IP-camera.
  • ๐ŸŽฎ You need to open access to the game server for friends.
  • ๐Ÿ’พ You're using it. NAS You want to access it from anywhere in the world.

Instructions for port port port port port port for Xiaomi routers:

  1. Open the routerโ€™s web interface and go to Additional Settings โ†’ Redirection โ†’ Port transfer.
  2. Click Add Rule and fill in the fields: Rule name: for example, "Camera in the Kitchen." Protocol: select TCP, UDP or TCP/UDP. External port: port where the device will be accessed from the Internet (for example, 8080). Internal IP: static IP devices on a local network (for example, 192.168.31.100). Internal port: port of the device (e.g, 80 webserver).

Save the rule and apply the settings.

โš ๏ธ Warning: Port rolling opens up access to your device from the Internet, which may not be secure.Always: Use complex passwords for devices you're tapping ports to. Open only the necessary ports (e.g., don't sniff out) RDP (3389) or SSH (22) without extreme need. Regularly update the firmware of the router and devices.

  • Use it. VPN (For example, built-in WireGuard in Xiaomi routers AX6000/AX9000).
  • Set up cloud access through services like Xiaomi Cloud (for cameras) or TeamViewer.
  • Use services like Ngrok for temporary port tunneling.

FAQ: Frequent questions about static settings IP Xiaomi

Can you adjust the static? IP on the Xiaomi router via the mobile application?
Yes, but with limitations. In the official Mi Wi-Fi app (or Xiaomi Home for some models), you can: Open a list of connected devices. Click on the desired device and select Reserve. IP (However, the mobile application does not have full functionality of the web interface, so it is better to use the browser for fine-tuning.
What to do if you have set up a static IP device is not connected to the network?
Check the following: Make sure that IP-The address does not conflict with other devices (check in the list). DHCP-Check that the gateway matches the router's customers. IP router (typically 192.168.31.1). If you use manual settings on your device, try returning Automatic Receipt IP And check if the Internet is coming up, restart the router and the device, and if the problem persists, reset the network settings on the device and set up a static one. IP freshly.
How do I know which one IP-address available for reservation?
There are two ways: via router: Go to Additional settings โ†’ Local area network โ†’ DHCP. See the range of addresses you deal (e.g. 192.168.31.100-199). IP outside this range (e.g. 192.168.31.50 or 192.168.31.200) via the command line (Windows): ping 192.168.31.100 If the response is exceeded the waiting interval, IP If you get an answer, the address is occupied.
Can we use static? IP for devices connected over Wi-Fi?
Yes, static. IP It works the same for wired (Ethernet) and wireless (Wi-Fi) connections. IP ce MAC-The address of the Wi-Fi adapter, not Ethernet (if the device is connected wirelessly), for example, for a smartphone you need to use the MAC-Wi-Fi address, and for PC โ€” MAC-address of the adapter (Wi-Fi or Ethernet) through which it is connected to the router.
What is the difference between static IP from DHCP-reservation?
Main differences: Static parameter IP (device-wise) DHCP-Reservation (on the router) Where is configured On the device itself (PC, smartphone, camera) In the settings of the router Conflict Management No (you can accidentally specify the occupied IP) Yes (router monitors uniqueness) Flexibility can be specified IP, beyond DHCP-range IP Must be within the range of the local network Convenience Need to be configured on each device separately Set up centrally on the router Recommendation: For most users DHCP-Reservation is preferable because it eliminates errors and conflicts.