How to change IP-Address on the Xiaomi router: 3 proven ways

Change of change IP-Xiaomi router addresses can be required in a variety of situations, from a banal conflict of addresses on the local network to the need to bypass the ISP lock or improve the security of the home network. VPN Or use a proxy -- in fact, most of the tasks are solved right in the router's settings. IP, including manually adjusting the static address, restarting DHCP-customer and even reset configuration to factory values.

Feature of Xiaomi routers (series Mi Router) 4A, 4C, 5, 6, AX3000 And others, MiWiFi, which is a proprietary firmware that hides some of the advanced settings behind a simplified interface, is often confusing for beginners, but in practice, all the manipulations are very simple. IP They're run by standard network protocol rules, and the key is to understand the difference between the external (white) protocols) IP, The one who is the owner and the one who is the owner) IP, local-network.

If you need to change the external IP (For example, to access blocked resources, it depends on the policy of your Internet service provider. Most Russian operators (Rostelecom, Beeline, MTS) link external IP ce MAC-The address of the device, so changing it will require additional actions. IP (For example, 192.168.31.1) can be changed in two clicks โ€“ we will talk about this in the first section.

๐Ÿ“Š Why do you want to change? IP on a Xiaomi router?
To bypass the blocking of sites
Due to address conflict on the network
To improve security
Other
I don't know, just curious.

1. How to change local IP-router address (192.168.31.1) โ†’ other)

Local. IP-The router address (aka the default gateway) defines the address space of your entire home network. By default, most Xiaomi models use a subnet. 192.168.31.0/24, where the router itself has an address 192.168.31.1. You can change it through the MiWiFi web interface:

  1. Connect to the router network via Wi-Fi or cable.
  2. Open your browser and go to the address http://miwifi.com or 192.168.31.1. Log in (the default login and password is usually a combination) admin/admin or indicated on the device sticker).
  3. Go to the Additional Settings section โ†’ Local area network (LAN).
  4. In the field IP-Enter a new address, such as 192.168.10.1. the subnet mask usually remains 255.255.255.0.
  5. Save the settings and wait for the router to restart (it will take). ~1 minute).

It's important! IP-The routerโ€™s address you will have to connect to it at a new address (for example, http://192.168.10.1). All devices on the network will also receive new ones. IP from the updated range (for example, 192.168.10.2โ€“192.168.10.254).

โš ๏ธ Note: If you are using static binding IP on connected devices (for example, for video surveillance cameras or NAS), You'll have to manually reconfigure them once you change the router's address. IP.

Some models (e.g. Xiaomi Mi Router) 4A Gigabit Editions may not save changes if new IP-The address conflicts with another device on the network:

  • ๐Ÿ”„ Restart all network devices (router, switches, repeaters).
  • ๐Ÿ“ฑ Check the settings. IP on connected gadgets (manually assigned addresses can be duplicated).
  • ๐Ÿ”ง Drop the cache. DNS on a computer with the ipconfig command /flushdns (Windows or sudo dscacheutil -flushcache (macOS).

โ˜‘๏ธ Checking after local change IP

Done: 0 / 4

Change of external (white) IP-Addresses: What works and what doesn't

Outside IP-The address is assigned to your router by the provider and can be static (permanent) or dynamic (changes with each connection). IP, which can be changed in several ways:

Method 1: Reconnect to the provider (the easiest way)

If you IP dynamic, it can be renewed by forced break of the connection:

  1. Go to the routerโ€™s web interface (miwifi.com).
  2. Go online. โ†’ Status.
  3. Press Disconnect, wait 1-2 minutes and press Connect.

In 80% of cases, the provider will issue a new IP. If not, try turning off the router power for 5-10 minutes.

Method 2: Cloning MAC-address

Some providers (for example, Rostelecom or Dom.ru) link IP ce MAC-To change the address of the device:

  1. In the router settings, find the Internet section โ†’ MAC-cloning.
  2. Enter arbitrary. MAC (for example, 00:1A:2B:3C:4D:5E) or lean MAC computer.
  3. Save the settings and restart the router.

Method 3: Use VPN router

If the provider is providing a static IP Or you want to hide your real address completely, you can set it up. VPN-It's connected directly to the router:

  • ๐Ÿ”— Supported protocols: PPTP, L2TP, OpenVPN (on Padavan or OpenWRT firmware).
  • ๐Ÿ“ Required: data VPN-provider (server, login, password, encryption keys).
  • โš ๏ธ Limitation: standard MiWiFi firmware does not support OpenVPN โ€“ you will have to install custom.

โš ๏ธ Attention: Change MAC-address VPN This may violate the rules of your ISP, in some cases (for example, if you suspect fraud), this may lead to the blocking of your account.

Method of change IPIt's running on standard firmware.Requires a reboot.The risk of blocking by the provider
Reconnecting to the providerโœ… Yes.โŒ No.โŒ Low.
Cloning MAC-addressโœ… Yes.โœ… Yes.โš ๏ธ Medium.
Use of VPNโŒ No (needs custom firmware)โœ… Yes.โš ๏ธ Medium.
Reset router to factory settingsโœ… Yes.โœ… Yes.โŒ Low.

๐Ÿ’ก

If the provider is providing a static IP If you refuse to change it, try connecting the router via another port on the provider's switch (if available). IP-pool.

3. Static adjustment IP for devices on the local network

If you need to fix a certain amount of IP-address behind a particular device (for example, for port forwarding or access to a port) NAS), This can be done through a link to MAC-address DHCP-router.

