Skip to content
Home » Microsoft » Windows » How to Set Static IP Address on Windows

How to Set Static IP Address on Windows

An IP address is a series of numbers or letters in the case of IPv6, that is assigned to each device connected to a network using the Internet Protocol or IP. This is how devices on a network know that another device exists and then they can communicate. A DHCP (Dynamic Host Configuration Protocol) server, usually your router, assigns a dynamic IP address to any device that is connected to the network. Other examples of a DHCP server can be a Linux machine or a Windows server. Automatic assigning of IP addresses saves you the trouble of assigning them manually. The automatically assigned IP address changes often hence the name dynamic IP address. Sometimes though, you may want to manually set a fixed or static IP address for one reason or the other.

For most people, a dynamic IP address works pretty fine because they have no idea about the complexity that goes behind updating their Facebook status. Their expertise may be in other fields. Some people will find the need to set a static IP address, for instance, when using your PC as a home media server. Certain apps can only connect to a device using their IP address. You wouldn’t want to keep entering a different IP address each time the device reboots. Many other similar cases favor setting up a static IP address. Whatever your reason, switching to a fixed or static IP address isn’t all that difficult.

There are a couple of ways to do this. You can either assign a static IP address to your Windows PC via your router or directly from your PC. It is better to let your devices be assigned a dynamic IP address by your router. Yet, if you do want to set a static IP address, we’d recommend doing it via your router settings. It makes  Since we’re discussing setting up a static IP address on Windows here, that’s what we’re going to discuss.

Don’t miss: Change Taskbar Transparency on Windows 10

Set Static IP Address on Windows

  1. Press Windows+R on your keyboard to launch the Run dialogue box. You can also hit the Windows key and type run to search for it.
  2. In the Run dialogue, type ncpa.cpl and hit Enter.  How To Set A Static IP Address On Windows
  3. This will open the Network Connections window. Here, right-click on your connected network adapter or the network adapter for which you want to assign the IP address to.  How To Set A Static IP Address On Windows
  4. From the context menu, select Properties How To Set A Static IP Address On Windows
  5. In the Properties window that opens up, scroll down, select Internet Protocol Version 4 (TCP/IPv4), and click on the Properties button.
  6. Select Use the following IP address and then type in the IP address, Subnet mask, and Default gateway corresponding to your network setup.  How To Set A Static IP Address On Windows
  7. Next, type in your Preferred DNS server and Alternate DNS server.
  8. Check the box next to Validate settings upon exit and click OK when done.
  9. Close all the open windows.

Windows will now automatically run the diagnostics to check whether the connection is good. If there are problems it will ask you to run the network troubleshooting wizard. If you’ve been using Windows for a while you know the troubleshooting wizards never really help. So if you do run into trouble it’s better to check that your configured settings are valid.

Set static IP address using the command prompt

  1. Hit the Windows key, search for cmd, and launch the command prompt. Alternatively, press the Windows+R keys on your keyboard, type cmd in the Run dialogue, and hit Enter.
  2. Type the following command and hit enter.
    ipconfig /all

    How To Set A Static IP Address On Windows

  3. Now to set a new IP address, run the following command.
    netsh interface ip set address name="connection name" static your_ip_address subnet_mask default_gateway

    Here, replace the connection name with your connection name. Similarly, replace your_ip_address, subnet_mask, default_gateway with the appropriate IP address, subnet mask, and default gateway values. For instance,

    netsh interface ip set address name="Wi-Fi" static 10.0.2.15 255.255.255.0 10.0.2.2
  4. Set the DNS server using this command.
    netsh interface ip set dns name="connection name" static dns_server_ip_address

    Substitute the appropriate values as before.

Vivek Tiwari

Vivek Tiwari

Blogger, Android nerd, Cosmic geek (yes, geek and nerd are not the same, see I know), certified Superman encyclopedia (bragging), local Tech guru. I have been contributing for Technastic and its sister sites for a decade.View Author posts