How to Set Static IP On Windows 10? (4 Ways to Assign a Static IP to Your Windows 10 PC)

Windows devices usually have Dynamic IP addresses by default. Although this is the most commonly used IP setting, some special circumstances might require you to use a static IP address. Such circumstances include using a VPN or wanting external devices like a printer to remember your computer. Some websites or remote access methods also require a static IP to facilitate a secure connection. Such websites whitelist an IP address, making connections easier and faster. Static IP addresses are also essential when using port forwarding since some older routers might misbehave if you use a dynamic IP address. 

So, if we were to use dynamic IP addresses in such scenarios, we would encounter problems.

Dynamic IPs often change when the connection is lost or when the allocated IP is no longer needed. Therefore, whenever an IP is needed, your system will provide a new IP address making it hard for other devices and websites to remember your computer. 

The Windows 10 operating system allows users to set a static IP address through various methods. Unfortunately, the available instructions are usually not concise or understandable. Therefore, the article will guide you through the process of setting up a working static IP for your Windows 10 device.

Note that all the procedures listed here assume that you are already connected to the network on which you want to use a static IP. 

How to Set Static IP On Windows 10

1. Using the Command Prompt

The command prompt or CMD is one of the ways that allows you to change IP address settings on your Windows device. You can use it to set a Static IP, although the procedure can be hard to follow for many users. If this procedure seems too complicated, you can try the others described below. 

  • First, click on the taskbar’s search icon (the magnifying icon).
  • Type CMD in the search box and right-click on the first option.
  • Next, click on the Run as Administrator option.
  • View your current network configurations by entering the command ipconfig/all in the CMD window.
  • Check for the following address information under the network adapter you are using. That is, either the Ethernet or Wireless LAN adapter. 
  1. Subnet mask
  2. IPV4 address
  3. DNS Server address
  4. Default Gateway
  • Then set a new static IP by entering the following command:

netsh interface ip set address name=”Ethernet0″ static

Note: Remember to replace the Ethernet0 in the above command with your current adapter name. That could be either Ethernet0, Ethernet1, or Wi-Fi.

Also, change the first address to match the IPV4 address you found in the previous step. Change the second to match your Windows default gateway address from the previous step above.

Typically, the subnet mask is, but if it is different on your device, change it to match. 

  •  Set the DNS server address using the command netsh interface ip set dns name=”Ethernet0″ static

Note: Remember to change Ethernet0 from the command above to whatever network adapter you use to access the internet. Also, from the above command should match the DNS server addresses gotten in the fifth step. 

  • Assign an alternate DNS address using the command netsh interface ip add dns name=”Ethernet0″ index=2

Note: Remember to change Ethernet0 to the adapter you are using. The DNS address is Google’s, which works in most cases. You can change it to your preferred alternative DNS address. 

  • Using a ping command, you can check if the new settings are working. For instance, while still in the CMD window enter ping to ping the google website. Alternatively, you can open a website in your browser and see if it loads. 

Ways to Set a Static IP in Windows 10

2. Using the Control Panel

If using the command prompt is cumbersome, you can use the control panel to achieve the same results. Simply follow the steps below.

  • Click on the search icon and type Control panel, then hit enter.
  • Then navigate Network and Internet>Network and Sharing center
  • Next, click on the Change Adapter Settings on the left side 
  • Right-click on the network adapter you are using on the new window that will appear.
  • Select Properties, then click Internet Protocol Version 4 (TCP/IPv4) on the new tab.
  • Next, click on Properties on the same tab and select Use the following IP address.
  • Enter your preferred static IP address in the IP address box. 
  • Next, enter a Subnet mask address. A common subnet mask address is
  • Finally, enter a DNS server address in the Preferred DNS server address box.
  • You can also provide an alternative DNS address; however, this step is optional. 
  • Click OK and close all the open tabs. Open a web browser to see if the configurations are working. 

Preferred DNS server address

3. Using the Windows Settings

You can also apply a static IP address through Windows settings by:

  • Hit the Start key, then click on the Settings icon.
  • Next, navigate Network and Internet>Wi-Fi or Ethernet, depending on which adapter you are using.
  • Scroll to IP Settings and click Edit
  • Change the option from Automatic (DHCP) to Manual on the drop-down menu.
  • Next, turn on IPV4 by clicking on the toggle switch
  • Enter your preferred IP address in the IP address box
  • Enter the 24 in the Subnet prefix length box, assuming you will use the subnet mask. 
  • You can also provide an alternative DNS address before clicking Save to finalize the settings.

alternative DNS address

Remember to check if the new configurations work using a web browser to connect to the internet.

4. Using Windows PowerShell

You can also change the IP settings using Windows PowerShell by following these steps;

  • Click on the Search icon and Enter PowerShell.
  • Right-click on the first result to run PowerShell as an administrator
  • Use the command Get-NetIPConfiguration and hit enter to access your connection configurations
  • Note the following information in a separate place, book, or notepad
  • IPv4DefaultGateway
  • InterfaceIndex
  • DNSServer
  • IPv4Address


  • Use the command New-NetIPAddress -InterfaceIndex 4 -IPAddress -PrefixLength 24 -DefaultGateway to configure a static IP.

Note: Ensure you use the Interface index number acquired in the previous step. Number four is used in the command above for illustration purposes only.

Also, use an IP address of your choice, i.e., the Static IP you want to apply. You can also change PrefixLength to the one you wish to; however, the default can also work.

The DefaultGateway address should correspond to that of your router.

  • Use the command Set-DnsClientServerAddress -InterfaceIndex 4 -ServerAddresses to use your preferred DNS address. 

Note: Remember to substitute the InterfaceIndex with the one on your computer and the DNS address with the one you prefer.

  • You can also use a comma at the end of the above command, then add an alternative DNS address if you have one and want to use it.


Meddling with IP address settings can hinder your Windows 10 device from connecting to the internet. Therefore, ensure you understand all the settings you are updating to avoid additional connectivity issues

Recommended reading:

Also, if you followed any of the procedures above, your Windows 10 device will use a static IP address. Remember to revert to a dynamic IP address setting once done with the static IP to avoid future connection issues

On the same note, ensure that other devices in your home do not use the IP address you chose.

Leave a Comment