How to Change Your IP Address in Windows 10

To change your IP address in Windows 10, select Start > Settings > Network & Internet. Select Wi-Fi or Ethernet, then select your network. Under IP settings, select Edit, choose Manual, turn on IPv4, and type the new address, subnet prefix length, gateway, and DNS. Select Save.

This changes your PC’s local address on your home or office network. To change the public address websites see, see the section on your public IP below.

Applies to: Windows 10. You need an administrator account. Checked against Microsoft Support on September 25, 2026.

Before you start

Find your current settings first. Open Command Prompt, type ipconfig, and note the IPv4 Address, Subnet Mask, and Default Gateway. See how to find your IP address in Windows 10.

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.

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.
  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.

Frequently asked questions

Will changing my IP address hide me online?

No. Your local address isn’t visible to websites. Only a VPN or new public address changes what they see.

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?

See how to find your MAC address in Windows 10.

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.

To wake this PC over the network, see how to set up Wake on LAN in Windows 10.

If you lose your connection after changing settings, see how to reset network settings in Windows 10.

To find or change your PC’s network name, see how to find and change your computer name in Windows 10.

To switch back to an address from your router, see how to enable DHCP in Windows 10.

Microsoft’s guide is Essential network settings and tasks in Windows. More help is on our Windows Help & Guides page.

Related: change your IP address in Windows 11.

Get Our Free Newsletter

How-to guides and tech deals

You may opt out at any time.
Read our Privacy Policy