On Windows 11, it’s possible to remove a static IP address and switch to a dynamic network configuration in multiple ways, including using the Settings app, Control Panel, Command Prompt, and PowerShell. In this guide, you will learn how.

A static TCP/IP address is a recommended configuration for computers offering network services (for example, printers, files, and apps) to prevent communication problems. However, if you don’t need this configuration anymore, you can switch to the dynamic network configuration assigned by the Dynamic Host Configuration Protocol (DHCP) server (usually the router).

This guide will teach you how to remove a static IP address configuration to obtain a dynamic address on Windows 11.

  • Configure dynamic IP address (DHCP) from Settings
  • Configure dynamic IP address (DHCP) from Command Prompt
  • Configure dynamic IP address (DHCP) from PowerShell
  • Configure dynamic IP address (DHCP) from Control Panel

Configure dynamic IP address (DHCP) from Settings

To remove a static IP address to request a dynamic IP configuration on Windows 11, use these steps:

  • Open Settings on Windows 11.
  • Click on Network & Internet.
  • Click on Ethernet or Wi-Fi.
  • Click the Edit button for the “IP assignment” setting.
  • Use the Edit IP settings drop-down menu and select the Automatic (DHCP) option.
  • Click the Save button.

Once you complete the steps, the networking stack configuration will reset, and the computer will request a dynamic IP address from the DHCP server.

Open Settings on Windows 11.

Click on Network & Internet.

Click on Ethernet or Wi-Fi.

Click the Edit button for the “IP assignment” setting.

Use the Edit IP settings drop-down menu and select the Automatic (DHCP) option.

Click the Save button.

Configure dynamic IP address (DHCP) from Command Prompt

To switch from a static TCP/IP configuration to a dynamically assigned configuration from Command Prompt, use these steps:

  • Open Start.
  • Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  • Type the following command to note the name of the network adapter and press Enter
  • ipconfig
  • Type the following command to configure the network adapter to request a dynamic TCP/IP on Windows 11 and press Enter:
  • netsh interface ip set address “Ethernet0” dhcp
  • In the command, change “Ethernet0” to the adapter’s name to configure.

After you complete the steps, the network adapter will drop the static settings and request a dynamic address from the DHCP server.

Open Start.

Search for Command Prompt, right-click the top result, and select the Run as administrator option.

Type the following command to note the name of the network adapter and press Enter

ipconfig

Type the following command to configure the network adapter to request a dynamic TCP/IP on Windows 11 and press Enter:

netsh interface ip set address “Ethernet0” dhcp

In the command, change “Ethernet0” to the adapter’s name to configure.

Configure dynamic IP address (DHCP) from PowerShell

To remove a static IP to use a dynamic configuration with PowerShell commands on Windows 11, use these steps:

  • Open Start.
  • Search for PowerShell, right-click the top result, and select the Run as administrator option.
  • Type the following command to note the “InterfaceIndex” number for the Windows 11 network adapter and press Enter:
  • Get-NetIPConfiguration
  • Type the following command to switch and obtain a dynamic IP on Windows 11 and press Enter:
  • Get-NetAdapter -Name Ethernet0 | Set-NetIPInterface -Dhcp Enabled
  • In the command, change “Ethernet0” to the adapter’s name that you want to configure.
  • Type the following command to enable the network adapter to obtain its DNS configuration using DHCP and press Enter:
  • Set-DnsClientServerAddress -InterfaceIndex 11 -ResetServerAddresses
  • In the command, change 11 for the InterfaceIndex for the adapter to configure.

Once you complete the steps, the computer will switch from a static IP to a dynamic IP configuration.

Search for PowerShell, right-click the top result, and select the Run as administrator option.

Type the following command to note the “InterfaceIndex” number for the Windows 11 network adapter and press Enter:

Get-NetIPConfiguration

Type the following command to switch and obtain a dynamic IP on Windows 11 and press Enter:

Get-NetAdapter -Name Ethernet0 | Set-NetIPInterface -Dhcp Enabled

In the command, change “Ethernet0” to the adapter’s name that you want to configure.

Type the following command to enable the network adapter to obtain its DNS configuration using DHCP and press Enter:

Set-DnsClientServerAddress -InterfaceIndex 11 -ResetServerAddresses

In the command, change 11 for the InterfaceIndex for the adapter to configure.

Configure dynamic IP address (DHCP) from Control Panel

To configure a network adapter to use a dynamic IP address using Control Panel, use these steps:

  • Open Control Panel.
  • Click on Network and Internet.
  • Click on Network and Sharing Center.
  • Click the “Change adapter settings” option in the left pane.
  • Right-click the network adapter and select the Properties option.
  • Select the “Internet Protocol Version 4 (TCP/IPv4)” option.
  • Click the Properties button.
  • Select the “Obtain an IP address automatically” option.
  • Select the “Obtain the following DNS server address automatically” option.
  • Click the OK button.

After you complete the steps, the Windows 11 statically assigned TCP/IP configuration will be removed, and it’ll request a dynamic configuration automatically from the network.

Open Control Panel.

Click on Network and Internet.

Click on Network and Sharing Center.

Click the “Change adapter settings” option in the left pane.

Right-click the network adapter and select the Properties option.

Select the “Internet Protocol Version 4 (TCP/IPv4)” option.

Click the Properties button.

Select the “Obtain an IP address automatically” option.

Select the “Obtain the following DNS server address automatically” option.

Click the OK button.