How to Set a Static IP Address on Windows 11 and 10
Set a local static IPv4 address if your Windows PC needs the same address on your network, such as when another device connects to a shared folder on that PC. If your router supports DHCP reservations, it can assign the same address while Windows stays on automatic IP settings. The public IP websites see depends on your internet connection and VPN route.
Before editing, record the adapter's current IP and DNS settings. Get an unused IPv4 address for the correct subnet, its subnet mask or prefix length, the default gateway, and any required DNS addresses from whoever manages the network. Confirm the chosen address will stay out of the router's dynamic assignments while you use it manually.
Set a static IPv4 address on Windows 11
- Open Settings > Network & internet. For Wi-Fi, open Manage known networks and select the network you want to configure. For a wired connection, open Ethernet and select the connected network if prompted.
- Next to IP assignment, select Edit. Choose Manual and turn on IPv4.
- Enter the assigned IP address, the Subnet mask or Subnet prefix length shown by your Windows version, and the Gateway. If the form requires DNS, use the approved resolver addresses for that network. Select Save.
For field names and examples, see Microsoft's TCP/IP settings guide.
Set a static IPv4 address on Windows 10
- Open Settings > Network & Internet > Status, then choose Change adapter options. In Network Connections, right-click the active Wi-Fi or Ethernet adapter and select Properties.
- Select Internet Protocol Version 4 (TCP/IPv4) and open its Properties. Choose Use the following IP address and enter the allocated address, subnet mask, and default gateway.
- Check the DNS settings in the same dialog. If you need to enter DNS addresses, use the ones provided for the network. Select OK to save.
Verify the local address and connection
- Open Command Prompt and run
ipconfig /all. Under the Wi-Fi or Ethernet adapter you edited, confirm the IPv4 Address, Subnet Mask, and Default Gateway. For a manually assigned address, DHCP Enabled should show No. - Test a familiar website or a local service you normally reach on that connection. If both adapters are connected, you can briefly disconnect the other one for the test, then reconnect it. If the new settings break connectivity, restore the previous values or return to automatic IP addressing.
ipconfig reports the PC's adapter settings. To see the address a
website receives, follow the public IP comparison steps.
Restore automatic IP addressing
- Windows 11. On the same Wi-Fi or Ethernet network, edit IP assignment, select Automatic (DHCP), and save.
- Windows 10. Open the same adapter's TCP/IPv4 properties, select Obtain an IP address automatically, and save.
- Reconnect if needed, then run
ipconfig /allagain. Look for DHCP Enabled: Yes and a valid IPv4 address and default gateway. A router reservation can give you the same IPv4 address again.
Check DNS separately if you changed it during setup. Restore the previous manual values or follow the steps to restore automatic DNS if the network originally assigned your DNS servers.
What does “DHCP is not enabled for Ethernet” mean?
Run ipconfig /all and read the DHCP Enabled and
IPv4 Address lines under the Ethernet adapter you are using.
- Manual IP and DHCP Enabled: No. This is expected when you intentionally set a static IPv4 address. Keep it if your network requires it, and verify the address and default gateway. If the network should assign the address, follow the steps to restore automatic IP addressing.
- Automatic IP and an address starting with 169.254. If
DHCP Enabled reads Yes and the adapter shows an
autoconfiguration address such as
169.254.x.x, Windows assigned itself a link-local address because it did not get a DHCP lease. Reseat the Ethernet cable at both ends, then try a known-working cable or another LAN port. Reconnect and runipconfig /allagain. If another device also fails to get an address on that wired connection, check DHCP on the router you manage or ask the network administrator.
See Microsoft's explanation of automatic private IP addressing and its Ethernet connection checks.
When should you use a DHCP reservation?
Use a DHCP reservation if you manage the router, it supports reservations, and you only need the Windows PC to keep the same address on that network. The router assigns the fixed address and the PC keeps using automatic IP settings. Use a manual address when the network administrator assigns one or you need to connect on a network without DHCP.
- In the router's DHCP settings, open Address Reservation. Select the PC from the client list or enter the MAC address the router sees. Use the entry for the adapter you intend to use, since Wi-Fi and Ethernet can appear as separate devices.
- Choose an available address the router accepts and save the reservation.
Leave Windows on automatic addressing and reconnect. Confirm that
ipconfig /allshows the reserved IPv4 address with DHCP still enabled.
For a practical example, see how a printer keeps a fixed local address. Router menu names vary by model. See TP-Link's reservation instructions for one example.