FIX: Can’t change static IP address & DNS server Windows 10

Elena Constantinescu
by Elena Constantinescu
VPN Expert & Privacy Advocate
Elena started writing professionally in 2010 and hasn't stopped exploring the tech world since. With a firm grasp of software reviewing and content editing, she is always trying new things to improve her skill... Read more
Affiliate Disclosure
  • More and more computer users are looking for ways to enhance their computer privacy. Using dynamic IP addresses and private DNS servers are a great way to do that.
  • If you can't change your static IP address and DNS servers on Windows 10, you can try forcing it from the Command Prompt or PowerShell. Discover more solutions.
  • Visit our VPN Hub to find out how to amplify your digital security and online privacy.
  • Return to our Network Troubleshooting Hub for more useful guides.
fix cannot change static IP address & DNS server Windows 10
To fix various PC problems, we recommend DriverFix:
This software will keep your drivers up and running, thus keeping you safe from common computer errors and hardware failure. Check all your drivers now in 3 easy steps:

  1. Download DriverFix (verified download file).
  2. Click Start Scan to find all problematic drivers.
  3. Click Update Drivers to get new versions and avoid system malfunctionings.
  • DriverFix has been downloaded by 0 readers this month.

Your IP address represents your ID when you go online. It’s assigned by your ISP and can be used to trace your approximate location.

Meanwhile, your DNS servers are responsible for translating the domains you search online into IP addresses so that machines can understand where you want to go. They are also assigned by your ISP.

However, many privacy-concerned users understand why it’s critical to change their IP address and DNS servers on Windows 10 and other operating systems. It’s problematic when that’s not possible.

If this sounds familiar to you, keep reading to learn how to fix it:

I can’t change my ip address. When I right click local area connection -> properties, the properties for Internet Protocol Version 4 is greyed out. could anyone help me fix this? thanks a lot.

posted by segfault on SuperUser

In other cases, Windows 10 pops up the following error:

Windows 10 says that Windows 10 an unexpected condition occurred

However, you can fix the unexpected condition error on Ethernet or Wi-Fi so that you can change your static IP address and DNS servers.

How can I change my static IP address and DNS servers on Windows 10?

Set a static IP address using PowerShell

set a new IP address in PowerShell
  1. Press the Windows 10 Start button and type powershell
  2. Right-click Windows PowerShell and select Run as administrator
  3. Copy and paste the following command, but don’t hit Enter until setting your actual IP address and other properties
   [-IPAddress] <String>
   [-DefaultGateway <String>]
   [-AddressFamily <AddressFamily>]
   [-Type <Type>]
   [-PrefixLength <Byte>]
   [-ValidLifetime <TimeSpan>]
   [-PreferredLifetime <TimeSpan>]
   [-SkipAsSource <Boolean>]
   [-PolicyStore <String>]
   -InterfaceIndex <UInt32>
   [-CimSession <CimSession[]>]
   [-ThrottleLimit <Int32>]

You can use the New-NetIPAddress cmdlet to set up a new IP address and customize settings.

We suggest reading Microsoft’s complete documentation on New-NetIPAddress to understand the role of each parameter.

Reset your IP address using CMD

use ipconfig/release and ipconfig/renew in CMD
  1. Run Command Prompt: press Win+R , type cmd, press Enter
  2. Type ipconfig/release and press Enter to release your current IP. The Ethernet adapter section will now be void of numerical values
  3. Enter ipconfig/renew and press Enter to reset your IP

You can use the ipconfig/release command to release the current IP address of your computer. Keep in mind that you will have no Internet access at this point.

However, you’ll get back online in no time after using the ipconfig/renew command. Your computer will request a new IP address from a DHCP server, such as your router.

Change your DNS server using PowerShell

PowerShell shows the Set-DnsClientServerAddress cmdlet
  1. Press the Win key and type powershell
  2. Right-click Windows PowerShell and select Run as administrator
  3. Copy and paste the next command, but don’t hit Enter until specifying the server address of your DNS client and other properties
   [-InterfaceAlias] <String[]>
   [-ServerAddresses <String[]>]
   [-CimSession <CimSession[]>]
   [-ThrottleLimit <Int32>]

You can use the Set-DnsClientServerAddress cmdlet to specify at least one IP address for the DNS servers associated with your network adapter.

It statically adds the DNS server addresses, which will override any DHCP configuration for that network adapter.

Find out the goal of each property involved in Microsoft’s full specifications about Set-DnsClientServerAddress.

Flush your DNS and reset Winsock

flush DNS servers in Windows 10
  1. Run Command Prompt as admin
  2. Copy and paste the next lines (press Enter between each line)
ipconfig /flushdns
ipconfig /registerdns
NETSH winsock reset catalog
NETSH int ipv4 reset reset.log
NETSH int ipv6 reset reset.log

Reboot your computer to finalize changes.

If you can’t change your static IP address and DNS server on Windows 10, use the commands above to flush your DNS servers and reset Winsock, which is responsible for your TCP/IP configuration.

Set DHCP IP assignment

set DHCP automatic IP settings in Windows 10
  1. Press the Win key, type settings, and open Settings
  2. Click Network & Internet
    • If you’re using Wi-Fi, select Wi-Fi > Manage known networks. Then, pick your network and select Properties
    • For Ethernet, select Ethernet and then your network
  3. At IP settings, click Edit
  4. Select Automatic (DHCP)
  5. Click Save

If you use automatic DHCP settings, it will be easier to configure TCP/IP settings on your Windows 10 PC.

Use a VPN service


If you wish to regularly change your IP address and protect your DNS queries, we suggest opting for a premium VPN service.

You just have to connect to a VPN IP address. It will not only hide your true IP and location, but also encrypt all data traffic to secure your network from hackers.

We think that Private Internet Access is the best VPN for the job. It’s incredibly intuitive, supports more than 3,300 VPN servers across 48 countries, and can be used to access blocked content, including Netflix US from anywhere.

PIA supports static and dynamic IP addresses, native port forwarding, and exclusive DNS servers. It also comes with a kill switch and a malware blocker for browsers.

More about PIA:

  • WireGuard and OpenVPN with up to 256-bit military-grade encryption
  • No IP, DNS or WebRTC leaks
  • 24/7 live chat support
  • 30-day money-back guarantee (no free trial)
Private Internet Access

Private Internet Access

Use this reliable VPN service to frequently change your IP address, protect your DNS queries, and encrypt all your data traffic.

Check priceBuy it now


To summarize, if you can’t change your static IP address and DNS server on Windows 10, you can try resetting them from the PowerShell or CMD.

It’s also a good idea to refresh network settings by flushing DNS and resetting Winsock. Plus, you can specify automatic DHCP IP assignment.

However, we also recommend using a reliable VPN service like Private Internet Access (buy here). It makes it possible to regularly change your IP address and connect from any part of the world.

Did you manage to modify your IP address and DNS servers using these solutions? What other fixes worked for your computer? Let us know in the comment section below.

This article covers:Topics: