Going dynamic

How to change from static to dynamic IP address on Windows 10

Using a static IP address? Here are four ways to switch to a dynamic configuration on Windows 10.

Enable DHCP on Windows 10

On Windows 10, you can configure a network adapter to use a static IP address manually or you can use an automatically assigned configuration using the local Dynamic Host Configuration Protocol (DHCP) server.

Although using a static IP address is recommended for devices that provide services to network users, as its configuration never changes, it may come the time, when you may no longer need to maintain this configuration, and a dynamically assigned network configuration will be more suited.

If you’re using a static IP address and you need to switch to a dynamic configuration, it’s possible to perform this task in several ways, including using the Settings app, Control Panel, Command Prompt, and even PowerShell.

In this guide, you’ll learn the steps to remove a static IP address configuration to obtain a dynamic configuration from the DHCP server on Windows 10.

How to configure dynamic IP address (DHCP) using Settings

To configure a network adapter to request a DHCP configuration instead of a static IP address, use these steps:

  1. Open Settings.

  2. Click on Network & Internet.

  3. Click on Ethernet or Wi-Fi.

    Important: The ability to edit the IP settings for an Ethernet adapter in the Settings app is available starting with Windows 10 version 1903, April 2019 Update, and later.
  4. Click the network connection.

    Ethernet network connection
    Ethernet network connection
  5. Under the “IP settings” section, click the Edit button.

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

    Enable automatic (DHCP) IP address using Settings app
    Enable automatic (DHCP) IP address using Settings app
  7. Click the Save button.

Once you complete the steps, the networking stack configuration will reset and your device will request an IP address from the DHCP server (usually your router).

How to configure dynamic IP address (DHCP) using Command Prompt

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

  1. Open Start.

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

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

    ipconfig

    Network adapter name using Command Prompt
    Network adapter name using Command Prompt
  4. Type the following command to configuring the network adapter to obtain its TCP/IP configuration using DHCP and press Enter:

    netsh interface ip set address "Ethernet0" dhcp

    In the command, make sure to change “Ethernet0” for the name of the adapter that you want to configure.

    Enable DHCP on Windows 10 using Command Prompt
    Enable DHCP on Windows 10 using Command Prompt

After completing the steps, the network adapter will stop using a static IP address, and it’ll obtain a configuration automatically from the DHCP server.

How to configure dynamic IP address (DHCP) using PowerShell

To remove a static IP and DNS addresses to use a dynamic configuration using PowerShell, use these steps:

  1. Open Start.

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

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

    Get-NetIPConfiguration

    Network interface information using PowerShell
    Network interface information using PowerShell
  4. Type the following command to enable the network adapter to obtain its TCP/IP configuration using DHCP and press Enter:

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

    In the command, make sure to change “Ethernet0” for the name of the adapter that you want to configure.

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

    Set-DnsClientServerAddress -InterfaceIndex 4 -ResetServerAddresses

    In the command, make sure to change “4” for the InterfaceIndex for the adapter that you want to configure.

    Enable DHCP for dynamic IP assignment using PowerShell
    Enable DHCP for dynamic IP assignment using PowerShell

Once you complete the steps, the IP and DNS addresses will be reset from the adapter, and your computer will receive a new dynamic configuration from DHCP.

How to configure dynamic IP address (DHCP) using Control Panel

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

  1. Open Control Panel.

  2. Click on Network and Internet.

  3. Click on Network and Sharing Center.

  4. On the left pane, click the Change adapter settings link.

    Network and Sharing Center in Control Panel
    Network and Sharing Center in Control Panel
  5. Right-click the network adapter and select the Properties option.

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

  7. Click the Properties button.

    Ethernet0 Properties on Windows 10
    Ethernet0 Properties on Windows 10
  8. Select the Obtain an IP address automatically option.

  9. Select the Obtain the following DNS server address automatically option.

    Enable dynamic IP address (DHCP) using Control Panel
    Enable dynamic IP address (DHCP) using Control Panel
  10. Click the OK button.

After completing the steps, the statically assigned TCP/IP configuration will be removed, and the device will try to request a dynamic configuration automatically from the network.