What is DHCP? How Devices Get IP Addresses

Summary
Learn how the Dynamic Host Configuration Protocol (DHCP) automatically assigns IP addresses to devices on your home network.

What is DHCP? How Devices Get IP Addresses

Direct Answer: DHCP (Dynamic Host Configuration Protocol) is a service built into your router that automatically assigns Private IP addresses to every phone, laptop, and smart TV that connects to your Wi-Fi network. Without DHCP, you would have to manually type a unique IP address into every device you own.

How DHCP Works: The Auto-Assigner

Imagine a restaurant where every customer needs a unique table number to get their food. Instead of customers wandering around looking for an empty table, a host stands at the door and assigns a number as they walk in.

In your home network, your router is the host, and DHCP is the system it uses.

When you connect a new phone to the Wi-Fi, a four-step process (known as DORA) occurs in fractions of a second:

  1. Discover: Your phone shouts to the network, “Is there a DHCP server here? I need an IP address!”
  2. Offer: The router replies, “Yes, I am here. You can use the address 192.168.1.15.”
  3. Request: Your phone responds, “Great, I will take 192.168.1.15.”
  4. Acknowledge: The router finalizes the assignment and records it, ensuring it doesn’t give that same address to your laptop.

What is a DHCP Lease Time?

IP addresses are not assigned forever; they are “leased.”

Your router’s DHCP settings include a Lease Time (usually set to 24 hours, or 1440 minutes). This means the phone owns that IP address for 24 hours. When the lease is halfway expired, the phone will quietly ask the router to renew it.

If your phone leaves the house and doesn’t return before the lease expires, the router takes the IP address back and puts it in the pool for another device to use. This keeps your home network organized and prevents it from running out of addresses.

Static IP vs. DHCP

While DHCP is perfect for phones and laptops, sometimes you want a device’s IP address to stay exactly the same forever. This is called a Static IP.

You should use a Static IP (or a DHCP Reservation in your router) for:

  • Network Attached Storage (NAS) drives.
  • Home servers or Raspberry Pis.
  • Network printers.
  • CCTV NVRs.

By giving these devices a Static IP, you ensure that their address never changes, making them easy to find and connect to every time.

Troubleshooting: “Failed to Obtain IP Address”

If your phone shows a “Failed to obtain IP address” or “Authenticating…” error and refuses to connect to the Wi-Fi:

  1. Reboot the Router: The router’s DHCP server may have crashed or run out of IP addresses. A simple restart usually fixes it.
  2. Check DHCP Settings: Ensure the DHCP server is actually enabled in the router’s LAN settings.
  3. Disconnect Devices: You may have hit the maximum limit of connected devices allowed by your router.