Changing the IP address on a Xiaomi smartphone is a procedure faced by both advanced users and those who solve simple problems connecting to their home network. Most often, the need to change a dynamic address to a static one arises when the router does not provide the settings correctly or you need to configure access to a network printer, NAS storage or local server. In the ecosystem Xiaomiworking on shells MIUI or new HyperOS, this process is implemented quite flexibly, although the interface may differ depending on the firmware version.

In standard operating mode, your device receives an address automatically using the protocol DHCP. This is convenient for most scenarios, but does not guarantee stability if the router is rebooted or the address pool changes. Manual configuration allows you to “assign” a specific identifier to the phone on the local network, avoiding conflicts and connection breaks. However, before making changes, you should understand that incorrect parameters can completely deprive the gadget of access to the Internet, so you need to approach the process consciously.

This guide will analyze in detail all the stages of setting up a static IP on Xiaomi devices. We will consider not only the standard method through the Wi-Fi menu, but also the nuances associated with different versions of Android, and also answer frequently asked questions that arise when manually entering network parameters.

Why do you need to change the IP address on your smartphone?

The main reason for switching to a static address is the stability of the connection on the local network. When you use automatic configuration, the router can assign your phone a new address at any time when you reconnect. This creates problems for services that require a permanent address, for example, remote access to files or control of a smart home through local gateways.

In addition, manual configuration helps in situations where DHCP server the router does not work correctly. Sometimes Xiaomi devices may take a long time to obtain an address or lose the network when resuming from sleep mode. Fixing parameters eliminates delays at the address request stage, making the connection instantaneous. This is especially true for old routers or overloaded networks with a large number of clients.

Another scenario is setting up access restrictions. Some home network administrators configure filtering by MAC addresses and IP, allowing only certain devices to access the Internet. In this case, without registering a static address in the phone settings, you simply will not be able to access the network, even if you know the Wi-Fi password.

⚠️ Attention: Changing the IP address only affects the local network of your home or office. Your external IP, which is seen by sites on the Internet, will remain unchanged and is determined by the provider.

📊 For what purpose do you want to change the IP address?
For a stable connection to the printer
The router does not distribute addresses well
Setting up a smart at home
Just wondering about the possibilities
Problems with accessing files

Preparation: how to find the current network settings

Before entering new numbers, it is critical to know the current settings of your network. Entering arbitrary values ​​will result in a connection error. You need to know the gateway (router) address, subnet mask and DNS address. This data can be viewed directly in the phone settings while it is still connected to the network in automatic mode.

Go to Wi-Fi settings and click on the name of your network or the arrow next to it. In the menu that opens, find the “Information” or “Advanced” section. There you will see the fields: Gateway, Subnet mask and DNS. Write down these values ​​or take a screenshot. The gateway usually looks like 192.168.0.1 or 192.168.1.1. It is from these numbers that we will start.

For a static address, you need to select a free number in the range of your subnet. If the gateway has an address 192.168.1.1, then your phone can have an address from 192.168.1.2 to 192.168.1.254. It is recommended to select numbers at the end of the range, for example 192.168.1.150to avoid conflicts with other devices that the router automatically provides at the beginning of the list.

💡

Use applications like "Ping & DNS" or "Fing" to scan the network and see which IP addresses are already occupied by other devices. This ensures that you do not choose an address that is already used by your laptop or TV.

Step-by-step guide for changing IP on MIUI and HyperOS

The setup process on Xiaomi smartphones is intuitive, but the location of the items may differ slightly depending on the version of the shell. The algorithm of actions is the same for all modern models, from budget Redmi to flagship Mi and Xiaomi.

First, go to the section Settings and select item Wi-Fi. Make sure your wireless network is turned on. Find your home network in the list. If you are already connected to it, click on the arrow to the right of the name or hold your finger on the network name to bring up the context menu. In new versions HyperOS you need to click on the gear icon or arrow.

In the network settings menu that opens, find the section IP Settings. By default, the value is DHCP. Click on it and in the drop-down list select Static (or Static). After this, the fields for entering the address, gateway and mask will become active for editing.

☑️ Checklist for setting up a static IP

Done: 0 / 5

Now fill in the fields. In the IP address field, enter the desired address, for example, 192.168.1.150. The field Gateway must match the address of your router (which you found out at the preparation stage). Mask subnets most often the standard one is 255.255.255.0. In the DNS 1 and DNS 2 fields, you can enter the addresses of public servers, for example, from Google (8.8.8.8) or Cloudflare (1.1.1.1), which sometimes speeds up the opening of sites.

After entering all the data, click the button Save or the checkmark in the upper right corner. The phone will disconnect for a second and try to connect with the new parameters. If everything is entered correctly, the Wi-Fi icon will appear again and the Internet will work.

