Tech

How to set a static IP address on Windows 10 • Pureinfotech

On Windows 10, setting a static IP address for your computer is an essential configuration that you may need to configure in many cases. For example, if you plan to file sharing, One printer on local networkor configure port forwarding.

If you do not specify a static IP address, port forwarding services or configurations will eventually stop working. The reason is that by default, connected devices use a dynamic IP address assigned by a Dynamic Host Configuration Protocol (DHCP) server (usually a router), which can be changed at any time. any time, immediately after you restart the machine or after the specified configuration dynamic expires.

In this instruct, you will learn the steps to set a static IP address (version 4) to Windows 10 device when providing service on the network, or simply configure port forwarding to your device on the router. (You can also configure your router to assign a static IP address using the DHCP settings.)

How to assign a static IP address using Command Prompt

While using the commands may be difficult for some users, this is one of the fastest ways to assign a static IP address on Windows 10.

Use these steps to set a static IP address on Windows 10 using Command Prompt:

  1. Open Begin on Windows 10.

  2. Search Command prompt, right click on the top result and select Run as administrator Selection.

  3. Enter the following command to view your current network configuration and press Into the:

    ipconfig /all
  4. In the network adapter, note the name of the adapter as well as the following in the following fields:

    • IPv4
    • Subnet mask
    • Default Gateway
    • DNS server

    Windows 10's ipconfig command
    Windows 10’s ipconfig command

  5. Type the following command to assign a static IP address on Windows 10 and press Into the:

    netsh interface ip set address name="Ethernet0" static 10.1.2.220 255.255.255.0 10.1.2.1

    In the above command, replace Ethernet0 with the name of your network adapter. Change 10.1.2.220 255.255.255.0 10.1.2.1 with the device IP address, subnet mask and default gateway address corresponding to your network configuration.

  6. Enter the following command to set the DNS server address and press Into the:

    netsh interface ip set dns name="Ethernet0" static 10.1.2.1

    In the command, make sure to change Ethernet0 with your adapter name and 10.1.2.1 with the network’s DNS server address.

  7. Enter the following command to set an alternate DNS server address and press Into the:

    netsh interface ip add dns name="Ethernet0" 8.8.8.8 index=2

    In the command, replace Ethernet0 with your adapter name and 8.8.8.8 with an alternate DNS server address.

    Windows 10 netsh command to set static IP address
    Windows 10 netsh command to set static IP address

After completing the steps, you can test the new configuration using ping command (eg ping google.com) to see if the internet is working. Alternatively, you can open a web page to see if the configuration is working.

Microsoft is in the process of retiring neth from Windows 10. So you should start using network module “NetTCPIP” is instead available in PowerShell.

How to assign a static IP address using Control Panel

If Command Prompt is not for you, you can use Control Panel to change IP settings on Windows 10.

Use the following steps to specify a static IP profile using the Control Panel:

  1. Open Dashboard.

  2. Click Network and Internet.

  3. Click network and sharing center.

  4. Click Change adapter configuration on the left navigation pane.

    Control Panel Network and Sharing Center
    Control Panel Network and Sharing Center

  5. Right click on the network adapter and select Nature Selection.

  6. Choose Internet Protocol Version 4 (TCP/IPv4) Selection.

  7. Click Nature button.

    Control Panel's network adapter properties
    Control Panel’s network adapter properties

  8. Choose Use the following IP address Selection.

  9. Static assignment IP address – Eg, 10.1.2.220.

  10. Appoint a Subnet mask. Typically, on a home network, the subnet mask is 255.255.255.0.

  11. Appoint a Default Gateway. (Usually, your router’s IP address – for example: 10.1.2.1.)

  12. In the “Use the following DNS server addresses set Preferred DNS Server” section, set Preferred DNS server address, which is usually your router’s IP address or the server IP address that provides the DNS resolution (for example: 10.1.2.1).

  13. (Optional) Specify a Alternate DNS server, which the computer will use if it cannot access the preferred DNS server.

  14. Click YES button.

    Windows 10 Network Adapter TCP/IPv4 Properties
    Windows 10 Network Adapter TCP/IPv4 Properties

  15. Click Near the once again.

After completing the steps, you can open your web browser and load a web page to see if the configuration is working.

How to assign a static IP address using PowerShell

Windows 10 also includes a PowerShell command-line platform that allows you to use the “NetTCPIP” module to manage network settings, including the ability to change your computer’s IP address settings.

