How to Set a Static IP Address in Windows 10
To set a static IP address in Windows 10, open IPv4 properties for the Wi-Fi or Ethernet adapter you use and select Use the following IP address. Get the correct values from your network administrator or router first. This changes your PC’s local address. The public address of your internet connection is determined separately.
Get the values for a static IP
Gather the IPv4 address, subnet mask, default gateway, and DNS servers. The mask identifies the local subnet, the gateway routes traffic outside it, and DNS resolves names into addresses. If the router assigns addresses through DHCP, use a static address that your administrator has set aside so the router cannot assign it to another device. At home, a DHCP reservation can also keep the same address while leaving Windows on automatic settings.
For example, suppose your router is 192.168.50.1 and 192.168.50.25 is free and excluded from the DHCP pool. You could use 192.168.50.25 as the PC address, 255.255.255.0 as the mask, and 192.168.50.1 as the gateway. If the router provides DNS, 192.168.50.1 can also be the preferred DNS server. Use your actual network settings when you make the change.
Set a static IPv4 address on the adapter
- Press Windows key + I and go to Network & Internet > Status > Change adapter options.
- Right-click the Wi-Fi or Ethernet adapter you use and choose Properties. Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
- Select Use the following IP address and enter the address, subnet mask, and gateway. Select Use the following DNS server addresses and enter the DNS addresses given to you. Enter an alternate DNS server if one was provided. Click OK to save and close the network properties.
Microsoft guide to TCP/IP settings
Verify the address and connection
Run this read-only command in Command Prompt or PowerShell to inspect each adapter.
ipconfig /all
For the adapter you changed, check its IPv4 address, subnet mask, gateway, and DNS servers, then open a website. If the connection drops, revisit the adapter and entered values. If Windows reports a duplicate address, check for another device using it. If the network connects but hostnames do not resolve, check DNS.
Microsoft Learn reference for ipconfig
Return IP and DNS settings to automatic
If your previous settings were automatic, reopen IPv4 properties and select Obtain an IP address automatically and Obtain DNS server address automatically. Click OK. If only the DNS setting was manual, restore the previous DNS values you recorded. Check the connection again.