Instructions for MiWiFi firmware:

  1. Go to the Additional Settings โ†’ Local area network (LAN) โ†’ DHCP.
  2. Activate the Binding option IP and MAC.
  3. Click Add and enter: MAC-Device address (can be found in its network settings or in the router's list of connected clients) Desirable IP-Description (optional, e.g., "Surveillance Cameras").

Save the settings and restart the router.

After that, the device will always receive the same IP, Even after the reboot. It's useful for:

  • ๐Ÿ–ฅ๏ธ Remote access to the computer by RDP/SSH.
  • ๐Ÿ“น IP-camera and video surveillance systems.
  • ๐Ÿ’พ Servers (NAS, media servers, game servers).
  • ๐ŸŽฎ Game consoles (PlayStation, Xbox) for opening ports.

โš ๏ธ Note: When changing local IP-The router's address (as in the first section) will reset all static anchorages, and you'll have to reconfigure them to accommodate the new address space.

If, after binding, the device does not receive the assigned IP, Check if it is in conflict with the range. DHCP. For example, if DHCP gives addresses from 192.168.31.100 to 192.168.31.200, then static IP must be outside this range (e.g. 192.168.31.99).

How to find out MAC-address?
On Windows: Open the command line and type ipconfig /all โ€” MAC will be in the line "Physical address".On Android: Settings โ†’ The phone. โ†’ General information โ†’ MAC-Wi-Fi.On iOS: Settings โ†’ Wi-Fi โ†’ โ“˜ net-side โ†’ MAC-Address.On the router: Additional settings โ†’ Status. โ†’ List of clients

4. Resetting the router to factory settings: a last resort

If all previous methods did not help (for example, the router โ€œhangsโ€ on the old one). IP Or you don't save the settings, you can do a full reset, and that will bring all the settings back to the factory, including the ones you've got. IP-address 192.168.31.1.

How to reset your settings:

  • ๐Ÿ”ง Software reset: Go to Additional settings โ†’ System system โ†’ Reboot and select Reset Settings.
  • ๐Ÿ•ณ๏ธ Hardware reset: Press and hold the Reset button (usually located on the back) for 10-15 seconds until the indicators start flashing.

After discharge:

  1. Router will return to factory IP 192.168.31.1.
  2. All Wi-Fi settings (network name, password) will be erased.
  3. Static bindings IP And port forwarding will disappear.

When to do the reset:

  • ๐Ÿ”„ Route doesn't keep the changes. IP or other parameters.
  • ๐Ÿšซ Access to the web interface is blocked (forgot the password).
  • ๐ŸŒ Internet speed has dropped for no apparent reason.
  • ๐Ÿ”Œ Conflicts IP The network is not solved in other ways.

โš ๏ธ Note: On Xiaomi Mi Router models 4C Mi Router 4A After reset, you may need to re-authorize through the Mi WiFi application. Without it, access to settings will be limited.

๐Ÿ’ก

Factory reset is a last resort. Before doing it, save a backup of the configuration in the Additional settings section. โ†’ System system โ†’ Backup (if the router is still responding).

5. Problems after shift IP and their decisions

Even after a successful change IP-And we're going to look at the most common addresses and how to fix them:

Problem 1: No Internet access after local change IP

Causes and solutions:

  • ๐Ÿ”Œ Incorrect subnet mask: Make sure the mask is listed as 255.255.255.0.
  • ๐Ÿ”„ ISP conflict: Some operators block non-standard LANs. Try to return 192.168.31.1.
  • ๐Ÿ“ก Wrong. DNS: Manually write it. DNS Google (8.8.8.8, 8.8.4.4) in settings WAN.

Problem 2: The devices are not getting IP down DHCP

What to do:

  1. Check if it's on. DHCP-server in router settings (Additional settings) โ†’ Local area network โ†’ DHCP).
  2. Make sure that the range of addresses you are dealing does not overlap with static addresses. IP.
  3. Restart the router and client devices.

Problem 3: External IP It does not change when reconnecting.

Possible causes:

  • ๐Ÿ”’ Static IP Provider: Please specify the type IP technical support.
  • ๐Ÿ•’ Long lyse DHCP: Some providers are updating IP once-in-a-day.
  • ๐Ÿ”— Login binding: If the connection is via PPPoE, IP It may be tied to the account.
Symptoms.Probable causeDecision
The Internet is there, but websites are not opened.Wrong DNS.prescribe DNS Google/Yandex manually
Router doesn't respond to the new IPAddress conflict or saving errorReset the settings and repeat the settings
Outside IP It does not change after cloning. MACThe provider ignores the changes MACTry another one. MAC or contact support
Wi-Fi works, cable devices donโ€™t.Wrong settings VLAN portCheck the Network section โ†’ Switcher

6. Alternative firmware: enhanced capabilities

The standard MiWiFi firmware is very limited in functionality. IP (for example, the dual stack IPv4/IPv6, custom routes or full support for OpenVPN, it is worth considering installing custom firmware.

Popular firmware for Xiaomi routers:

  • ๐Ÿ”ง Padavan: Optimized for Mi Router 3/3G/4A/AC2100, Supports WireGuard, AdGuard Home, and Firewall Settings.
  • ๐Ÿง OpenWRT: Universal firmware with a huge number of packages, but requires manual configuration.
  • ๐Ÿ”„ Official International: International version of MiWiFi with unlocked features (e.g., region change).

What does custom firmware give to work with IP:

  • โšก The possibility of appointing several IP-single-interface addresses.
  • ๐Ÿ”— Support for custom routes (e.g. to balance loads between two providers).
  • ๐Ÿ”’ Extended Firewall settings (Geolocation lock, time limit).
  • ๐ŸŒ Fully-fledged work with IPv6 (in standard firmware is often disabled).

โš ๏ธ Attention: Installing custom firmware can lead to loss of warranty and "bricking" router if the procedure is performed incorrectly.Be sure to check the compatibility of the model before firmware and back up the current configuration.

Example of static route settings in Padavan:

ip route add 192.168.2.0/24 via 192.168.1.100 dev br0

This command adds a route to the subnet 192.168.2.0/24 lockway 192.168.1.100.

How to return the standard firmware after custom?
1. Download the official firmware for your model from the site Xiaomi.2. Go to the custom firmware web interface and find the update section.3. Download the firmware file and wait for the process to be completed (donโ€™t turn off the power!).4. After rebooting, reset to factory settings.

7 Security: How to hide your own IP stranger

Shift. IP-The purpose of the address is often to increase anonymity on the network. IP Not enough to fully protect. Let's take a holistic approach:

Step 1: Disable remote access to the router

By default, some Xiaomi models have enabled Internet access to the web interface to disable:

  1. Go to the Additional Settings โ†’ Security โ†’ Remote control.
  2. Turn off the option to Enable Remote Access.
  3. If cloud management is used via Mi Home, disable it in the app.

Step 2: Set up firewall

In standard MiWiFi firmware, the basic firewall rules are available:

    Step 3: Use VPN router-level

    If your goal is to hide the outside IP From sites and services, the best option is to configure VPN-Connecting directly to the router will provide anonymity to all devices on the network, including smartphones, TVs and IoT gadgets.

    An example of setting up OpenVPN on Padavan firmware:

      If you use VPN To bypass the blocking, please note that some services (for example, banks or government portals) may block access from foreign countries. IP. In that case, you'll have to shut it down. VPN or set up exceptions.

      FAQ: Frequent questions about changing IP to Xiaomi

      Can the external be changed? IP router-free?
      Yes, but it depends on the provider. IP, Try it: Disconnect and reconnect WAN-Use the script to force the update DHCP (on custom firmware. MAC-Router address (sometimes the provider issues a new one) IP alteration MAC). If IP static โ€“ it can only be changed through the technical support of the provider.
      Why After the Local Change IP The security cameras stopped working?
      The cameras were probably static. IP Solutions: Reconfigure the cameras to new ones IP-Addresses (according to the new router subnet) Return the old router IP (For example, 192.168.31.1), if the cameras are difficult to reconfigure, check if the router's firewall blocks access to the cameras (Security section).
      How to check if the external IP?
      Use one of the services: 2ip.ru โ€” show IP, Provider and location. whatismyipaddress.com - more information about the browser and OS. ipinfo.io โ€” JSON-a detailed response (for developers) if IP unchanged, try to disconnect the router from power for 10-15 minutes or contact the provider.
      Can you set up a double router on Xiaomi? IP (for two providers)?
      On standard MiWiFi firmware, no. However, on custom firmware (like Padavan or OpenWRT), you can configure: Load balancing between two WAN-Reservation (automatically switching to a second provider when the main one breaks) routing rules (e.g., some traffic goes through one provider, some through another) require a router with two. WAN-Ports (e.g. Xiaomi Mi Router) 4A Gigabit with modified firmware).
      Why not after the shift? IP router slowed down?
      Possible causes and solutions: Cause of conflict IP Check the list of customers in the router settings and change the problem IP. Subnet mask Install 255.255.255.0 for home network. DHCP-Reduce the range of addresses you give away or increase the time you rent IP. Routing errors Reset settings to factory and set up IP freshly.