Configuring static IP addresses on a managed device Android may be needed in a variety of situations: from corporate network requirements to optimizing the operation of local services (for example DLNA, FTP or game servers). Unlike a dynamic address, a static address ensures that your smartphone or tablet will always be accessible on the network under the same identifier - this is critical for remote management, port forwarding, or working with drives. DHCP, a static address ensures that your smartphone or tablet will always be accessible on the network under the same identifier - this is critical for remote management, port forwarding or working with NAS- drives.
However, the assignment process fixed IP on Android has nuances depending on the version of the operating system, the device manufacturer (Samsung, Xiaomi, Google Pixel etc.) and even the connection type - Wi-Fi or Ethernet (for devices with wired Internet support). In this article we will analyze all the current methods, including manual configuration through the system menu, use ADB for advanced users, as well as diagnosing common errors such as address conflicts or connection loss.
We will pay special attention to security: an incorrectly configured static IP can make your device vulnerable to attacks from the local network. We will explain how to choose a safe range of addresses and why you should not use the first or last IPs in a subnet.
Why do you need a static IP on Android?
Dynamic address distribution via DHCP is convenient for most users, but there are tasks where a fixed IP becomes a necessity:
- ๐ง Remote control: if you connect to the device via
SSH,RDPor via TeamViewer, a static address will eliminate the need to look for a new IP every time. - ๐ฎ Game servers: for hosting local multiplayer games (for example, Minecraft PE or Terraria) a permanent address is required.
- ๐ File exchange: when setting up
FTPservers or access to NAS (for example, Synology or Western Digital My Cloud) via protocolSMB. - ๐ข Corporate networks: many companies require devices to be linked to specific IPs to control access or work with internal resources.
In addition, a static IP is useful for port forwarding on a router - without it, the redirection rules will have to be updated every time the address changes. For example, if you set up access to a video surveillance camera via the Internet, a fixed IP on a smartphone (used as a client) will simplify the setup.
However, there are also disadvantages: when changing the network (for example, moving from home Wi-Fi to public) you will have to manually update the settings. There is also a risk IP conflictif another device on the network receives the same address via DHCP. To avoid problems, it is important to choose the right range for a static IP - we will talk about this in the next section.
How to choose the right static IP address?
Before registering the address, you need to understand the structure of your local network. Most home routers use a subnet 192.168.x.0/24 or 10.0.x.0/24, where:
192.168.x.1โusually the address of the router itself (gateway).192.168.x.2โ192.168.x.100โthe range that the router distributes via DHCP.192.168.x.101โ192.168.x.254โsafe zone for static addresses.
To avoid conflicts, follow the rules:
- Find out the current settings of the router:
- ๐ก Go to the router web interface (usually at
192.168.1.1or192.168.0.1). - ๐ Find the section
DHCPorLocal network (LAN). - ๐ Write down the range of distributed addresses (for example,
192.168.1.100โ192.168.1.200).
- ๐ก Go to the router web interface (usually at
Use address outside the DHCP pool. For example, if the router distributes 192.168.1.100โ200, take 192.168.1.201.
Scan the network using applications like Fing or Network Scannerto make sure that the selected IP is not in use.
| Parameter | Example value | Explanation |
|---|---|---|
| IP address | 192.168.1.201 |
Must be outside the DHCP range of the router |
| Subnet mask | 255.255.255.0 |
Standard for most home networks |
| Gateway | 192.168.1.1 |
Router address (be sure to check with it settings!) |
| DNS | 8.8.8.8 (Google) or 1.1.1.1 (Cloudflare) |
You can use the router's DNS or public servers |
If you are setting up an IP for a device that will connect to multiple networks (for example, at home and at work), create separate Wi-Fi profiles with different static addresses for each network.
Critical error: never use an IP address 192.168.x.1 or 192.168.x.255 โthe first is usually occupied by the router, and the second is a broadcast address and will lead to network failures.
Setting up a static IP via Wi-Fi on Android
The most common method is manual configuration in the wireless network connection settings. The interface may differ slightly depending on the shell (MIUI, One UI, stock Android), but the general algorithm is the same:
Make sure that the device is connected to the desired Wi-Fi network|
Write down the current network parameters (IP, gateway, DNS)|
Select a free one IP address is outside the DHCP range|
Check that the router does not block static addresses|
-->
- Open the Wi-Fi settings:
Go to
Settings โ Network and Internet โ Wi-Fi(on Samsung:Settings โ Connections โ Wi-Fi). - Select your network:
Click on the name of the current network (not the switch!).
- Change IP settings:
Tap on the item
IP settings(orAdvancedโIP parameterson some devices).Select
Static(orManual,Custom). - Enter parameters:
Fill in the fields according to the prepared data:
- IP address: for example,
192.168.1.201 - Gateway: router address, for example
192.168.1.1 - Network prefix length: usually
24(equivalent to mask255.255.255.0) - DNS 1 and DNS 2: can be specified
8.8.8.8and1.1.1.1
- IP address: for example,
Click Save or Connect. The device will temporarily disconnect from the network and reconnect with new parameters.
What to do if The "IP settings" field is missing?
On some devices (for example, Xiaomi c MIUI 12+) this item may be hidden. In this case:
1. Hold your finger on the network name in the Wi-Fi list.
2. In the menu that appears, select Change network โ Advanced.
3. Activate the option Show additional parameters (if available).
If this does not help, use the method with ADB (described below).
After saving, check the connection: open the browser and try loading any page. If there is no Internet:
- โ Check the gateway and DNS: the router address may be incorrect.
- โ Make sure there is no IP conflict: disable other devices or change the address.
- โ Reboot the router: sometimes it caches old DHCP leases.
Setting up a static IP over Ethernet (for devices with a LAN port)
Some Androiddevices (for example, Samsung DeX, tablets Lenovo Yoga or smartphones with USB-C to Ethernetadapters) support a wired connection. Setting up a static IP in this case is similar to Wi-Fi, but with nuances:
1. Connect the device to the router via Ethernetcable (you may need OTG adapter for USB-C).
2. Go to Settings โ Network and Internet โ Ethernet (on Samsung: Settings โ Connections โ Ethernet).
3. Tap on the active connection and select Change network settings โ Additional.
4. In the section IP parameters select Static and enter the data (similar to Wi-Fi).
If, after setting up a static IP over Ethernet, the Internet does not work, check whether your adapter supports USB OTG + Ethernet. Some cheap adapters only work with dynamic IP.
On devices with stock Android (for example, Google Pixel) the path may look like like this: Settings โ Network and Internet โ Advanced โ Ethernet.
โ ๏ธ Attention: On some devices (for example, Huawei s EMUI) Ethernet settings may be hidden. In this case, use ADB or third party apps like Ethernet Settings.
Setting up a static IP via ADB (for advanced users)
If the Android interface does not allow you to change IP parameters (for example, on some firmware Xiaomi or Realme, you can use Android Debug Bridge (ADB). This method requires enabled developer mode and USB debugging.
Step-by-step guide:
- Enable developer mode:
Go to
Settings โ About phoneand tap 7 times on the itemBuild number. - Activate USB debugging:
Go back to
Settings โ System โ For Developersand enableUSB Debugging. - Connect the device to the PC:
Install ADB on your computer (for example, via Platform Tools from Google) and run the command:
adb devicesMake sure that the device is detected.
- Look at the current network interfaces:
adb shell ip routeRemember the name of the interface (for example,
wlan0for Wi-Fi). - Assign a static IP:
Use the commands (replace the parameters with your own):
adb shell suadb shell ifconfig wlan0 192.168.1.201 netmask 255.255.255.0
adb shell route add default gw 192.168.1.1 dev wlan0
adb shell setprop net.dns1 8.8.8.8Note: for work
surequired root access.
These changes are valid until the device is rebooted. To make them permanent, you need to edit the file /system/etc/dhcpcd/dhcpcd.conf (required root) or use initialization scripts.
โ ๏ธ Attention: Incorrect use ADB can lead to loss of network connection. If you are not sure of the commands, use graphical utilities like ADB AppControl.
Diagnosing problems with static IP
If the Internet does not work after setting up a static IP, use these instructions to troubleshoot:
| Symptom | Possible cause | Solution |
|---|---|---|
| No connection to the network | Wrong gateway or subnet mask | Check the router address in its settings |
| There is a connection, but no Internet | Incorrect DNS or blocking on the router | Try DNS 8.8.8.8 or disable the firewall on the router |
| IP address conflict | The address is already in use by someone else device | Change IP or find a conflicting device through the router |
| Constant connection breaks | The router is trying to assign a dynamic IP | Disable DHCP for your MAC address in the settings router |
For diagnostics, use the commands in ADB:
- Checking the connection with the router:
adb shell ping 192.168.1.1 - Checking DNS:
adb shell nslookup google.com - Viewing routes:
adb shell netstat -rn
If the problem is not resolved, try:
- Reset the network settings on the device (
Settings โ System โ Reset โ Reset Wi-Fi/mobile network settings). - Update the router firmware (sometimes bugs in the DHCP server cause problems with static IP).
- Use third-party applications for network management (for example, NetMaster or Network Connections).
Third-party applications for IP management
If standard Android tools do not allow you to configure a static IP, you can use specialized utilities. They are especially useful for devices with custom firmware or limited settings (for example, work profile on corporate phones).
Top 3 applications:
- ๐ฑ NetMaster:
Allows you to assign a static IP, manage routing and monitor traffic. Supports
Wi-Fi,EthernetandUSB-ethernet. - ๐ง Network Connections (NoRoot):
Does not require. root access. Can change IP, DNS and proxy settings for individual applications.
- ๐ ๏ธ Termux + iproute2:
For advanced users: installation
iproute2via Termux allows flexible management of the network from the command line.
Example of setup via Termux:
- Install Termux from F-Droid (the version from Google Play is truncated).
- Run the commands:
pkg update && pkg install iproute2su
ip addr add 192.168.1.201/24 dev wlan0
ip route add default via 192.168.1.1
โ ๏ธ Attention: Applications from Google Play to change IP often require root access or use a VPN to emulate a static address. The latter do not change the real IP on the local network, but only mask it for individual applications.
FAQ: Frequently asked questions about static IP on Android
Is it possible to assign a static IP without root access?
Yes, in most cases this is possible through standard Wi-Fi or Ethernet settings. Root is required only to change system configuration files (for example, to make the settings permanent after a reboot).
Why does the Internet disappear after assigning a static IP?
The most common reasons:
- Incorrectly specified gateway (address router).
- Conflict with another device on the network (check through a router or network scanner).
- DNS servers do not respond (try
8.8.8.8or1.1.1.1).
Try to temporarily return DHCP and check if the connection is restored.
How to assign a static IP on Android TV or a set-top box (for example, Nvidia Shield)?
On Android TV the path to the settings may differ:
- Go to
Settings โ Network and Internet. - Select your network
Wi-FiorEthernet. - In the section
IP settingsselectStatic. - Enter the parameters (similar to a smartphone).
On Nvidia Shield you may need to disable the option Use DHCP manually.
Is it possible to use a static IP on a mobile network (3G/4G/5G)?
No, for mobile data, a static IP is assigned only by the telecom operator (usually for an additional fee). It is impossible to manually register it on the device - the address is issued dynamically by the operator's server.
How to ensure that the static IP is maintained after a reboot?
Without root access, the static IP is reset when connecting to a new network. To save the settings:
- Use
TaskerorMacroDroidto automatically apply IP when connecting to a specific network. - On devices with root, edit the file
/system/etc/dhcpcd/dhcpcd.conf. - On some firmware (for example, LineageOS) initialization scripts are supported in
/data/local/userinit.sh.