Release and renew the DHCP lease on Windows
Drop the current IP address lease and request a fresh one from the DHCP server — the classic fix for 169.254 auto-configuration addresses.
01Command
$ ipconfig /release && ipconfig /renew02What it does
This is distinct from flushing DNS: /release and /renew operate on the IP address lease itself, so it fixes wrong gateways, subnet mismatches, and leftover addresses from another network. Append an adapter name (ipconfig /renew "Ethernet") to target a single interface instead of all of them. If renewing fails and the adapter shows 169.254.x.x, Windows fell back to APIPA because no DHCP server answered.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- ipconfig | Microsoft LearnEvidence: Microsoft documents /release as releasing the current DHCP configuration and /renew as reestablishing it for the adapter.
- IPCONFIG - Windows CMDEvidence: SS64 describes /release (discard the DHCP lease) and /renew (renew it), and notes an adapter name can be supplied as an argument to target one adapter.
Last verified: 2026-09-17 · Category: Network
06Related solutions
Purge cached DNS lookups so Windows re-resolves hostnames from scratch — the fix for 'the new server is live but my browser still hits the old one'.
A built-in PowerShell one-liner that answers 'is port 5432/3389/443 actually open through this network?' — no telnet client needed.
Display the IP-to-MAC address cache Windows built by talking to neighbors — a quick way to spot which devices are on your subnet.