What Is DHCP? How Devices Get an IP Address Automatically
SkillVeris Team
Cloud & Security Team

DHCP automatically assigns an IP address and network configuration to a device when it joins a network, removing the need for manual setup.
In this guide, you'll learn:
- A DHCP exchange follows four steps commonly remembered as discover, offer, request, and acknowledge.
- DHCP leases an IP address for a limited time rather than assigning it permanently, which lets addresses be reused as devices join and leave the network.
- Beyond an IP address, DHCP also delivers the subnet mask, default gateway, and DNS server settings a device needs to communicate.
- Static IP addresses are still used for servers and network infrastructure that need a predictable, unchanging address.
1What Is DHCP?
DHCP, or Dynamic Host Configuration Protocol, is the protocol that automatically assigns an IP address and other network settings to a device the moment it connects to a network, so nobody has to configure each device by hand.
Without DHCP, every laptop, phone, and printer joining a network would need someone to manually type in an IP address, subnet mask, and gateway — a process that does not scale past a handful of devices.
2Why DHCP Exists
Before automatic configuration protocols, network administrators assigned IP addresses manually and tracked them in spreadsheets, which was slow and error-prone even for small networks.
DHCP solves this by centralizing address assignment on a server that hands out addresses from a defined pool, reclaiming them automatically when devices disconnect or their lease expires.
3How the DHCP Exchange Works
When a device joins a network, it goes through a four-step exchange with the DHCP server, often remembered by the acronym DORA.
- Discover: the device broadcasts a request looking for any DHCP server on the network.
- Offer: a DHCP server responds with a proposed IP address and configuration.
- Request: the device formally requests the offered address, confirming it wants to use it.
- Acknowledge: the server confirms the assignment and the device begins using the address.
💡
4What DHCP Actually Delivers
An IP address is only part of what a device needs to communicate on a network; DHCP typically delivers several settings together.
- IP address: the device's unique identifier on the network.
- Subnet mask: defines which part of the address identifies the network versus the device.
- Default gateway: the router address used to reach devices outside the local network.
- DNS server addresses: used to translate domain names into IP addresses.
5DHCP Leases Explained
DHCP does not assign an address permanently — it grants a lease for a set period of time, after which the device must renew it or risk losing the address to another device.
This leasing model is what allows a limited pool of addresses to serve a much larger number of devices over time, since addresses from disconnected devices return to the pool once their lease expires.
6DHCP vs. Static IP Addressing
Most everyday devices use DHCP because it requires no manual configuration and adapts automatically as devices join and leave the network.
Servers, printers shared across an office, and core network equipment often use static IP addresses instead, since those devices need a predictable address that other systems can reliably reach at all times.
7Common DHCP Problems
Most connectivity issues that show up as "no internet access" or "limited connectivity" trace back to a DHCP problem rather than a deeper network fault.
- Address pool exhaustion: too many devices for the available range, so new devices cannot get an address.
- Lease conflicts: two devices ending up with the same address due to misconfiguration.
- Rogue DHCP servers: an unauthorized server on the network handing out incorrect settings.
- Expired leases with no renewal: a device losing connectivity after failing to renew its lease in time.
8Learning More About Networking
DHCP is one of the foundational protocols that make modern networks usable at scale, alongside DNS and routing, and understanding it makes troubleshooting connectivity issues far more intuitive.
SkillVeris's Computer Networks study notes cover DHCP alongside the other core protocols that keep devices connected, for readers who want a structured path through networking fundamentals.
Related Reading
Get The Print Version
Download a PDF of this article for offline reading.
About the Publisher
SkillVeris Team
Cloud & Security Team
Our cloud and security experts break down complex infrastructure topics into practical, beginner-friendly guides.
View all postsRelated Posts
Never miss an update
Get the latest tutorials and guides delivered to your inbox.
No spam. Unsubscribe anytime.