How a WiFi IP address is assigned: mechanisms and settings

Every time you connect a smartphone, laptop, or smart kettle to your home wireless network, a complex and rapid data exchange occurs that often goes unnoticed by the user. At the core of this process is the automatic or manual assignment of a unique identifier, without which packet exchange between devices would be impossible. Understanding how exactly this is assigned IP address, helps not only gain a deeper understanding of how networks work, but also effectively resolve connection issues when standard router reboot methods stop working.

The process of obtaining a digital address begins when the WiFi module on the client device is activated and it attempts to associate with the access point. Depending on the current router configuration, this process may take a fraction of a second or require manual intervention by the network administrator. There are two main scenarios: automatic acquisition of parameters via the protocol DHCP or manual registration of static values ​​in the operating system settings.

In this article, we'll take a detailed look at the mechanics of addressing protocols, examine the difference between local and global addresses, and analyze common errors that occur when distributing network identifiers. You'll learn why devices sometimes fail to obtain an address, how to avoid conflicts on your home network, and whether it's worth switching to manual address management for each device.

How DHCP Works When Connecting to WiFi

The most common way to assign an IP address to WiFi devices on home and office networks is by using the protocol DHCP (Dynamic Host Configuration Protocol). This mechanism allows the router to automatically provide client devices with all the necessary network parameters, including the IP address, subnet mask, gateway, and DNS servers. When you simply select a network from a list and enter a password, DHCP does all the hard work of configuring your device.

The process of interaction between the client (your phone) and the server (router) occurs in four stages, often called DORAFirst, the device broadcasts a request indicating its desire to connect. The router, upon receiving this signal, offers an available address from its pool. The client accepts, and the server permanently assigns the address to the device for a specified period of time, known as the lease time.

  • 📡 Discover: The client device broadcasts a "Discover" packet to find available DHCP servers on the network.
  • 🎁 Offer: The server responds with an "Offer" packet, offering a free IP address and other network parameters.
  • Request: The client selects one of the offers and sends a request to use a specific address.
  • 🔒 Acknowledge: The server confirms the allocation of the address with an "Ack" packet, after which the client registers the parameters in its network card.

It's important to understand that the assigned address is not permanently assigned to the device. It is leased temporarily, and after a certain timeout, the device must request an extension. If the device remains inactive for a long time, the router can reclaim the address from the pool and assign it to another device, ensuring efficient use of the limited address space.

⚠️ Note: In some corporate networks, the IP address lease time may be set to a very short value (e.g., 15-30 minutes). This is done for security and dynamic traffic management, but can lead to brief connection interruptions if the client device fails to renew the lease in a timely manner.
📊 How often do you change network settings on your router?
Never, everything works by itself
Once a year when changing providers
I'm constantly experimenting.
Only when something breaks

Static IP address: manual assignment and fixation

An alternative to automatic mode is a static IP address, which is manually entered in the device's network interface settings or hard-coded to the MAC address in the router settings. This approach is necessary in situations where the device requires a permanent, unchanging address that won't change after a reboot or DHCP lease expiration.

Static addresses are most often used for network printers, NAS servers, IP surveillance cameras, or gaming consoles, where ports are forwarded. If a surveillance camera's address changes, the security system will lose access to it, and the video stream will stop recording. Therefore, manual assignment is preferred for critical network nodes.

When setting up manually, the user must manually specify all parameters automatically provided by the DHCP server. Even a single character error, such as in the subnet mask or gateway address, will result in the device being physically connected (Wi-Fi signal present), but unable to access the internet or local resources.

Example of manual IPv4 configuration:

IP address: 192.168.1.50

Subnet mask: 255.255.255.0

Default gateway: 192.168.1.1

DNS server: 8.8.8.8

There is a risk of occurrence IP address conflictIf you manually assign a device an address that's already taken by another device on the network or reserved by the DHCP pool, both devices may lose connection stability, constantly kicking each other out of the network. To avoid this, static addresses are usually assigned outside the range assigned by the DHCP server.

☑️ Check before manually entering IP

Completed: 0 / 4

The difference between a local (LAN) and global (WAN) address

Users often confuse the two types of addressing, which leads to misunderstandings when setting up remote access or game servers. When we talk about how a WiFi IP address is assigned, in 99% of cases we're talking about a local address within your home network. However, your network also has an "external face"—the global address by which you appear on the internet.

A local address (Private IP) is assigned by your router and is valid only within your apartment or office. Devices on the internet don't see this address directly. A global address (Public IP) is assigned by your ISP and is a unique identifier for your entire home network on the World Wide Web. All devices in the home share a single external address using technology NAT (Network Address Translation).

Anything unique on the internet

Characteristic Local IP (LAN) Global IP (WAN)
Who appropriates? Your router (DHCP or manual) Internet provider
Address ranges 192.168.x.x, 10.x.x.x, 172.16.x.x
Availability Only within the home network Visible to everyone on the Internet
Price For free Often requires separate payment (static)

Understanding this difference is critical when setting up remote access to a home DVR or file server. If you forward ports on your router but have a dynamic external IP from your ISP, then after rebooting the router, the external address will change, and access from the outside will be lost, despite the local IP being configured correctly.

