How to Change the IP Address on Your Android

Tired of a random Android IP? Here's how you can make your IP static

Changing your IP address on your Android is simple. There is a buried setting in your Android device that lets you switch from a dynamic IP (DHCP) to a static one.

However, there are a number of things you should do beforehand to make sure that you're choosing an available static IP address on your network.

The directions below should apply in general, no matter who made your Android device: Samsung, Google, Huawei, Xiaomi, etc. The instructions in this article are focused on Android 9 and up.

Why Change the IP Address on Your Android?

There are plenty of important reasons you may need to set a static IP on your phone that doesn't change.

A few of the most common reasons include:

All of these uses require your mobile phone to have a fixed IP that you can easily configure in 3rd party software running on your computer or any other device on your network.

Find a Network IP for Your Android

Before you can set up your Android with a static IP, you'll need to find an available IP address on your network. You can do this from any computer that's connected to your home network.

On a Windows PC:

  1. Click the Start menu.

  2. Type cmd and click on the Command Prompt desktop app.

  3. In the command prompt window, type the command ipconfig/all and press Enter.

    Screenshot of the ipconfig /all command

You'll see lots of information in the results, but you only need to be concerned with two items.

  • Default Gateway: This is the IP address of your home router, and is typically the lowest IP address on the network. In the example above, this IP address is
  • IPv4 Address: This is the IP address of the device you've run the command from. In the example above, this IP address is
  • DNS Servers: These are the servers your internet service provider (ISP) uses to look up domain names when you browse the internet.

You can find a free IP address on your network by typing a ping command starting from the router IP and working your way up.

Screenshot of the results of a Ping command

If you see a response with ping time, it means there's a device on the network with that IP address. If the response reads "Destination host unreachable", it means that IP address is available.

To perform the same ipconfig and ping commands on a Mac, open the terminal by pressing cmd + space and typing "terminal". In the Mac terminal, you can issue the same commands as described above.

Change the IP Address on Your Android

Now that you know what IP you can set your phone to, it's time to switch your phone from DHCP to a static IP.

  1. Open Settings, under Network & internet, tap on Wi-Fi.

  2. Press and hold on the connected Wi-Fi network. You'll see a menu pop-up. Tap Modify network.

    Depending on your device's implementation of Android, you may have to "Forget" the connected network before the press-and-hold trick will work. As an added step moving forward, just re-enter the network password alongside the IP address changes.

  3. You'll see the password change screen for that network. Tap Advanced options, and scroll down to the IP settings section. By default, this is set to DHCP. Tap DHCP and change the setting to Static.

Once you've changed the IP Setting to Static, a form will appear that will allow you to manually configure all of your Android's network settings, including your Android's IP.

Screenshot of an Android's IP settings

Since your IP will be static, you'll need to manually configure the rest of the network settings in this form as well.

  • IP Address: The available IP address you discovered using the Ping command.
  • Gateway: Enter the default Gateway IP address you recorded above.
  • DNS 1 and DNS 2: Type the IP addresses of the DNS servers you recorded above.

You can leave any other fields in this form set as default. When you're done changing the IP settings, tap Save.

Your Android will reconnect to your home network with its new IP. Now you can configure any software you're using to connect to your Android using its new, static IP address.

Your Android phone will retain this static IP even after a reboot. If you want to undo the static IP and set your Android back to DHCP, just follow the steps above, but in the Advanced Options menu, set the IP Settings option back to DHCP.