Are you interested in configuring port forwarding? Or do you want to share a printer or a file on a local network? Well, in this case, there is a need for you to set the static IP address. This configuration needs some care, as a slight mistake might affect your internet connectivity. Filing to set static IP addresses may also crumple port forwarding configurations or services on your Network. 

By default, Dynamic Host Configuration Protocol assigns every connected device a dynamic IP address, but this changes whenever your device is restarted or due to the expiry of the assigned configuration. Therefore, we shall look at the several ways through which you can set a static IP address on Windows 10 device. 

Set the static IP address on Windows 10

Windows 10 has a default settings app that allows you to perform many actions within your device, one of them being setting static IP addresses. To do this, simply follow the steps below

  1. Launch the Settings App in Windows 10
  2. Navigate to Network & Internet
  3. Click Ethernet or Wi-Fi
  4. Now tap on the current network connection
  5. Click the Edit Button under the IP settings section
  6. Select manual from the drop-down menu
  7. Activate the toggle switch on IPv4
  8. Set the IP address for your windows 10 PC
  9. Specify Subnet prefix length; suppose 255.255.244.1 is the subnet mask, then its length is 24 bits
  10. In the next step, specify the Default Gateway, Preferred DNS, and Alternate DNS address 
  11. Hit the Save button

After these changes, you can test your configuration using Mozilla Firefox, Google Chrome, or Microsoft Edge browsers. If all are working fine, then you have completed setting a static IP address on windows 10 using Settings App.

Set Static IP Address On Windows 10 From Control Panel

Through the windows 10 built-in control panel app, you can also set a static IP address. To do this, follow the steps below.

  1. Click the start button on the bottom left corner of your PC
  2. Search for Control Panel  to launch the App
  3. Once in the Control panel window, press Network and Internet, Now choose Network and internet sharing center.
  4. Tap the change network adapter button
  5. Right Click Network Adaptor and choose properties from the list.
  6. Choose Internet Protocol Version 4 (TCP/IPv4)
  7. Tap on the properties button
  8. Choose use the following IP addresses.
  9. Now Assign the static IP Address ( example 10.1.3.234.)
  10. Specify the subnet mask. If you are on a home network, the subnet mask could be 255.255.255.0.
  11. Choose your default Gateway ( this could be your routers IP address, such as 10.1.3.2)
  12. Configure a Preferred DNS server address. This is the server IP address offering DNS solutions.
  13. You can configure an Alternative DNS server that your PC will use if it doesn’t reach the preferred DNS server.
  14. Click the Ok button, then close

After completing these processes, try reloading your web browser to see if the configurations have taken effect. 

Set Static IP Address Via Command Prompt

In Windows 10, you can set a static IP address through the command prompt with a few command lines. But don’t worry; we shall provide these code lines alongside the step-by-step procedure.

  1. Press the Windows logo key + R to open the Run window
  2. Type CMD and hit the Enter Key to open the command prompt window
  3. Type ipconfig /all on the first command line and hit Enter. This command will display all network configurations you are currently using.
  4. Note the name of the IPv4, Subnet Mask, Default Gateway, and DNS servers under the network adapter.
  5. To assign a new static IP address on your PC, type the following command and press the enter key.

netsh interface ip set address name=”Ethernet1″ static 10.1.4.220 255.255.255.0 10.1.4.1

// replace Ethernet1 with the name of the network adapter your pc is connected to. Also, substitute 10.1.4.220 255.255.255.0 10.1.4.1  with the IP address, subnet mask, and default gateway address you noted in step 4. 

  1. To set a DNS server address, type this command line in the command prompt and hit the enter command netsh interface ip set dns name=” Ethernet1″ static 10.1.4.1 once again, remember to substitute Ethernet1 with the name of your network adapter. Also, let the DNS server address 10.1.4.1 correspond to that which you recorded in step 4 above.
  2. Type netsh interface ip add dns name=” Ethernet1″ 8.8.8.8 index=2 to configure alternate DNS server address. In this command, substitute Enthernet1 with your pcs adapter name. Use your alternate DNS server instead of 8.8.8.8 in the command. 

After completing the steps, Test the new settings using the ping command to assess the status of your internet connection. On the other hand, you can open a website on any browser and see if it opens without delays. It’s also advisable to know that Microsoft is soon substituting NetTCPIP with the netsh networking module. Therefore, it’s advisable to use PowerShell to set a static IP address on a windows 10 PC

Set static IP address from PowerShell

As mentioned earlier, windows 10 has a PowerShell command line allowing users to use the NetTCPIP module for managing network settings. Through these settings, you can change the IP address of your PC. Use the following steps to set a static IP address on your PC.

  1. Open PowerShell by right-clicking the windows logo on the bottom left corner and choosing PowerShell (Admin)
  2. Type Get-NetIPConfiguration and hit enter key to view the network configuration
  3. Take note of InterfaceIndex, IPv4Address, IPv4DefaultGateway, and the DNSServer information from your network
  4. Copy and paste this command line and press the enter key

New-NetIPAddress -InterfaceIndex 5 -IPAddress 10.1.4.220 -PrefixLength 24 -DefaultGateway 10.1.4.1

This command will set the static IP address of your computer. In the above code line, substitute the InterfaceIndex 5 with the number o your network adapter. Fix the IPAddress with the new static IP address and alternate the prefix length (subnet mask) with the correct bit. If it’s a home network, then you can substitute this value with 24. Lastly, use the network default gateway with the one recorded in step 3. 

  1. Type Set-DnsClientServerAddress -InterfaceIndex 5 -ServerAddresses 10.1.4.1 and enter to assign your Network a DNS server. You can use commas to separate server addresses if you need a secondary DNS server address. For instance, the above code line could be rewritten as Set-DnsClientServerAddress -InterfaceIndex 5 -ServerAddresses 10.1.4.1, 8.9.8.8.

Substitute InterfaceIndex number (5) in this command with the number of network adapters in step 3. In the place of server addresses,  enter the DNS IP address

After these steps, you should be able to browse the without any problem on any website. However, assigning a static IP address outside the DHCP server scope and within Network ranges is recommended to enhance proper network connectivity and prevent address conflicts. When two devices have a similar address, a networking conflict will end up crippling your internet connection. 

We are not affiliated/associated with Microsoft who own Windows. “Windows” is a trademark of Microsoft Corporation.

The information contained on this website is for general information purposes only and any reliance you place on such information is strictly at your own risk.

Contact Microsoft Office

India+91
N/A
N/A
(0)80 4010 3000
1 800 572 1100
1 800 102 1100
United States+1
+1
(800) 642 7676
(800) 892 5234 (TTY)
Share.

Terry White is a professional technical writer, WordPress developer, Web Designer, Software Engineer, and Blogger. He strives for pixel-perfect design, clean robust code, and a user-friendly interface. If you have a project in mind and like his work, feel free to contact him

Leave A Reply