3 ways to change IP address in Windows 10

3 ways to change IP address in Windows 10

Have you ever wondered how to change IP address in Windows 10? Would you like to learn how to do that from Windows 10’s Settings or Control Panel app? Maybe you are a command line lover and want to learn how to change IP address in Windows 10 using CMD (Command Prompt) or PowerShell? Read on and find out how all of this is done in Windows 10.

NOTE : To be able to change the IP address in Windows 10, you must be logged in to Windows 10 with an admin account. Also, before learning how to change the IP address, it’s best to know what the IP address and subnet mask are, how to find the computer IP and the router IP address.

1. How to change IP address in Windows 10 using the Settings app

Because it is based on the intuitive operating system interface, this is probably the easiest method to change the IP address of a Windows 10 computer or device. Here’s what you need to do:

B1: Open the Settings app.

B2: In the Settings app, open the Network & Internet category .

B3: On the left sidebar, choose your network type. If you connect to the Internet (or local network) using a wireless card, select WiFi. If you are accessing the Internet (or LAN) using a wired connection, click Ethernet.

B4: On the right side of the window, click the network connection name.

Click the name of the network connection

B5: Scroll down on the network connection details page until you find the section called IP settings. Then, click Edit , under IP assignment.

B6: The Settings app now displays the Edit IP settings dialog box . This is where you can change the IP address of your computer or device. If you want the router to assign the IP address of your Windows 10 PC automatically, select Automatic (DHCP) . These are also known as dynamic IP addresses.

Select Automatic (DHCP)

B7: If you want to set your own static IP address, choose Manual and then turn on the IPv4 and / or IPv6 switch, depending on the Internet protocol you want to use.

Note that each of those options has a separate IP address, so you’ll have to enter required details for both IPv4 and IPv6 if you choose to enable both.

B8: To change the IP address to a static one, regardless of whether you set it to IPv4 or IPv6, you have to enter the following details:

IP address : Enter the static IP address you want to use. For example, you want to change the IP address (IPv4) of a Windows 10 PC to 192.168.50.10.

Subnet prefix length : Enter the prefix length to determine the size of the subnet. For example, I have configured the router to use a subnet mask of 255.255.255.0 , which means that “Subnet prefix length” must be entered as 24. If there is a subnet mask of 255.255.0.0, the prefix length would be 16, etc ..

Gateway: Enter the IP address of the router. In our case, it is 192.168.50.1.

Preferred DNS and Alternate DNS settings are not required. If you leave them blank, they will automatically be assigned by the router. However, if you also want to change them, you can do so.

Once you’ve entered all the details, click Save to have the IP address changed by Windows 10.

Enter the required details and save changes

NOTE : If you choose to use a static IP address make sure all the details you enter are correct; otherwise, your Windows 10 PC will lose its Internet connection. If that happens, change your IP address back to Automatic (DHCP) so that the router can change it to a working one.

2. How to change the IP address in Windows 10 using Control Panel

In Windows 10, you can also change your IP address from Control Panel.

B1: Open Control Panel and click View network status and tasks in Network and Internet .

B2: In the Network and Sharing Center , click on your Internet connection from the “View your active networks” area .

Click on your Internet connection from the area “View your active networks”

B3: In the Status window of the network connection, click Properties.

B4: In the Properties window, select Internet Protocol Version 4 (TCP / IPv4) or Internet Protocol Version 6 (TCP / IPv6) , depending on the IP address you want to change. If you want to change both, repeat the next steps for each option.

B5: Click Properties.

Click Properties

B6: The previous action will open a window called Internet Protocol Version 4 (TCP / IPv4) Properties or Internet Protocol Version 6 (TCP / IPv6) Properties , depending on what you selected earlier. Here’s where you can change your IP address:

If you want to use a dynamic IP address assigned by the router automatically to a Windows 10 PC, select Obtain an IP address automatically . Then click OK and close all windows you have open.

