How to Change Your IP Address in Windows 10

Last updated on November 10th, 2026 at 10:45 am

Windows 10 lets you set your PC’s local IP address by hand from Start > Settings > Network & Internet. Select Wi-Fi or Ethernet, then your network. Under IP settings, select Edit, choose Manual, turn on IPv4, type the new address, subnet prefix length, gateway, and DNS, and select Save. You need an administrator account. Changing the public address that websites see is covered further down.

Note your current settings first

Find your current settings first. Open Command Prompt, type ipconfig, and note the IPv4 Address, Subnet Mask, and Default Gateway. There are other ways to find your IP address in Windows 10 if Command Prompt isn’t handy.

Pick a new address on the same network. For example, if your gateway is 192.168.1.1, you could use 192.168.1.50. Choose a number no other device uses, ideally outside your router’s automatic (DHCP) range.

Should I use a static IP address?

Only if a device needs a fixed address, such as for port forwarding or Remote Desktop. A DHCP reservation in your router does the same job.

What’s my MAC address for a router reservation?

You can find your MAC address in Windows 10 from Settings or Command Prompt, then enter it on the router’s reservation page.

Which address range is safe to pick?

Choose a number outside the range your router hands out automatically, such as above 200 on a 192.168.1.x network. Your router’s DHCP settings page shows the range, so you can avoid clashes.

Still offline after a change? Resetting network settings in Windows 10 puts every adapter back to its defaults.

When you want the router to assign the address again, turning DHCP back on undoes a static setup.

More network settings are explained in Essential network settings and tasks in Windows.

Related: change your IP address in Windows 11.

Change your IP address in Settings

  1. Select Start > Settings > Network & Internet.
  2. Select Wi-Fi (or Ethernet), then select the network you’re connected to.
  3. Under IP settings, select Edit.
  4. Choose Manual, then turn on IPv4.
  5. Enter the IP address, Subnet prefix length (24 for 255.255.255.0), Gateway, and Preferred DNS. Select Save.
Windows 10 Edit IP settings dialog set to Manual with IPv4 on and the IP address fields and Save button highlighted
Choose Manual and turn on IPv4 (1), then enter the settings and select Save (2).

Change your IP address in Control Panel

  1. Press Windows + R, type ncpa.cpl, and press Enter.
  2. Right-click your Wi-Fi or Ethernet adapter and select Properties.
  3. Select Internet Protocol Version 4 (TCP/IPv4), then select Properties.
  4. Select Use the following IP address and enter the IP address, Subnet mask, and Default gateway. To add a second address to the same adapter or adjust the gateway metric, click Advanced in that same window; this walk-through of Windows 10’s advanced TCP/IP options explains each tab.
  5. Enter a Preferred DNS server, such as your gateway address, and select OK.
Windows 10 Internet Protocol Version 4 Properties with Use the following IP address selected and the address fields highlighted
Select Use the following IP address (1) and enter the addresses (2).

Change your IP address with a command

Open Command Prompt as administrator. Replace Wi-Fi with your adapter’s name from ncpa.cpl.

  • Set a static address: netsh interface ip set address name="Wi-Fi" static 192.168.1.50 255.255.255.0 192.168.1.1
  • Set DNS: netsh interface ip set dns name="Wi-Fi" static 192.168.1.1
  • Go back to automatic: netsh interface ip set address name="Wi-Fi" dhcp

Change it with PowerShell

PowerShell works too. Open it as administrator and run Get-NetAdapter to see your adapter names. Then run these lines, changing Wi-Fi and the addresses to match your network:

Set-NetIPInterface -InterfaceAlias "Wi-Fi" -Dhcp Disabled
New-NetIPAddress -InterfaceAlias "Wi-Fi" -IPAddress 192.168.1.50 -PrefixLength 24 -DefaultGateway 192.168.1.1
Set-DnsClientServerAddress -InterfaceAlias "Wi-Fi" -ServerAddresses 192.168.1.1

PrefixLength 24 is the same as the subnet mask 255.255.255.0. To go back to automatic settings, use the netsh dhcp command above, then run Set-DnsClientServerAddress -InterfaceAlias "Wi-Fi" -ResetServerAddresses.

Get a new IP address automatically

If you use automatic (DHCP) settings, ask your router for a new address:

  1. Open Command Prompt.
  2. Type ipconfig /release and press Enter.
  3. Type ipconfig /renew and press Enter.

Your router often gives the same address back. That’s normal.

Change your public IP address

Your public IP address comes from your internet provider, not Windows. To change it:

  • Restart your modem or router. Some providers give you a new address.
  • Use a VPN. Websites see the VPN’s address instead.
  • Ask your provider. They can change it or give you a fixed one.

Switch back to automatic

In Settings, open IP settings > Edit and choose Automatic (DHCP). In Control Panel, select Obtain an IP address automatically and Obtain DNS server address automatically.

If you lose the internet after changing it

  • Wrong gateway or DNS: check them against ipconfig on another device, or switch back to automatic.
  • IP address conflict: another device has the same address. Choose a different number.
  • Wrong network: the first three numbers must usually match your gateway, such as 192.168.1.