# Dynamic Host Configuration Protocol (DHCP)

> Gives each new device an address when it joins a network.

**Field:** Infrastructure  
**Category:** Networking  
**Also known as:** DHCP, DHCP Server, DHCP Lease

## Think of it like

It is like a coat check. You get a numbered tag when you arrive, and you hand it back when you leave.

## Definition

DHCP gives each device an IP address when it joins a network. A new device sends out a request, and a DHCP server answers with a free address. The answer also says which router to use and where to find DNS. The address is only lent for a set time, called a lease. The device must renew the lease to keep it.

## Example

Lucy's friend joins her Wi-Fi. The home router lends his phone the address 192.168.1.40 for one day, and nobody types a thing.

## Why it matters

Without it, someone would type an address into every device by hand. No two could be the same.

## Common mistake

Letting a server's address change with DHCP. Give it a fixed address, so it is always found in the same place.

## Three principles

- **Hands out.** A free address for each new device.
- **Lends it.** The lease runs out unless renewed.
- **Extra settings.** It also names the router and DNS.

## Related terms

- [Internet Protocol Address (IP Address)](https://learn.benibix.com/term/infrastructure/ip-address)
- [Private IP Address](https://learn.benibix.com/term/infrastructure/private-ip-address)
- [Router](https://learn.benibix.com/term/infrastructure/router)
- [Domain Name System (DNS)](https://learn.benibix.com/term/infrastructure/dns)
- [Local Area Network (LAN)](https://learn.benibix.com/term/infrastructure/local-area-network)

## Taught in

- [Private IPs, NAT and DHCP](https://learn.benibix.com/learn/infrastructure-networking/private-ips-nat-and-dhcp): Computer Networking, 4/13

![Inside a home network marked 192.168.1.0/24, three devices hold private addresses that the router handed out. One laptop has a small loop marked 127.0.0.1 that turns back on itself. At the router, the private addresses are swapped for one public address, 203.0.113.7, which is the only address the internet sees.](https://learn.benibix.com/diagrams/inf2-addresses.svg)

---

Source: https://learn.benibix.com/term/infrastructure/dhcp
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
