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
- Select Start > Settings > Network & Internet.
- Select Wi-Fi (or Ethernet), then select the network you’re connected to.
- Under IP settings, select Edit.
- Choose Manual, then turn on IPv4.
- Enter the IP address, Subnet prefix length (
24for255.255.255.0), Gateway, and Preferred DNS. Select Save.

Change your IP address in Control Panel
- Press Windows + R, type
ncpa.cpl, and press Enter. - Right-click your Wi-Fi or Ethernet adapter and select Properties.
- Select Internet Protocol Version 4 (TCP/IPv4), then select Properties.
- Select Use the following IP address and enter the IP address, Subnet mask, and Default gateway.
- Enter a Preferred DNS server, such as your gateway address, and select OK.

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:
- Open Command Prompt.
- Type
ipconfig /releaseand press Enter. - Type
ipconfig /renewand 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
ipconfigon 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.

Matt Jacobs has been working as an IT consultant for small businesses since receiving his Master’s degree in 2003. While he still does some consulting work, his primary focus now is on creating technology support content for SupportYourTech.com.
His work can be found on many websites and focuses on topics such as Microsoft Office, Apple devices, Android devices, Photoshop, and more.