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, RDP or 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 protocol SMB.
  • ๐Ÿข 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.

๐Ÿ“Š Why did you need a static IP on Android?
Remote device management
Game server
File sharing (FTP/NAS)
Corporate requirements
Other

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:

  1. Find out the current settings of the router:
    • ๐Ÿ“ก Go to the router web interface (usually at 192.168.1.1 or 192.168.0.1).
    • ๐Ÿ” Find the section DHCP or Local network (LAN).
    • ๐Ÿ“‹ Write down the range of distributed addresses (for example, 192.168.1.100โ€“192.168.1.200).
  • Select a free IP:

    Use address outside the DHCP pool. For example, if the router distributes 192.168.1.100โ€“200, take 192.168.1.201.

  • Check occupied addresses:

    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|

    -->

    1. Open the Wi-Fi settings:

      Go to Settings โ†’ Network and Internet โ†’ Wi-Fi (on Samsung: Settings โ†’ Connections โ†’ Wi-Fi).

    2. Select your network:

      Click on the name of the current network (not the switch!).

    3. Change IP settings:

      Tap on the item IP settings (or Advanced โ†’ IP parameters on some devices).

      Select Static (or Manual, Custom).

    4. 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 mask 255.255.255.0)
      • DNS 1 and DNS 2: can be specified 8.8.8.8 and 1.1.1.1

  • Save changes:

    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:

    1. Enable developer mode:

      Go to Settings โ†’ About phone and tap 7 times on the item Build number.

    2. Activate USB debugging:

      Go back to Settings โ†’ System โ†’ For Developers and enable USB Debugging.

    3. Connect the device to the PC:

      Install ADB on your computer (for example, via Platform Tools from Google) and run the command:

      adb devices

      Make sure that the device is detected.

    4. Look at the current network interfaces:
      adb shell ip route

      Remember the name of the interface (for example, wlan0 for Wi-Fi).

    5. Assign a static IP:

      Use the commands (replace the parameters with your own):

      adb shell su
      

      adb 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.8

      Note: for work su required 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:

    1. Reset the network settings on the device (Settings โ†’ System โ†’ Reset โ†’ Reset Wi-Fi/mobile network settings).
    2. Update the router firmware (sometimes bugs in the DHCP server cause problems with static IP).
    3. 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, Ethernet and USB-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 iproute2 via Termux allows flexible management of the network from the command line.

    Example of setup via Termux:

    1. Install Termux from F-Droid (the version from Google Play is truncated).
    2. Run the commands:
      pkg update && pkg install iproute2
      

      su

      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.8 or 1.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:

    1. Go to Settings โ†’ Network and Internet.
    2. Select your network Wi-Fi or Ethernet.
    3. In the section IP settings select Static.
    4. 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 Tasker or MacroDroid to 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.