How to Change IP Address on Windows 10

Photo of author

By Victor Ashiedu

Published

This Itechguide teaches you how to change your IP address on Windows 10. The guide covers steps for 3 methods to change IP address in Windows 10.

Option 1: Change IP Address from Adapter Settings

Warning!
If you use the wrong IP address, your computer will NOT connect to the internet. Change the IP address for your PC carefully.
  • Right-click the Windows 10 Start menu and click Settings.
How to Change IP Address on Windows 10 from Adapter Settings
  • On the Windows Settings screen, click Network & Internet.
How to Change IP Address on Windows 10 from Adapter Settings
  • When Network status setting opens, scroll down to Change your network settings and click Change adapter options. Network connections will open and display all network connections on your computer.
How to Change IP Address on Windows 10 from Adapter Settings
  • On Network connections, double-click the adapter you want to change the DNS. The Properties of the adapter will open.
  • On the properties of the adapter, click Internet Protocol Version 4 (TCP/IPv4) to highlight it. Then, click Properties.
  • Finally, on the Internet Protocol Version 4 (TCP/IPv4) Properties, select Use the following IP address.
  • Then, enter the IP address, Subnet mask, and Default gateway and click OK.
In most instances, it is recommended to use the Optain an IP adress automatically option.

Option 2: Change IP Address with Command Prompt

  • Type command prompt in the search box. Then, from the search result, right-click Command Prompt and select Run as administrator.
How to Change IP Address on Windows 10 with Command Prompt
  • If you receive a User Account Control confirmation, click Yes.
  • On Command Prompt, type the command below and click enter.
netsh 
  • Then, on the netsh prompt, type the command below and press enter.
interface ip show config 
The command lists the network information for all the network adapters on your computer. Note the name of the adapter you want to change its IP address. In this example, I want to change the IP addrss for the network adapter, called “Ethernet”.
How to Change IP Address on Windows 10 with Command Prompt
  • Finally, to change IP address on Windows 10 with command prompt, type the netsh command in the format shown below and press enter.
netsh interface ipv4 set address name="interface name for your network adapter" static IP_address SUBNET_MASK DEFAULT_GATEWAY 

Change:
“interface name for your network adapter” to the name of the network adapter you want to set an IP address for.
IP_address to the IP address you want to set.
SUBNET_MASK to the Subnet mask you want to set.
DEFAULT_GATEWAY to your default gateway.

  • Here is an actual command…
interface ipv4 set address name="Ethernet" static 192.168.0.10 255.255.255.0 192.168.0.1  

Option 3: Change IP Address with PowerShell

  • Type powershell in the Windows 10 search box. Then, beneath Windows PowerShell, click Run as Administrator.
How to Change IP Address on Windows 10 with PowerShell
  • If you receive a User Account Control confirmation prompt, click Yes.
  • On the PowerShell prompt, type the command below and press enter.
Get-NetAdapter 
  • The command lists the basic information for all the network adapters on your PC.
Note the interfaceIndex (ifIndex) for the adapter you want to change IP address for. In this example, I want to change the IP address for “Ethernet”. The ifIndex is 22.
  • Finally, to change IP address on Windows 10 with PowerShell, type the New-NetIPAddress Cmdlet in the format shown below and press enter.
New-NetIPAddress -InterfaceIndex “ifIndex” -IPAddress xxx.xxx.xxx.xxx -PrefixLength 2xx -DefaultGateway xxx.xxx.xxx.xxx 
  • Here is an actual command to change the IP address for the adapter with the Interface Index of 22.
 New-NetIPAddress -InterfaceIndex “22” -IPAddress  192.168.0.20 -PrefixLength 24 -DefaultGateway 192.168.0.1 
PrefixLength of 24 will set the subnet mask to 255.255.255.0. To determine the PrefixLength for your subnet mask, use the IP Subnet Calculator. Scroll down to the part of the “table providing typical subnets for IPv4”
  • When you ran the last command, if you receive an error message, use the Set-NetIPAddress Cmdlet to modify the configuration of an IP existing address. Here is the general format:
Set-NetIPAddress –InterfaceIndex “ifIndex” –IPAddress xxx.xxx.xxx.xxx 
  • Here is an actual command to change the IP address for a card with an Interface Index of 22 to 192.168.0.20.
Set-NetIPAddress –InterfaceIndex 22 –IPAddress 192.168.0.20 –PrefixLength 24
The command will also work without including the PrefixLength.
Set-NetIPAddress –InterfaceIndex 22 –IPAddress 192.168.0.20 

It is very easy to change IP address on Windows 10! I hope you found this Itechguide helpful.

If you were able to change IP address on your Windows 10 PC, click on “Yes” beside the “Was this page helpful” question below. You may also express your thoughts and opinions by using the “Leave a Comment” form at the bottom of this page.

Finally, for more Windows 10 Itechguides, visit our Windows 10 How-To page.

About the Author

Photo of author

Victor Ashiedu

Victor is the founder of InfoPress Media, publishers of Ilifeguides and Itechguides. With 20+ years of experience in IT infrastructure, his expertise spans Windows, Linux, and DevOps. Explore his contributions on Itechguides.com for insightful how-to guides and product reviews.

Related Articles

Get in Touch

We're committed to writing accurate content that informs and educates. To learn more, read our Content Writing Policy, Content Review Policy, Anti-plagiarism Policy, and About Us.

However, if this content does not meet your expectations, kindly reach out to us through one of the following means:

  1. Respond to "Was this page helpful?" above
  2. Leave a comment with the "Leave a Comment" form below
  3. Email us at [email protected] or via the Contact Us page.

Leave a comment

Send this to a friend