Skip to main content
Back to blog

How to Change an IP Address: The Request Names the Old One Twice

How-To

How to Change an IP Address: The Request Names the Old One Twice article illustration

The usual list of ways to get a new address casts your own equipment as a bystander in the matter. It is nothing of the kind. Within the message it sends in order to be given an address, two separate places name the number it held last time, and continuity is the only reason the first is there.

Two separate places carry the number you already had

The document that sets this out was not written for you. It was written for a device that wants to join a network without being recognised, which makes it the one place where ordinary behaviour is recorded as a list of habits to drop. Published in May 2016, it works through the request field by field in the section covering the older protocol.

A header field comes first, and its entire purpose is to carry that number forward. Four octets near the front of the message carry the address the machine was on before. The document describes that field as “used by the clients to indicate the address that they used previously, so that as much as possible the server can allocate the same address to them”. Nothing about that is a side effect. The field is there so the number comes back.

Elsewhere in that same request sits an element which is not compulsory. It lets the machine name the address it would like. On a reconnection the document calls it a convenience, specifically “an attempt to regain the same IP address that was used in a previous connection”, while recording that it becomes compulsory only at the moment of accepting an offer, never at the moment of enquiring.

So the request your router sends on your behalf carries the previous answer twice, once as a field and once as a preference. How the far side treats them, across an exchange of four messages, belongs to a negotiation conducted entirely without you. None of that machinery is reached by opening a private window, which leaves the number a site writes down untouched by the setting that edits only your own records.

The lever sits inside the message your equipment composes

Having described both places, the document says what a machine should do about them, and the instructions point the same way.

Leaving out the optional element is what the guidance asks for. Under the profile, “clients SHOULD NOT use the Requested IP address option in DHCPDISCOVER messages”, and tidiness is not the reason given. Naming an address you held before means “disclosing an IP address used by the client at a previous location or with a different link-layer address”, a risk the document says “exists for all forms of IP addresses, public or private” because a private number can be reused across a wide area.

Clearing the header field is the matching instruction. Clients “SHOULD ensure that the field is cleared when they know that the network attachment has changed”, and the rule beneath it leaves no room at all: a machine following the profile “MUST NOT include in the message a Client IP address that has been obtained with a different link-layer address”. Leave it populated across a move and “monitoring services might use the information to tie the two network locations”.

One instruction is phrased positively, and comes nearest to a method. Where a machine remembers a previous allocation, it is told that “any client that is concerned with privacy SHOULD perform a complete four-way handshake, starting with a DHCPDISCOVER, to obtain a new address lease”, rather than the shortened exchange it would otherwise use. Only where it can establish that the network is the identical one, with its hardware identifier unchanged, may it try to reclaim what it had.

Read those as a user rather than an implementer and the problem takes on a different shape. What decides the outcome is how a message gets composed, and household equipment offers no control over that at all.

Stability is the thing being traded away

The profile is not offered as a free improvement. One section is given over to the downsides, and it is unusually direct about them.

Naming the trade outright is where that section starts. Clients wanting anonymity must stop using settled values for the identifiers they send, and it is put without softening: “This is clearly a trade-off, because a stable client identifier guarantees that the client will receive consistent parameters over time.” A number that keeps arriving unchanged is not a failure of the system. It is the thing a settled identifier is for.

Two groups are then sorted out, with one told not to bother. The guidance records that “Static clients benefit most from stable parameters and often can already be identified by physical-connection-layer parameters”, and that such clients “will normally not use the anonymity profiles”. A printer in a cupboard and a laptop in an airport are being advised differently, on the grounds that the printer was identifiable by other means anyway.

Frequency, rather than principle, is where the practical warnings land. Varying a hardware identifier will “break management procedures that rely on tracking link-layer addresses”. Do it often enough and fresh requests follow in quick succession, “with a high risk of exhausting DHCPv4 address pools”, so implementers “will have to carefully choose the frequency with which such addresses will be renewed”.

That last point is the honest answer to anyone hoping for a button that cycles the number on demand. Nothing in the protocol forbids it. What the document says is that a machine doing it continuously stops being manageable and starts consuming the supply it draws from. The behaviour is written as guidance for a device in motion, not as a feature for a house.

Wanting it quietly is part of the same advice

One section answers a question reviewers kept raising: whether a machine should simply announce that it would rather not be tracked and let a co-operative network oblige. The answer is no, and its reasoning carries more weight than the verdict does.

Declaring the preference is itself a distinguishing mark. The operator of the network, or anyone with access to it, may be a party to the monitoring, so “it is generally not a good idea to stick out of the crowd” when anonymity is the point. Worse, “Simply revealing the desire for privacy could cause the attacker to react by triggering additional surveillance or monitoring mechanisms”. The authors conclude that “we feel that it is preferable to not disclose one’s desire for privacy”, and design the measures to be hard to tell apart from ordinary behaviour.

Worth keeping is the admission attached to all of it. Even with every instruction followed, the document concedes that “this guidance alone may not be sufficient to prevent fingerprinting from revealing the device type, the vendor name, or the OS type and specific version”, because which elements a machine sends, and in what order, differ between implementations. Watching those amounts to “finding the type and version of software that a particular device is running”. One further sentence closes the loop: “Fingerprinting may also reveal whether the client is using the anonymity profile.”

So an attempt can remain visible even where it works. Its companion half, covering the hardware identifier and the name a machine volunteers before anything loads, is handled under what a borrowed network learns during the joining. Moving the visible number to somebody else’s exit, rather than negotiating for a different one, is the trade examined in the relay network whose cost is paid in speed.

Six parties may hand out the number, none of them you

Our own two readouts are useful here precisely because of what their own copy declines to claim.

Counting the parties who hand the number out, one page arrives at six. The page reporting what a site records about your connection explains that the figure it shows is “assigned by your internet provider, mobile network, company network, VPN, proxy, or hosting provider”. Read as an answer to today’s question, that becomes an inventory of the parties able to issue you a different figure, and the reader appears nowhere on it. Each method in circulation shifts which of the six carries the responsibility; none of them overrules whichever one holds it now. The page states as much itself, in the six sources it offers for whatever figure you see.

Its companion turns the job down where the connection is yours, and nominates somewhere else. The tool accepting any public number you supply, then reporting the controlling organisation, the network around it and a rough location, is built for figures that were issued to other people, and its own closing line hands the reader onward for the one they hold. Every case it suggests bears that out: an alert nobody recognises, a machine somewhere, the far end of a tunnel, a line out of a log. Pointing it at the number you were given before and the number you have now is still the quickest way to find out whether anything moved beyond the digits, which is the use worth knowing for a page built for numbers issued to other people.

Neither page reports how long the current answer lasts, or who decides when it stops. No row on either of them carries a duration.

Which leaves the list itself. Connecting through a tunnel, moving to mobile data, reconnecting the router and asking the provider are four operations on four different parties, and only the last of them puts a request to the body actually holding the lease. On a fixed line the honest position is stated twice over by the specification itself: your equipment is busy asking to keep what it already has, and no control on the box lets you into that sentence.