Table of Contents
You can change a Windows 10 PC's local IPv4 configuration through Settings, the adapter properties in Control Panel, or the netsh command. Choose automatic DHCP for ordinary networks unless you have a specific reason and the correct details for a manual address.
These methods change the PC's address on its local network. They normally do not change the public address websites see, hide your location, or improve internet latency. See the difference between private and public IP addresses.
Before setting a manual address
Record the current configuration with ipconfig /all. Identify the active Wi-Fi or Ethernet adapter, gateway, subnet, DHCP status, and DNS servers. Ask your network administrator or check the router's documented configuration for an available address.
The manual address must belong to the correct subnet and must not duplicate another device or collide with the DHCP pool. A router-side DHCP reservation may be preferable when a device simply needs a consistent address.
You need authorization to change network settings. Avoid changing the active connection during a remote session without a recovery plan, because the session may disconnect.
1. Change IP assignment in Settings
Open Settings > Network & Internet. Select the connected Ethernet network, or the relevant Wi-Fi network properties. Find IP assignment and click Edit. The exact property page varies between Windows 10 builds.
| Purpose | Steps to change your IP address using Windows 10 Settings | What it does |
| Change IP | 1. Open Settings > Network & Internet . 2. Select network type ( WiFi/Ethernet ) > Properties . 3. Under IP assignment , click Edit . 4. Select Manual and enable IPv4 . 5. Manually enter the IP address , subnet prefix length, gateway , and DNS servers as required by your network. | Use the graphical interface to switch from Dynamic IP (DHCP) to Static IP (Manual) and enter the parameters. |
For a static configuration, select Manual, enable IPv4, and enter the values for your network. Some interfaces ask for a subnet prefix length instead of a subnet mask. For example, 24 corresponds to 255.255.255.0; this is a notation example, not a recommendation for every network.
Select Save. To return to router-assigned settings, edit IP assignment and select Automatic (DHCP). Check DNS assignment separately if your interface exposes it.
2. Use Control Panel adapter properties
Press Windows + R, enter ncpa.cpl, and press Enter to open Network Connections. Select the adapter that actually carries your connection.
| Purpose | Key Steps | What it does |
| Change IP | 1. Open Control Panel > Network and Sharing Center > Change adapter settings . 2. Right-click the network connection > Properties . 3. Select Internet Protocol Version 4 (TCP/IPv4) > Properties . 4. Select Use the following IP address and enter the IP address, subnet mask, gateway, and DNS parameters . | Similar to changing it through Settings, but accessed through the Network Properties window for more detailed information. |
Record the existing values before applying changes. To restore automatic configuration, choose Obtain an IP address automatically and, if appropriate for the network, Obtain DNS server address automatically. Save the dialog.
3. Use netsh from an elevated terminal
Open Command Prompt or PowerShell as administrator. The following table summarizes the operations; replace its placeholder values before running a command.
| Purpose | Main Steps (Simplified) | Brief Explanation |
| Identify the network name. | Open CMD/PowerShell as administrator > Use the command:netsh interface ipv4 show config |
The first step is to find the correct name of the network connection (Interface Name). |
| Set Static IP | Use the command:netsh interface ipv4 set address name="ADAPTER NAME" static IP SUBNET GATEWAY |
Use commands netshto configure the network directly by entering static IP parameters. |
| Switch to DHCP | Use the command:netsh interface ipv4 set address name="ADAPTER NAME" source=dhcp |
Switch your IP address to automatic assignment mode from your router. |
Here is an example of explicit static-address syntax. Every value is illustrative, including the adapter name. Use the values assigned for your network:
netsh interface ipv4 set address name="Ethernet" source=static address=192.168.1.50 mask=255.255.255.0 gateway=192.168.1.1If you need to set DNS manually, use an approved server address:
netsh interface ipv4 set dnsservers name="Ethernet" source=static address=192.168.1.1To restore DHCP for both address and DNS on that adapter:
netsh interface ipv4 set address name="Ethernet" source=dhcp
netsh interface ipv4 set dnsservers name="Ethernet" source=dhcpVerify the connection and recover if needed
Run ipconfig /all again and inspect the active adapter. Test a local resource, the gateway where allowed, and a website by name. If local networking works but names do not resolve, review DNS; if the address or gateway is wrong, correct those settings or restore DHCP.
A DHCP renewal may return the same address, so it does not guarantee a new number. If Windows reports a duplicate address, use IP-conflict troubleshooting and review the router's assignments rather than trying random addresses.
Reader Comments 0
Sign in with email or Google to join the discussion.