How to set a static IP in Windows 10 [Easy Setup]

Vlad Turiceanu
by Vlad Turiceanu
Editor
0 Comments
Download PDF
Affiliate Disclosure

  • Devices on a network are identified by their IP and MAC addresses. The IP address can be static or dynamic.
  • Assigning a static address remains unchanged when your machine restarts, but the router assigns dynamic addresses each time you reconnect to the network.
  • Don't hesitate to explore our Windows 10 hub for more easy-to-follow guides.
  • Our IP address webpage has detailed information about this subject.
how to set a static IP in Windows 10

By default, your Windows 10 PC or server is set to use dynamic IP addresses. But when adding the computer to a network, you may be required to set Windows 10 static IP address.

When you use a DHCP or dynamic routing, your router assigns an IP address to your machine each time you restart it.

You need a static IP address on your Windows 10 computer because your router may assign one IP address to multiple devices, and they won’t have connectivity because of the conflict.

That’s just one reason, however. For whatever reason, if you want to set a static IP address, here’s how to do it in Windows 10.

Users sometimes run into challenges after setting static IP addresses, the most common of which is where to system refuses to connect to a static IP address.

Here’s how to fix this issue:

  • Confirm that no other device in your network is assigned the same static IP address.
  • Unplug every cable from your router and reset the router.
  • Rename your network and router, add your computer, and reset.
  • Change the IP address to the subnet mask with the allowed number of connected devices.
  • Add a 2nd computer to the network.
  • Confirm that the default gateway and subnet mask are correct.

How can I set up my static IP address in Windows 10?

1. Set it manually

  1. Right-click on the network icon on your taskbar.
  2. Select the Open Network & Internet settings option.
  3. Click on Change adapter options under the Change your network settings area.change-adapter-options-windows-10-static-ip
  4. Right-click on your network connection and select Properties.
  5. Go to Internet Protocol Version 4 (TCP/IPv4) and click on it.
  6. Select Properties below the list.ethernet-properties-windows-10-static-ip
  7. Click on the Use the following IP address option.
  8. Fill in your static IP address.
  9. Enter the subnet mask and default gateway.
  10. Optionally, choose to use the following DNS server addresses and enter your DNS server addresses.
  11. Hit the OK button to save the configuration.

2. Use the Command Prompt

set-static-ip-address-with-command-prompt-windows-10

  1. Press the Windows key and search for cmd.
  2. Right-click on Command Prompt and choose to Run as administrator.
  3. In the Command Prompt window, type in the following command and press ENTER:
    • ipconfig /all
  4. Write down the IPv4 address, subnet mask, default gateway, and DNS server addresses.
  5. Type in the following command and hit ENTER:
    • netsh interface ip set address name="Ethernet0" static 10.2.2.212 255.255.255.0 10.1.2
      Note: Replace Ethernet0 with the name of your network adapter and change 10.2.2.212 255.255.255.0 10.1.2 to the correct IP address.
  6. To assign a DNS server address, run the following command:
    • netsh interface ip set dns name="Ethernet0" static 10.1.2.1
      Note: Replace Ethernet0 with your adapter’s name and 10.1.2.1 with your network’s DNS server address.
  7. To assign an alternate DNS server address, run the following command:
    • netsh interface ip add dns name="Ethernet0" 8.8.8.8 index=2
      Note: Change Ethernet0 your network’s name and 8.8.8.8 to the alternate DNS server address.

3. Use the Windows 10 Settings

  1. Press the Windows key + I combination.
  2. Select the Network & Internet tile.
  3. Click on Change connection properties.change-connection-properties-windows-10-static-ip
  4. Scroll down to IP settings and hit Edit.edit-network-settings-windows-10-static-ip
  5. Choose Manual from the dropdown menu.
  6. Toggle on the IPv4 switch.
  7. Enter your IP address, Subnet prefix length, Default Gateway address, and DNS addresses.set-static-ip-with-settings-windows-10
  8. Click on the Save button.

These are the three easiest ways to assign or set a static IP address on your Windows PC, so make sure to follow them exactly to avoid any unwanted issues.