Private Network Ranges and Reserved Addresses

There is a standard in the world RFC 1918, which defines ranges of IP addresses reserved for use in private networks. These addresses are not routable on the internet, meaning they cannot be directly accessed from the global network. It is in these ranges that your router searches for available cells to assign to your WiFi clients.

The most popular range for home use is the segment 192.168.0.0192.168.255.255Most router manufacturers use addresses like this by default. 192.168.0.1 or 192.168.1.1 as a gateway. However, in large office networks or with complex networks, ranges may be used 10.0.0.0 or 172.16.0.0, allowing the creation of a huge number of subnets.

When setting a static address, it's important not to use reserved values. For example, an address ending in .0 typically refers to the network itself, while an address ending in .255 is a broadcast address for all devices on the subnet. Attempting to assign these addresses to a specific device will result in communication errors.

  • 🏠 Class A: from 10.0.0.0 to 10.255.255.255 (mask 255.0.0.0) - for very large networks.
  • 🏢 Class B: from 172.16.0.0 to 172.31.255.255 (mask 255.240.0.0) — for medium-sized organizations.
  • 🏡 Class C: from 192.168.0.0 to 192.168.255.255 (mask 255.255.255.0) - standard for home and small office.

Some modern routers use technology APIPA (Automatic Private IP Addressing). If the DHCP server does not respond, the device automatically assigns itself an address in the range 169.254.x.xThe presence of an address starting with 169.254 almost always indicates a problem with the router or cable, as normal network operation is impossible in this range.

Address conflicts and methods for resolving them

When two devices on the same network are assigned the same IP address, a conflict occurs. This can occur if one device is statically configured to an address that the DHCP server has already assigned to another, or if a second rogue router appears on the network and begins distributing addresses from the same range.

Symptoms of a conflict are usually obvious: devices may constantly lose connection, data transfer rates drop to zero, or the operating system displays a "Connection Error" or "IP Address Conflict" warning. This is especially problematic on WiFi networks, as wireless connections are inherently less stable, and conflicts exacerbate packet loss.

For diagnostics, you can use the command line. Command ping This will help you check if the address you plan to use is already in use. If you get a response to your ping, the address is already in use. The ARP table, which shows the mapping of IP addresses to MAC addresses on the local network, is also useful.

Command to check if an address is busy (Windows):

ping 192.168.1.50

Command to view the lookup table (Windows):

arp -a

⚠️ Note: Router settings interfaces may vary significantly between different manufacturers (Asus, TP-Link, Keenetic, MikroTik). The location of the DHCP and static leases menus depends on the firmware version. Always consult the official documentation for your specific model.

Address assignment problems and their solutions

Sometimes the process of obtaining an IP address is delayed or interrupted. The device may remain stuck in the "Obtaining IP address..." status indefinitely. There are various possible causes: the DHCP address pool is full, the router service is malfunctioning, problems with the radio channel, or MAC address filtering.

If your DHCP address pool is small (for example, only 10 addresses) and you have many people visiting with smartphones, there may not be enough available addresses. New devices simply won't be able to connect until an older device disconnects and its address lease expires. Expanding the DHCP range in your router settings solves this problem.

Another common issue is MAC address filtering. If the router is set to "White List" mode, even with the correct WiFi password, the router will not assign an IP address to a device whose MAC address is not in the allowed database. In "Deny List" mode, the situation is reversed—only those on the list will be denied an IP address.

  • 🔄 Restarting the DHCP serviceSometimes it helps to simply turn the DHCP server off and on in the router settings.
  • 📶 Checking the radio channel: Strong WiFi interference can cause the DORA process to lose packets and the handshake will not complete.
  • 🔒 Reset network settings: On the client device (smartphone/PC), you should perform "Forget network" and reconnect.

In complex cases where standard methods don't help, a full reset of the router to factory settings may be necessary. This will clear all accumulated configuration errors, but will require reconfiguring the internet and WiFi. Before doing this, make sure you have your provider's network access details.

Why does my phone say "Obtaining IP address" and won't connect?

This means the DHCP handshake process is not complete. Most likely, the router is not responding to phone requests. Try rebooting the router. If that doesn't help, check whether MAC address filtering is enabled or whether the address pool is full.

Can two devices have the same IP address on WiFi?

No, IP addresses must be unique within a local network. If they match, a conflict will occur, and normal network operation will be disrupted for both devices. Data will be sent to the wrong destination, and packets will be lost.

How do I find out what IP address my router has assigned me?

On Windows, open the command prompt and type ipconfigOn Android or iOS, go to WiFi settings and tap the information icon (i) or the gear icon next to your network name. Your IP address, gateway, and DNS will be listed there.

Should I change my IP address to speed up my internet?

Changing your local IP address (static vs. dynamic) does not increase internet speed. Speed ​​depends on your ISP plan and the quality of your wireless signal. However, a static address can reduce latency (ping) in local games by eliminating the DHCP request step for each connection.

What is a MAC address and how is it related to IP?

A MAC address is a physical, permanent identifier of a network card, hardwired into the device at the factory. An IP address is a logical, temporary number assigned for network operation. The router uses a mapping table to determine which physical device (MAC) is assigned which logical address (IP).