Tech

DHCP

It works like the teacher who hands out locker numbers on the first day of school, so that no two students get the same one.

  • 3 min read
  • 1 figures
  • Verified 2026-10-16

Definition

A set of rules that automatically gives an internet address to a newly connected device. DHCP is short for Dynamic Host Configuration Protocol, the name of this automatic assignment method. When a device asks for an address, your home router (or a dedicated server at an office or school) picks a free number and lends it out for a set time. That is why you can get online right away without any complicated setup.

Getting a Locker Number on the First Day

On the first day of a new school year, the lockers are packed with people. If everyone just grabbed the one they liked, two students might fight over the same locker. So the teacher checks the roster and calls out a free number for each student, one by one.

Devices that connect to the internet are in a similar spot. Each device needs its own number so that data can find its way back to the right place. This number is called an IP address.

If two devices share a number, data gets mixed up, like a letter delivered to the wrong person. So someone has to hold the roster and hand out the free numbers. At home, your Wi-Fi router plays the teacher.

This is why a cafe's Wi-Fi works the moment you tap it. Your device asks for a free number, and the router picks one that is still available and hands it over. That quick chat happens in an instant.

The Number Is Lent, Not Given

A locker number doesn't become yours. You borrow it for the school term. An internet address works the same way, with a set time you can use it.

When that time is almost up, your device says it wants to keep going. Then it can keep the same number. But if you turn the device off and stay away until the time runs out, the number is taken back and may go to another device.

That's why your device's number changes from cafe to cafe and from school to school. Even at home, you may get a different number than yesterday after not using a device for a while. A number belongs to the place, not to the device.

A teacher doesn't just give you a number and walk away. They also tell you where the classroom door is and where the bulletin board hangs. A router does the same. Along with your address, it tells you where the exit to the outside is, and where the help desk is that turns site names into addresses.

A Bit More Precisely

The number you get here is a locker number that only works inside that building. Just as the school next door has a locker with the same number, other homes' routers hand out the same numbers too. They don't get mixed up, because when data goes outside, it also uses the building's main address.

Some devices need the same number every time. If a printer at home changed its number each time it turned on, you'd have to hunt for it every time you sent a print job. For devices like this, you can tell the router to reserve a number ahead of time.

Still, for most devices it's easier to leave things to automatic assignment. If a person types in each number by hand, it's easy to make a mistake and create duplicates. You'd also have to pick a new number every time a guest visits.

Common misconceptions

Myth

DHCP is the name of a part or a program inside the router.

Fact

It isn't a part. It's a set of conversation rules for giving and receiving addresses automatically. The router just takes the role of handing out numbers by those rules.

Myth

An IP address, once you get it, is the device's own number and follows it everywhere.

Fact

An address is a number you borrow for a while from the place you connect. When the place changes, like from home to a cafe, the number you get changes too.

Where you meet it

  1. The moment you tap a cafe's Wi-Fi for the first time and get online right away without any setup.

  2. When a guest visits and joins your home Wi-Fi, your numbers don't collide, because the router keeps the roster.

In one sentence

An automatic assignment rule that picks a non-duplicate internet address for a newly connected device and lends it out for a set time.

Created 2024-10-26 Updated 2026-10-16 Verified 2026-10-16