When your smartphone connects to Wi-Fi, the message "Obtaining IP address" may appear on the screen for a split second, after which the connection is either established or an error occurs. This brief process is a critical step in the operation of any network, but most users don't understand what it means in practice. Meanwhile, understanding the IP address issuance mechanism IP addresses helps you quickly solve connection problems, optimize your network, and even improve its security.
In this article we will look at what it is DHCP — a protocol that automatically assigns addresses to devices, why sometimes a smartphone “freezes” at the stage of obtaining an IP, and how to fix this Android And iPhoneYou'll also learn whether it's possible to manually set a static IP address for your phone and when it's necessary. We'll also cover common router errors that prevent proper address distribution and provide a diagnostic checklist.
What is an IP address and why does a phone need one on Wi-Fi?
IP address (from English. Internet Protocol AddressAn IP address is a unique numerical identifier for a device on a network. Without it, no device—whether a smartphone, laptop, or smart light bulb—will be able to exchange data with a router or other gadgets. Think of an IP address as a "zip code" in the digital world: without it, data packets simply won't find their destination.
On a home Wi-Fi network, IP addresses typically look like this: 192.168.x.x or 10.0.x.x. The first three groups of numbers (for example, 192.168.1) define the network itself, and the last group (for example, .100) — a specific device within it. When you connect your phone to Wi-Fi, the router should assign it a free IP address from its "pool" (a range of available addresses).
- 📱 Dynamic IP: assigned automatically for a limited time (usually a few hours or days). Most home networks use this.
- 🔒 Static IP: assigned to a device permanently. Used for servers, surveillance cameras, or when opening ports.
- 🌍 Public vs. Local IP: local (eg
192.168.1.5) is visible only within your network, and public (for example,95.213.128.45) is the address of your router on the Internet.
A critical detail: if the router can't assign an IP address to the phone, the Wi-Fi connection will be established, but there will be no internet access—that's why you see an exclamation point next to the network name.
How a Phone Gets an IP Address: The Role of DHCP
The protocol is responsible for the automatic distribution of IP addresses. DHCP (Dynamic Host Configuration Protocol). Here's how it works step by step:
- Request: the phone sends a broadcast request to the network
DHCPDISCOVER(Is there a DHCP server here?). - Offer: the router (or other DHCP server) responds with a packet
DHCPOFFER(I can give you an IP address192.168.1.100»). - Confirmation: the phone sends
DHCPREQUEST("Okay, I'll take this address.") - Rent: the router records the issuance of the address in a packet
DHCPACKand indicates its validity period (for example, 24 hours).
This entire data exchange takes a fraction of a second, but if a failure occurs at any stage (for example, the router doesn't respond or all IP addresses are busy), the phone will remain disconnected. Most often, problems arise due to:
- 🔄 DHCP server overload (too many devices on the network).
- ⚡ Unstable router power supply (micro-resets lead to DHCP service failure).
- 🛡️ DHCP blocking by firewall or antivirus.
- 📵 IP address conflict (two devices are trying to use the same address).
Obtaining IP Address Error: Why It Occurs and How to Fix It
If your phone hangs for a long time while obtaining an IP address or returns an error, the problem could lie in either your smartphone settings or your router. Here are the most common causes and solutions:
| Cause | Signs | Solution |
|---|---|---|
| There are no more free IP addresses | The error appears on new devices, but old ones connect fine. | Increase the DHCP pool in the router settings or reduce the IP lease time |
| Router DHCP server failure | No device can get an IP, the router may not respond to ping | Reboot the router, reset its settings, or update the firmware |
| IP address conflict | The device connects, but the internet isn't working; the router logs show an "IP conflict" error. | Assign a static IP to the problematic device or reboot all devices on the network |
| Incorrect network settings on the phone | The error only occurs on one device, others work fine. | Reset network settings on your phone or set IP manually |
The first thing to try is reboot the routerUnplug it for 30 seconds, then plug it back in. This resolves the DHCP issue in 60% of cases. If that doesn't work, check your settings:
Restart your router|Check if other devices can connect|Update your router's firmware|Reset your phone's network settings|Try connecting to a different network-->
⚠️ Attention: If the error appears only on one device, and the others connect normally, the problem is most likely in the settings of this particular gadget. Android Try deleting the network in the Wi-Fi settings and reconnecting. iPhone reset network settings in the menu Settings → General → Transfer or reset iPhone → Reset → Reset Network Settings.
How to manually set a static IP address on your phone
In some cases, automatic IP acquisition (DHCP) isn't suitable. For example, if you're configuring:
- 📹 IP camera or another device that needs to be connected to via a fixed address.
- 🎮 Game server on the phone (for example, for Minecraft or Terraria).
- 🖥️ Port forwarding for remote access to the device.
To assign a static IP to Android:
- Open
Settings → Wi-Fi. - Press and hold your network name (or tap the "Settings" gear).
- Select
Change Network → Advanced → IP Settings. - Instead of
DHCPselectStatic. - Fill in the fields:
IP address: For example,192.168.1.100(the last digit must be free and outside the router's DHCP range).Gateway: usually192.168.1.1(router address).Network prefix length:24.DNS 1AndDNS 2: can be specified8.8.8.8(Google) and1.1.1.1(Cloudflare).
On iPhone the path will be like this:
Settings → Wi-Fi → (click on the “i” next to the network) → Configure IP → Manually.
⚠️ Attention: before assigning a static IP Be sure to check your router's DHCP range.If the router distributes addresses with192.168.1.2By192.168.1.200, then the static IP should be, for example,192.168.1.201Otherwise, a conflict will arise and none of the devices will be able to connect to the network.
Router settings that affect IP address assignment
If IP address issues occur on multiple devices, the router is most likely to blame. Here are the key settings to check:
- 🔄 DHCP range: must cover enough addresses for all devices. For example, if you have 20 devices, the pool should be no less
192.168.1.100-192.168.1.120. - ⏳ IP lease time: the default is usually 24 hours (
86400seconds). If devices are frequently connected/disconnected, you can reduce it to 12 hours. - 🚫 MAC address filtering: If enabled, the router will only issue IP addresses to authorized devices. Check if your phone is blocked.
- 🔒 Client Isolation (AP Isolation): If enabled, devices on the network will not see each other, but this does not affect IP allocation.
To change these settings:
- Open the router's web interface (the address is indicated on the sticker on the case, usually
192.168.1.1or192.168.0.1). - Log in (the default login and password are often
admin/admin). - Find the section
DHCP,LANorNet. - Edit the parameters and save the changes.
The interface may differ on routers from different manufacturers. For example:
- TP-Link:
Advanced Settings → Network → DHCP Server. - ASUS:
Local Network → DHCP Server. - Keenetic:
Home Network → Home Network Segment → IP Settings.
What should you do if you can't access your router settings?
If the router does not open the web interface at the address 192.168.1.1, try:
1. Check the cable connection (Wi-Fi may be disabled in the settings).
2. Use a different browser (e.g. Firefox or Edge).
3. Reset the router using the button Reset (hold for 10 seconds).
4. Find out the correct IP address of the router via the Windows command line: run cmd, enter ipconfig and find the line "Default gateway".
How to check what IP address a phone has received
If you want to know what IP address is assigned to your phone, you can do this without additional applications:
On Android:
- Open
Settings → Wi-Fi. - Tap on your network name.
- Scroll down to the Network Information or Advanced section.
- Find the lines
IP address,GatewayAndDNS.
On iPhone:
- Go to
Settings → Wi-Fi. - Click on the "i" symbol next to the network name.
- In the section
IPv4 addressThe current IP will be indicated.
You can also use special applications, for example:
- Fing (scans the network and shows all connected devices with their IP).
- Network Analyzer (allows you to check speed, ping and DNS).
- IP Tools (shows detailed connection information).
If the IP address starts with 169.254 (For example, 169.254.100.5), this means the phone was unable to obtain an address from the DHCP server. In this case, the internet will not work.
Frequently asked questions about getting an IP address on your phone
Is it possible to use the same IP address on two phones?
No, this will lead to IP address conflictBoth devices will lose network access, and an error will appear in the router logs. If you need two devices to always have the same IP (for testing, for example), use different static addresses from one range.
Why does my phone get a new IP address every time I connect?
This is normal behavior if the router settings are set to short IP lease time (e.g., 1 hour). The router may assign the same address to the same device repeatedly, but it doesn't guarantee this. To assign an IP address, assign it manually (static IP).
What should I do if my router doesn't assign IP addresses to any devices?
Most likely it is disabled DHCP server There may be a problem with your router settings or a firmware error. Try:
- Reboot the router.
- Reset it to factory settings (using the button)
Reset). - Update firmware via web interface.
- Check if DHCP is enabled in the section
LANorDHCP Settings.
If nothing helps, the router may be faulty.
Can a VPN affect getting an IP address on Wi-Fi?
No, VPN works at the level of internet traffic, not the local network. The Wi-Fi IP address is assigned by the router independently of the VPN. However, if the VPN uses the "Split Tunneling" feature, some applications may ignore the local IP and route traffic through the VPN server.
How do I know how many devices are connected to my router?
There are several ways:
- Go to the router's web interface and find the section
Connected devices(orDHCP Clients List). - Use mobile apps like Fing or WiFi Analyzer.
- In Windows: Open a command prompt and type
arp -a(will show all IP and MAC addresses in the local network).
Please note that some devices (such as smart plugs) may not appear in the DHCP list if they are assigned a static IP.