Static IP-The address on the Xiaomi router is a guarantee of stable operation of devices on the local network. NAS-server, IP-A camera or game console can suddenly lose communication after restarting the router. IP, The static address is fixed forever, which changes with each connection, this is critical for port port forwarding, remote access and network services.
In this article, we will discuss two ways of setting up: through binding. MAC-Addresses in the router's web interface and through manual configuration on the client device. The instructions are relevant for all popular models - from the budget Mi Router 4A before the flagship Xiaomi AX6000. You will also learn how to avoid conflicts. IP Why a static address can โflyโ after a firmware update.
Why do we need static IP on a Xiaomi router
Dynamic IP-addresses that the router gives out on the protocol DHCP, It's easy for ordinary users, you don't have to configure anything, and the network works out of the box, but in some cases, dynamics becomes a problem:
- ๐ Port transfer: if IP The devices change, the rules of the rollout stop working, and external connections (for example, to the game server or camera) are terminated.
- ๐ฅ๏ธ Remote Access: To connect to a home PC via RDP or SSH need a fixed address.
- ๐ก Local services: NAS-Systems (Synology, QNAP), Media servers (Plex, Kodi) and printers require stable IP work-in.
- ๐ฎ Game consoles: PlayStation or Xbox with open ports for multiplayer can be โlostโ in the network when changing IP.
Also, static IP It simplifies network administration: you always know what the address of a device is, and you can quickly connect to it via the Internet. SSH, FTP or through a web interface.
โ ๏ธ Note: If you already have a device with manual setup on your network IP (For example, a printer with 192.168.31.100 address, and you will link the same address to another gadget via a computer. MAC, conflict IP. Router will block the network before restarting.
Preparation: Check the current network settings
Before you assign a static IP, make sure that:
- The router is connected to the Internet, and the local network is stable.
- You have access to the web interface (192.168.31.1 or miwifi.com).
- You know. MAC-The address of the device for which you configure the static IP (You can find it in the settings of the gadget network or in the list of connected devices on the router).
To check the current one. IP-address MAC device:
- ๐ฅ๏ธ On Windows: Open the Command Prompt and enter ipconfig /all Look for lines IPv4-address and physical address.
- ๐ฑ On Android: Go to Settings โ The phone. โ General information โ Status (the path may be different).
- ๐ Nana macOS/iOS: Open System settings โ Network (or Settings) โ Wi-Fi โ (i) next to the network on the iPhone).
It is also useful to know the range. DHCP The default on Xiaomi is usually 192.168.31.2-192.168.31.254. IP must be outside this range (e.g. 192.168.31.100) to avoid conflict.
How to find out the range DHCP Xiaomi?
Method 1: Binding MAC-address IP router-based
This is the most reliable method, as the setting is stored on the router and applied to all devices on the network automatically, the instructions are suitable for firmware MiWiFi (Chinese version) and Global.
Steps:
- Open the router's web interface at the address http://192.168.31.1 or http://miwifi.com. Log in (the default login and password is usually a combination with a sticker on the bottom of the router).
- Go to the section Additional โ Local area network โ DHCP (On the new firmware path, the settings may be โ Local area network).
- Find the binding unit. IP and MAC (or ARP Binding in English version) and click Add.
- Enter: ๐ข MAC-address of the device (e.g, A4:12:42:XX:XX:XX). ๐ IP-the address you want to secure (for example, 192.168.31.100). ๐ Description (optional but convenient for identification, for example, ยซNAS-serverยป).
Save the settings and restart the router.
Important: If you appoint IP off-range DHCP (For example, 192.168.31.250), make sure that this address is not used by another device, otherwise both devices will not be available.
MAC-Address entered without errors (registration is not important)|
IP-out-of-range DHCP|
Description of the device is indicated (for convenience)|
Router rebooted after saving-->
| Model router | The path to settings DHCP | Does he support ARP Binding |
|---|---|---|
| Mi Router 4A | Additionally โ Local Area Network โ DHCP | Yes. |
| Xiaomi AX3600 | Settings โ Local area network โ DHCP | Yes (including reservations) |
| Xiaomi AX6000 | Advanced โ LAN โ DHCP (lingo) | Yes. + support IPv6 |
| Mi Router 3G/Pro | Systemic tools โ Local area network | Yeah (obsolete interface) |
Method 2: Static adjustment IP client-side
If for some reason binding on the router is not available (for example, on firmware with reduced functionality), you can assign a static IP It's less reliable because when you reset your network settings on your device, it's less reliable. IP ยซfly offยป.
Instructions for different OSes:
๐ฅ๏ธ Windows 10/11
- Open the settings. โ Network and Internet โ Wi-Fi/Ethernet โ Adjustment of adapter parameters.
- Right-click on your connection (Wi-Fi or Ethernet) โ Properties.
- Select IP version 4 (TCP/IPv4) โ Properties.
- Set the switch to Use the following IP-enter: IP-address: 192.168.31.100 (example). Subnet mask: 255.255.255.0. Main gateway: 192.168.31.1 (router address). DNS-servers: 192.168.31.1 or public DNS (For example, 8.8.8.8 from Google).
Save the settings and restart the PC.
๐ฑ Android
On Android, the path may differ depending on the shell (MIUI, ColorOS, etc.), but the general scheme:
- Go to Settings. โ Wi-Fi.
- Click on your network. โ Change the network (or additionally).
- In the IP Settings section, select Static.
- Fill in the fields similar to instructions for Windows (IP, lock, DNS).
๐ macOS/iOS
On Apple devices:
- Open System settings โ Network (macOS) or Settings โ Wi-Fi โ (i) near the network (iOS).
- Select Manual in the settings IPv4.
- Enter. IP, mask, gateway and DNS.
โ ๏ธ Note: If you have been assigned a static IP on the device, but forgot to exclude it from the range DHCP On a router, another gadget can get the same address automatically, which will lead to a network conflict and shutdown of the Internet on both devices.
ping 192.168.31.100If no response is given (Exceeding waiting time), IP free.-->
Problems and Solutions: Why Static IP doesn't work
Even after the correct setup, static IP We'll look at the typical causes and how to fix them:
| Problem. | Possible cause | Decision |
|---|---|---|
| IP It does not persist after rebooting | The setting is made on the device, not on the router | Use the binding. MAC on a router (Method 1) |
| No Internet access | the gateway is incorrectly indicated or DNS | Check that the lock = IP router (192.168.31.1) |
| Conflict IP-address | Selected IP already used by another device | Check the list of connected devices in the routerโs web interface |
| Settings are reset after firmware update | Reset router configuration | Make a backup of settings before updating |
If, after the binding, MAC The device still gets dynamic. IP:
- ๐ Restart the router and client device.
- ๐ง Check if it's on. DHCP-server on the router (Settings) โ Local area network โ DHCP).
- ๐ก Make sure the device is connected to the same network (2.4 GHz or 5 GHz) for which the binding is made.
๐ก
If static IP stopped working after updating the router firmware, try to remove the binding MAC And then we recreate it. In newer versions of Xiaomi software, you sometimes change the format of your settings.
Additional settings: reservation IP port-over
Static binding IP It's often used for port forwarding, like opening up a home server from the Internet:
- Go to Settings. โ Redirection โ Port transfer.
- Add a new rule: ๐ External port: A port that will be open from the outside (e.g. 8080 for a web server). ๐ Internal IP: static IP your device (e.g. 192.168.31.100). ๐ข Internal port: port on the device (e.g., 80 for HTTP). ๐ Protocol: TCP, UDP either.
YouGetSignal
Also on Xiaomi. AX3600 and AX6000 Available Reservation function IP (IP It automatically assigns the same thing. IP the device at each connection, even if it is not tied through MAC. To turn on:
- Go to Settings โ Local Network โ DHCP.
- Find the device in the list of connected and click Reserve.
This is convenient for devices that are often connected/disabled (such as smartphones or tablets).
Safety: Risks of static IP and how to avoid them
Static IP It simplifies network administration, but also creates additional risks:
- ๐ Scan vulnerability: if the attacker knows your external IP, It can scan ports and find open services.
- ๐ต๏ธ Activity tracking: static IP facilitates device identification on the network (e.g. for targeted advertising).
- ๐ Conflicts when changing the network: if you connect the device to another network (for example, at a party), static IP may cause problems.
Safety recommendations:
- ๐ Use strong passwords for devices with open ports (router, NAS, camera).
- ๐ก๏ธ Turn on the firewall on the router (Settings) โ Security โ Firewall).
- ๐ Regularly update the routerโs firmware (new versions close vulnerabilities).
- ๐ Use remote access for the VPN Instead of port port port forwarding (such as WireGuard or OpenVPN).
โ ๏ธ Note: If you open ports to access cameras or NAS From the Internet, never use standard logins / passwords (admin/admin). Bots scan such devices and can gain control of your network.