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:
- 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).
- 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:
- In the router web interface, go to Additional settings โ Local area network โ DHCP.
- Find the Address Reservation (or Reference) section IP and MAC firmware).
- 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:
- Open the control panel. โ Network and Internet โ Network and Sharing Control Center.
- Click on your current connection (e.g. Ethernet or Wi-Fi).
- In the state window, click Properties โ IP version 4 (TCP/IPv4) โ Properties.
- 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:
- Open the Settings. โ Wi-Fi.
- Click on your network name and hold your finger, then select Change Network (or Additional).
- In the IP Settings section, select Static.
- 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).
Table: Ranges IP Recommended addresses for Xiaomi
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 router | IP router (gateway) | DHCP-default | Recommended static IP |
|---|---|---|---|
| Mi Router 4A, 4C, 4Q | 192.168.31.1 | 192.168.31.100โ192.168.31.199 | 192.168.31.2-192.168.31.99 or 192.168.31.200-192.168.31.254 |
| AX3600, AX6000, AX9000 | 192.168.31.1 | 192.168.31.100โ192.168.31.199 | 192.168.31.2-192.168.31.99 or 192.168.31.200-192.168.31.254 |
| Mi Router 3G, 3 Pro | 192.168.31.1 | 192.168.31.100โ192.168.31.200 | 192.168.31.2-192.168.31.99 or 192.168.31.201-192.168.31.254 |
| Xiaomi Router 4 (old firmware) | 192.168.0.1 | 192.168.0.100โ192.168.0.199 | 192.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:
- Check the lights on the router โ if it flashes orange, it may have been looped. DHCP.
- Turn off static. IP on the device and check if the Internet appears when automatically receiving the address.
- Restart the router and device.
What to do if the router does not save the settings DHCP-reservation?
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:
- Open the routerโs web interface and go to Additional Settings โ Redirection โ Port transfer.
- 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.