To set a static IP address with PowerShell, use these steps:

  1. Open Begin.

  2. Search PowerShell, right-click the result and select Run as administrator Selection.

  3. Enter the following command to view your current network configuration and press Into the:

    Get-NetIPConfiguration

    After running the command, note the following:

    • InterfaceIndex
    • IPv4 address
    • IPv4DefaultGateway
    • DNS server

    PowerShell's Get-NetIPConfiguration Command
    PowerShell Command Get-NetIPConfiguration

  4. Enter the following command to set a static IP address and press Into the:

    New-NetIPAddress -InterfaceIndex 4 -IPAddress 10.1.2.220 -PrefixLength 24 -DefaultGateway 10.1.2.1
    PowerShell's New-NetIPAddress command
    New-NetIPAddress . PowerShell command

    In the command, replace InterfaceIndex number (4) with your corresponding adapter number. Change IP address with the static IP address you want to assign to your device. Only when necessary, change PrefixLength (subnet mask) with the correct number of bits. Usually on a home network, the setting is 24. Also, let’s change Default Gateway optionally with the default gateway address of the network.

  5. Enter the following command to assign the DNS server address and press Into the:

    Set-DnsClientServerAddress -InterfaceIndex 4 -ServerAddresses 10.1.2.1
    PowerShell's Set-DNSClientServerAddress Command
    PowerShell Command Set-DNSClientServerAddress

    If you need to set a secondary DNS server address, use a comma to use the same command with another address. Eg:

    Set-DnsClientServerAddress -InterfaceIndex 4 -ServerAddresses 10.1.2.1, 8.8.8.8

    In the command, replace InterfaceIndex number (4) with the corresponding number of your network adapter. Also, let’s change ServerAddresses with DNS IP addresses.

After completing the steps, you can test the new configuration by opening a web browser and navigating to a website.

How to assign a static IP address using Settings

On Windows 10, you can also change IP address settings using the Settings app for wireless and wired adapters.

Assign a static IP address to the Wi-Fi adapter

To specify a static IP address configuration for the Wi-Fi adapter, use these steps:

  1. Open Setting.

  2. Click Internet.

  3. Click WIFI.

  4. Click the current network connection.

    Wi-Fi Settings
    Wi-Fi Settings

  5. In the “IP Settings” section, click Edit button.

    Setting Wi-Fi IP on Windows 10
    Setting Wi-Fi IP on Windows 10

  6. Using the drop-down menu, select Handmade Selection.

    Wi-Fi Static IP Option
    Wi-Fi Static IP Option

  7. Turn on IPv4 transition transfer.

    Wi-Fi edit IP address settings
    Wi-Fi edit IP address settings

  8. Set static IP address for use on Windows 10 computers.

  9. Appoint a Subnet prefix length (Subnet mask). If the subnet mask is 255.255.255.0, then the length of the subnet prefix in bits is 24.

  10. Appoint a Default Gateway Address.

  11. Appoint a Preferred DNS Address.

  12. Appoint a Alternate DNS address (if any).

  13. Click Rescue button.

    Wi-Fi TCP/IPv4 Static Configuration
    Wi-Fi TCP/IPv4 Static Configuration

After completing the steps, you can test your settings with a web browser to open a web page.

Assign a static IP address to the Ethernet adapter

To assign a static IP address profile to the Ethernet (wired) adapter, use these steps:

  1. Open Setting.

  2. Click Internet.

  3. Click Ethernet.

  4. Click the current network connection.

    Ethernet Settings
    Ethernet Settings

  5. In the “IP Settings” section, click Edit button.

    Install Ethernet IP on Windows 10
    Install Ethernet IP on Windows 10

  6. Using the drop-down menu, select Handmade Selection.

    Ethernet Static IP Option
    Ethernet Static IP Option

  7. Turn on IPv4 transition transfer.

    Ethernet edit IP address settings
    Ethernet edit IP address settings

  8. Set static IP address.

  9. Specify the Subnet prefix length (Subnet mask). If your subnet mask is 255.255.255.0, then the length of the subnet prefix in bits is 24.

  10. Specify the Default Gateway Address.

  11. Specify the Preferred DNS Address.

  12. Specify the Alternate DNS address (if any).

  13. Click Rescue button.

    Ethernet TCP/IPv4 Static Configuration
    Ethernet TCP/IPv4 Static Configuration

After completing the steps, you can test your settings with a web browser to open a web page.

Whichever method you use, you should specify an IP address in network range and outside the scope of the DHCP server to allow proper connections and avoid address conflicts. Because many devices sharing the same address will cause network conflicts that make them unable to connect to the internet.

We focused this guide on Windows 10, but you can use the Command Prompt and Control Panel methods on Windows 8.1 and Windows 7.

Updated November 19, 2021: This guide was originally published in September 2017 and it has been updated to reflect the new changes included in Windows 10.

https://pureinfotech.com/set-static-ip-address-windows-10/ How to set a static IP address on Windows 10 • Pureinfotech

Hung

Inter Reviewed is an automatic aggregator of the all world’s media. In each content, the hyperlink to the primary source is specified. All trademarks belong to their rightful owners, all materials to their authors. If you are the owner of the content and do not want us to publish your materials, please contact us by email – admin@interreviewed.com. The content will be deleted within 24 hours.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

11 − six =

Back to top button