– If you want to set a static IP address for your network adapter, select Use the following IP address . Then enter the required details manually: IP address, Subnet mask and Default gateway , just like in the previous section.

Manually enter the required details

B7: Save the new IP address settings by clicking OK , then close all windows you have opened in the process.

3. How to change IP address in Windows 10 using PowerShell or Command Prompt (cmd)

To change the IP address on your computer is not difficult, you can use the Control Panel or Settings as mentioned above. However, you may not know that using Command Prompt can also change the IP address. Especially using Command Prompt to change the IP address will be much faster than using Control Panel.

The netsh command allows you to configure some network connection settings on Windows operating systems. However, this process requires a Command Prompt as an administrator.

To open Command Prompt as an administrator:

On Windows 10 or Windows 8.1, right-click the Start button on the Taskbar or press Windows + X to open the Power User Menu, where click Command Prompt (Admin).

In previous versions, type command prompt in the Search box on the Start Menu, then on the list of search results, right-click on Command Prompt and select Run as Administrator.

View network connection information

Before you can change IP address and related information, you need to find the full name of the network connection you want to change. To do this you use the command:

netsh interface ipv4 show config

Scroll down to find the interface you want to find. In the example above the Network Administrator modifies the Wifi interface, so we proceed to find the Wifi. You can also see other default names that Windows assigns on interfaces, such as Local Area Connection, Local Area Connections * 2 and Ethernet.

Just find the exact name of the network connection and copy and paste it into Notepad to use in the next steps.

Change the IP address, Subnet Mask and Default Gateway

To change the IP address, Subnet Mask and Default Gateway , use the following command:

netsh interface ipv4 set address name = “YOUR INTERFACE NAME” static IP_ADDRESS SUBNET_MASK GATEWAY

Suppose you enter the command as:

netsh interface ipv4 set address name = “Wi-Fi” static 192.168.3.8 255.255.255.0 192.168.3.1

In the statement in the above example, replace the information:

– Interface name is Wifi

– Set the IP address to 192.168.3.1

– Set the Subnet mask to 255.255.255.0

Set the Default Gateway to 192.168.3.1

And if you use a static IP address but you want to switch using an IP address automatically assigned by a DHCP server, such as a router, you can use the following command:

netsh interface ip4 set address name = ”YOUR INTERFACE NAME” source = dhcp

Change DNS Settings

Alternatively, you can use the netsh command to change DNS servers. Third-party DNS Server applications like Google Public DNS and OpenDNS can provide faster and more reliable support than DNS servers provided by ISP.

Whatever the purpose of changing your DNS server, you can do it on your router. If you want to change the DNS server of a computer, you can easily do it with the netsh command.

You will have to use two commands: one to set up a primary DNS server and the other to set up the secondary DNS server or backup DNS server .

To set up a primary DNS server , use the command:

netsh interface ipv4 set dns name = “YOUR INTERFACE NAME” static DNS_SERVER

Suppose, if you set up a Google primary public DNS server, 8.8.8.8 use the command:

netsh interface ipv4 set dns name = “Wi-Fi” static 8.8.8.8

To set up the secondary DNS Server , use the following command:

netsh interface ipv4 set dns name = “YOUR INTERFACE NAME” static DNS_SERVER index = 2

Let’s say if you want to set the secondary DNS of Google Public DNS secondary server to 8.8.4.4, use the command:

netsh interface ipv4 set dns name = “Wi-Fi” static 8.8.4.4 index = 2

With the IP address, you can change it to set up DNS automatically. Use the command:

netsh interface ipv4 set dnsservers name “YOUR INTERFACE NAME” source = dhcp

Refer to some more articles below:

  • Disable IPv6 to fix Internet connection problems on Windows computers
  • Here’s how to check if your IP address is static or dynamic
  • IP address conflict error when connecting to Wifi on iPhone, iPad, here’s how to fix it

Good luck!

2