DHCP
The protocol that hands a device an address for a while. The address is a lease rather than a gift, and renewing it usually returns the same one.
Updated 20 September 2026 · 6 primary sources
Nothing about your address is decided by your computer. When a device joins a network it asks for one, and a server answers with an address, a subnet, a gateway and a period of time. Four messages settle it: the device broadcasts a discovery, a server offers an address, the device requests that offer, and the server acknowledges it.
The period is the part people forget. The specification calls it a lease, and the word is meant literally. The address is yours for a stated time. The device has to ask again before that time runs out, and the server decides what to answer.
The lease, and the two clocks that keep it
A device does not wait for a lease to expire. It keeps two timers. At the first, it contacts the server that gave it the address and asks to extend. At the second, later one, it will accept an answer from any server on the network. The defaults are half the lease and seven eighths of it, so a device with a day-long lease asks again after twelve hours.
The standard sets no house value for the lease itself. An operator picks it, which is why the question "how long does an address last" has no general answer and needs measuring instead.
| Message | Who sends it | What it does |
|---|---|---|
| Discover | The device, to everyone | Asks whether any server is listening |
| Offer | A server | Proposes an address and a lease |
| Request | The device, to everyone | Takes one offer and declines the rest |
| Acknowledge | The chosen server | Commits the address for the lease |
Why the address usually does not change
People assume a dynamic address is a restless one. The standard says otherwise. When a server picks an address it must try three things in order. First the address that device already holds, then the address it held before if that one is still free, and only then something new. A device that stays connected therefore keeps the same address through every renewal, and one that is switched off overnight usually gets its old address back.
Three things break that chain. The lease expires while the device is off and someone else takes the address. The operator renumbers on a schedule. Or the device moves to another network and is told its address is wrong. A carrier that puts many customers behind one public address is a separate matter, and so is a mobile network, where the address can move without anything being renewed.
How long an address really lasts
We can measure the effect, because our free proxy pool remembers when each address was first seen and when it last answered. Of 794,459 addresses, 135,776 were alive at least once. Narrowing to consumer networks leaves 16,823, and their record is not what the folklore says. 59.7 percent were still answering more than 30 days after we first saw them. The average run was 56.3 days, and only 12.0 percent were gone within a day.
One correction on the way there, because it changed the answer. Our own datacenter flag had missed a hosting company, and its 4,683 addresses, which live 6.9 days on average, were sitting in the consumer pile. Dropping operator names that read as hosting moved the United States from 12.6 percent of addresses passing 30 days to 66.8 percent. A measurement is only as good as the population, and ours was wrong until we looked at the operators.
Where the line is matters more than anything else. Brazil, Indonesia and India keep an address for months. One North African incumbent hands out a new one almost daily: 86.7 percent of its addresses were gone within a day. That spread is operator policy, not protocol, and the protocol is the same everywhere.
| Country | Lasted 30 days or more | Average run |
|---|---|---|
| Brazil | 79.4 percent | 72.7 days |
| Indonesia | 76.4 percent | 71.8 days |
| United States | 66.8 percent | 71.5 days |
| Philippines | 58.5 percent | 51.1 days |
| Russia | 51.7 percent | 48.9 days |
| China | 22.9 percent | 24.3 days |
| South Korea | 16.6 percent | 15.4 days |
| Morocco | 2.4 percent | 3.0 days |
Where it came from
The idea is older than the web. In September 1985 a protocol called BOOTP let a diskless machine ask the network who it was. The answer carried an address and a file to boot from. It had no notion of time: an address was assigned by hand, in a table, and stayed until someone edited it.
The lease arrived in October 1993, when the first version of this protocol added a period to the assignment. The version in use today was published in March 1997 and has not been replaced since. It is one of the oldest pieces of machinery still running under every home network. The address family is the only thing that moved on. IPv6 got its own version in November 2018. A device that finds no server at all falls back to a self-chosen address, a behaviour standardised in May 2005.
What this means for proxies
The word dynamic scares buyers into paying for static addresses they may not need. On the numbers above, a dynamic consumer address often outlives a rented server address, because renewal keeps returning the same one. A free proxy on such an address usually disappears because the machine stopped answering, not because its address moved.
What a static product buys is not a longer lease but the removal of the question. An address rented per period is held for you and does not depend on a device renewing anything. That matters when a target ties an account or a whitelist to the address. If it does not, a stable dynamic address is doing the same job quietly.
How HProxy handles it
Our free list carries the first-seen date of every address, so its record is visible rather than promised. For work that ties an account to one address, our ISP and datacenter addresses are rented per period instead of leased by someone else's server.
Frequently asked questions
What is DHCP?
The protocol that gives a device its address when it joins a network. A server offers an address for a fixed period, and the device asks again before that period ends.
What is a DHCP lease?
The period for which a server commits an address to one device. The device renews it from halfway through, and keeps the same address as long as the renewals succeed.
Why does my IP address change?
Usually because the lease lapsed while the device was off and the address went to someone else. Sometimes because the operator renumbers on a schedule of its own. Both are policy, not protocol.
Why does my address usually stay the same?
Because the standard tells the server to offer the address the device already holds, and failing that the one it held before. Renewal is designed to be boring.
How long is a typical lease?
The standard names no figure, so it is whatever the operator sets. What we can measure is the result: on consumer networks in our own pool, 59.7 percent of addresses were still answering after 30 days.
What happens if no server answers?
The device picks an address for itself from a range reserved for that purpose. Machines on one cable can then talk to each other, but nothing beyond it is reachable. That fallback was standardised in May 2005.
Is there a version for IPv6?
Yes, published in November 2018. Many IPv6 networks hand out addresses without it, letting the device build its own from a prefix the router advertises.
Does a proxy change address when the lease renews?
Normally not. Renewal returns the same address, which is why an address on a home line can serve a proxy for months.
Sources
- RFC 2131: Dynamic Host Configuration Protocol, IETF Draft Standard (R. Droms), 1997-03.
- RFC 951: Bootstrap Protocol (BOOTP), IETF (B. Croft, J. Gilmore), 1985-09.
- RFC 1531: Dynamic Host Configuration Protocol, IETF Standards Track (R. Droms), the first version, 1993-10.
- RFC 3927: Dynamic Configuration of IPv4 Link-Local Addresses, IETF Standards Track (S. Cheshire, B. Aboba, E. Guttman), 2005-05.
- RFC 8415: Dynamic Host Configuration Protocol for IPv6 (DHCPv6), IETF Standards Track (T. Mrugalski et al.), 2018-11.
- Address lifetime in our own free proxy pool, HProxy measurement, 2026-09-20.
Back to the full glossary.