Release and Renew Your IP Address in Microsoft Windows

Use the IPconfig Command to Get a New IP Address

Businessman working at computer in office
Hoxton/Ryan Lees / Getty Images

Releasing and renewing the IP address on a computer running the Windows operating system resets the underlying IP connection, which often eliminates common IP-related issues, at least temporarily. It works with every version of Windows in just a few steps to disengage the network connection and refresh the IP address.

Under normal conditions, a device can continue using an IP address indefinitely. Networks usually reassign correct addresses to devices when they first join. However, technical glitches with DHCP and network hardware can lead to IP conflicts and other issues in which connections suddenly stop functioning.

When to Release and Renew the IP Address

Scenarios in which releasing the IP address and then renewing it might be beneficial include:

  • When connecting a computer directly to a modem
  • When physically moving a computer from one network to another such as from an office network to home or from home to a hot spot
  • When experiencing an unexpected network outage

Release and Renew an IP Address With Command Prompt

Here's how to release and renew the address of any computer running the Windows operating system.

  1. Open Command Prompt. The quickest method is to use the Win+R keyboard combination to open the Run box and then enter cmd.

  2. Type and enter ipconfig /release.

  3. Wait for the command to complete. You should see that the IP address line shows 0.0.0.0 as the IP address. This is normal because the command releases the IP address from the network adapter. During this time, your computer has no IP address and cannot access the internet.

  4. Type and enter ipconfig /renew to get a new address.

  5. Wait for the command to finish and a new line to show up at the bottom of the Command Prompt screen. There should be an IP address in this result.

More Information About IP Release and Renew

Windows may receive the same IP address after renewal as it had before. This is normal. The desired effect of tearing down the old connection and starting a new one still occurs independently of which address numbers are involved.

Attempts to renew the IP address may fail. One possible error message may read:

An error occurred while renewing interface [interface name] : unable to contact your DHCP server. Request has timed out.

This particular error indicates that the DHCP server may be malfunctioning or is currently unreachable. You should reboot the client device or the server before proceeding.

Windows also provide a troubleshooting section in Network and Sharing Center and Network Connections that can run various diagnostics that include an equivalent IP renewal procedure if it detects that it's needed.