Networking
How to Set a Static IP Address on Android
Networking · 5 min read · Updated November 19, 2026
To set a static IP address on Android, open Settings, go to your Wi-Fi network, open the advanced options, and change IP settings from DHCP to Static. Then type in the address, gateway, and DNS servers, and tap Save. A static IP is an address that never changes, which is handy when a game, a camera app, or a home server needs to find your phone at the same address every time.
This guide sets a static private IP on your home network, the address your router assigns inside your house. That is different from a static public IP, which only your internet provider can give you. Before you start, find your Android phone's current IP address so you know your network's pattern.
Before you start: pick an address that will not clash
Your router hands out addresses automatically from a range, usually 192.168.1.2 through 192.168.1.254. If you pick an address your router might hand to another device, you get an IP conflict and both devices lose their connection.
The safe move is to pick a high number in the same range, like 192.168.1.200. First, check your current address in Settings and note the gateway (usually 192.168.1.1, your router's address). Keep the same first three numbers and change only the last one. If you want to be extra safe, log in to your router and reserve the address for your phone so the router never hands it to anyone else.
Method 1: Pixel and most Android phones
Open Settings, then tap Network and internet, then Internet. Tap the gear icon next to your connected Wi-Fi network, then tap the pencil icon to edit it. Tap Advanced options to expand the extra fields.
Tap IP settings and change it from DHCP to Static. Three fields appear. In IP address, type the address you picked, for example 192.168.1.200. In Gateway, type your router's address, usually 192.168.1.1. In Network prefix length, type 24, which is the Android way of writing the subnet mask 255.255.255.0. In DNS 1, type 8.8.8.8, and in DNS 2, type 8.8.4.4, or leave the DNS fields as they are. Tap Save, and your phone reconnects with the new fixed address.
On some Android versions the edit screen is reached a slightly different way: Settings, Network and internet, Wi-Fi, tap your connected network, then tap the pencil icon. The Static option and the same fields are still under Advanced options.
Method 2: Samsung Galaxy phones
On a Samsung Galaxy, open Settings, then tap Connections, then Wi-Fi. Tap the gear icon next to your connected network, then tap Advanced, and look for IP settings. Change it from DHCP to Static.
Enter the same values as above: your chosen IP address, the gateway (your router's address, usually 192.168.1.1), network prefix length 24, and DNS 1 and DNS 2 if you want to set them. Tap Save. If the details screen looks cut short, tap View more to see all the fields.
The steps are the same on other brands like Motorola and OnePlus, with only the menu names differing slightly. The path is always through the Wi-Fi settings for your current network, then the advanced options, then IP settings.
If the internet stops working after the change
The most common mistake is a wrong gateway. Your phone can talk to your home network but not the internet, because it is sending traffic to the wrong door. Double-check the Gateway field against your router's address, which you can find in our default gateway guide.
The second most common mistake is a conflict: another device already has the address you picked. Your phone may warn you, or the connection will simply fail. Pick a different last number and try again, or reserve the address in your router first.
If you are stuck, go back to the same screen and change IP settings back to DHCP, then tap Save. Your phone will ask the router for a normal address again, which is the same fix as forgetting the network and joining it again. You lose nothing by reverting, and you can try again once you know the right numbers.
Frequently asked questions
Does setting a static IP on Android change my public IP?
No. This only fixes the private address your phone uses inside your home network. Your public IP, the one websites see, is controlled by your router and your internet provider and does not change when you do this.
What IP address should I choose for my Android phone?
Use the same first three numbers as your current address (usually 192.168.1.x) and pick a high last number, like 200, that your router is unlikely to assign automatically. Set the network prefix length to 24 and the gateway to your router's address, usually 192.168.1.1.
What is network prefix length, and why 24?
Network prefix length is Android's way of writing the subnet mask. A prefix length of 24 means the same thing as the subnet mask 255.255.255.0, which is the standard mask on almost every home network. If your network uses a different mask, use the matching prefix length instead.
Can I set a static IP on mobile data?
No. On mobile data your carrier assigns the address, and Android does not offer a static IP option for the cellular connection. The steps in this guide only apply to Wi-Fi networks.
How do I switch my Android phone back to an automatic IP?
Go back to the same Wi-Fi network settings, open Advanced options, change IP settings from Static back to DHCP, and tap Save. Your phone will ask the router for an address automatically again.
Will a static IP break my phone on other Wi-Fi networks?
No. A static address is set per network, so it only applies to the Wi-Fi network you configured. Your phone still uses automatic addresses on every other network, including your office or a coffee shop. The same per-network rule applies on Windows and Mac too.