⚠️ Attention: If, after saving the setting, the phone writes “Obtaining an IP address...” endlessly or gives the error “Could not connect,” it means that the entered IP address is already occupied by another device or does not match the router’s subnet. Try changing the last digit of the address.

For convenience, we will give an example of the correct settings for the most common configurations of home routers. Most devices use standard Class C subnets, but some providers or complex networks may differ.

Parameter Value for routers 192.168.0.x Value for routers 192.168.1.x Description
Phone IP address 192.168.0.150 192.168.1.150 Unique device address
Gateway (Router) 192.168.0.1 192.168.1.1 Access point address
Subnet mask 255.255.255.0 255.255.255.0 Determines the network size
DNS 1 8.8.8.8 8.8.8.8 Main server names
DNS 2 1.1.1.1 1.1.1.1 Backup name server

Please note that the first three numbers in the phone and gateway addresses must match exactly. Only the last digit may differ. If your router has an address 192.168.10.1, then the phone should be in the range 192.168.10.x.

What is a network prefix?

In some versions of Android, instead of the subnet mask (255.255.255.0), you need to specify the network prefix. For a standard home network, this number is 24. This is the equivalent of the mask 255.255.255.0 in CIDR format.

Possible problems and ways to solve them

Even with correct data entry, Xiaomi users may encounter difficulties. One of the common problems is that the phone connects to Wi-Fi, but the Internet does not work, although the connection icon is active. This often indicates an error in the field DNS. Try clearing the DNS fields or registering alternative addresses, such as 8.8.4.4.

Another situation is constant connection disconnections. This can happen if the static IP you choose falls within the range that the router is actively distributing to other devices via DHCP. In the settings of the router itself, you can change the range of automatic distribution of addresses, leaving the “tail” of the range (for example, from 200 to 254) for manual configuration.

It is also worth considering that when switching between different Wi-Fi networks (for example, at home and in a cafe), you will have to return the IP setting to mode each time DHCP, otherwise the phone will be on a foreign network will not be able to obtain the address automatically. Some users forget about this and lose connection in public places.

  • 📶 Check to see if your router has a MAC address filter enabled, which can block devices with a static IP.
  • 🔄 Reboot the router after setting up a static address on your phone to update the routing tables.
  • 📱 Make sure the mode is not enabled on your phone "Poleta", which can reset network settings.

⚠️ Attention: The network settings interface may be updated with the release of new versions of Android. If you don't find the "IP Settings" item, look for it in the advanced settings or in the "Advanced" menu after clicking on the network.

Resetting the network settings and returning to automatic mode

If experiments with the IP address have led to the phone completely stopping seeing the network or connecting to it, the easiest way is to return everything as it was. The fastest way is to go back to the settings of a specific Wi-Fi network and in the item IP Settings select mode DHCP.

In more complex cases, when problems are observed with all networks, a complete reset of network settings will help. On Xiaomi this is done through the menu Settings → Connectivity and sharing → Reset Wi-Fi, mobile data and Bluetooth settings. This operation will delete all saved Wi-Fi passwords and return network configurations to factory defaults, but will not affect your personal files and applications.

After the reset, the phone will ask for a password every time you connect to known networks, but this will ensure that any software conflicts caused by incorrect static addresses. This is an effective method if manual configuration was performed with errors in the subnet mask.

💡

Returning to DHCP mode is the first action for any connection problems after manual IP configuration. This eliminates the human factor and input errors.

Frequently asked questions (FAQ)

Will my IP address on the Internet change after this setup?

No, this instruction only changes the local IP address within your home network (LAN). Your external IP address that sites see is determined by your ISP and router settings, and it is impossible to change it through your phone settings.

Is it safe to specify DNS from Google (8.8.8.8)?

Yes, it is absolutely safe and often even useful. Public DNS servers Google or Cloudflare are more stable than the servers of some providers and can speed up the opening of pages, as well as bypass blocking of some sites at the DNS level.

Why does the phone write “Saved, but no access to the Internet”?

Most likely, you made a mistake in the gateway address. Make sure that the gateway address in your phone settings exactly matches the real address of your router. Also check that the last digit of the phone's IP address does not match the gateway address.

Do you need to change settings on each device in the house?

No, a static IP is only needed for those devices that require constant access from the network (printers, servers) or that have problems obtaining an address. Other gadgets (guest laptops, tablets) can easily work in automatic DHCP mode.

Is it possible to set a static IP for a 4G mobile network?

No, in mobile networks operators use complex NAT and dynamic addressing systems. It is impossible to manually change the IP address in the cellular network through Android settings; these parameters are issued exclusively by the telecom operator.