Windows command guide
Renew a Windows IP Address with ipconfig
Windows networking problems are not always caused by DNS alone. Sometimes the machine keeps a stale or unsuitable local IP lease, especially after moving between networks, changing routers, resuming from sleep, or recovering from adapter glitches. Releasing and renewing the address can help the system request a fresh lease from the DHCP server.
This guide is written around the specific symptom-command match for renew ip address, not as a generic dump of terminal lines. That makes the page more useful for real troubleshooting and reduces the chance of running the wrong repair step.
ipconfig /release && ipconfig /renew
Best place to run it
Elevated Command Prompt is the right execution context for this page. Because this repair touches protected Windows state, a normal unelevated shell can return misleading access errors or partial results.
Fast repair workflow
- Start from the exact symptom on this page: The PC shows a strange local IP or cannot talk to nearby devices
- Run the network repair line exactly as shown: ipconfig /release && ipconfig /renew.
- This workflow is tuned for this repair, so avoid mixing it with unrelated repair commands too early.
- Disconnect and reconnect the adapter or reboot the PC if the reset changed saved network state.
- Verify raw connectivity, name resolution, and IP assignment before moving to router or driver troubleshooting.
Copyable wrapper script
Use this wrapper when you want the page command inside a clearer script block with start and finish prompts.
@echo off
echo Run this CMD sequence in an elevated Command Prompt.
echo Starting targeted repair sequence...
ipconfig /release && ipconfig /renew
echo.
echo Review the output before closing this window.
pause
Verification commands after the repair
These follow-up commands help you check whether the repair actually changed the Windows state that matters, instead of assuming success from a single line.
ipconfig /all
ping 1.1.1.1
nslookup example.com
What problem this command is trying to solve
This command targets local network addressing problems where the adapter needs a fresh IP configuration from the router or DHCP server.
- The PC shows a strange local IP or cannot talk to nearby devices.
- The router was changed or rebooted and the connection never recovered properly.
- The device reconnects badly after sleep, docking, or switching between Wi‑Fi and Ethernet.
How the command works
ipconfig /release drops the current DHCP lease on the adapter. ipconfig /renew then asks the network for a new IP address, subnet information, and gateway details so Windows can rebuild a clean local connection.
When it makes sense to run it
Use it when the problem seems tied to the local network lease rather than broken internet service overall. It is common after DHCP changes, router resets, and temporary adapter confusion.
Before you run this command
- Open an elevated Command Prompt or PowerShell window before running ipconfig /release && ipconfig /renew.
- Confirm that the symptom really matches this guide, especially if you are seeing signs such as: the pc shows a strange local ip or cannot talk to nearby devices.
- Check whether the failure is really system-wide and not just one website, one browser, or one Wi-Fi network.
What result to expect
After running ipconfig /release && ipconfig /renew, compare the result against the symptom that brought you here. The most useful checkpoint is whether the pc shows a strange local ip or cannot talk to nearby devices becomes less frequent, changes form, or produces a clearer error message. A command page is stronger when it helps you verify a real change instead of just assuming the line must have worked.
How to verify that it worked
The best verification step after ipconfig /release && ipconfig /renew is to repeat the action that previously triggered the problem. If the router was changed or rebooted and the connection never recovered properly still appears in exactly the same way, the command probably was not the whole answer and you should move to the next targeted check instead of assuming the page is finished.
Why administrator rights matter here
This command changes connectivity, DNS, IP, proxy, or adapter state. Run it in an elevated shell so Windows can apply the repair instead of only returning an access or privilege error.
Before you run it
While the lease is released, the machine temporarily loses its current local network address. If the issue comes from drivers, the router itself, or physical signal quality, renewal alone may not solve it.
When this is probably the wrong fix
This is not the right first fix when one website is down, the ISP has an outage, or only one app is blocked by a firewall rule. Use it when the Windows networking stack or saved network state looks damaged.
What to do if it does not help
If ipconfig /release && ipconfig /renew does not improve the pc shows a strange local ip or cannot talk to nearby devices, move to the next repair step that matches the same symptom family instead of piling on random commands. The best follow-up depends on whether the failure is mainly about connectivity, DNS, IP, proxy, or adapter state.
Frequently asked questions
Should I use ipconfig /release && ipconfig /renew for this exact Windows symptom?
Use it when the behavior on your PC lines up with the repair target on this page: This command targets local network addressing problems where the adapter needs a fresh IP configuration from the router or DHCP server.
What should I check right after ipconfig /release && ipconfig /renew?
Check whether the original trigger still reproduces the same failure. For this page, a useful checkpoint is whether the pc shows a strange local ip or cannot talk to nearby devices becomes less frequent, changes form, or points you toward a more specific next step.
When should I not rely on ipconfig /release && ipconfig /renew alone?
This is not the right first fix when one website is down, the ISP has an outage, or only one app is blocked by a firewall rule. Use it when the Windows networking stack or saved network state looks damaged.