How to set static IP address on Windows 10 - Pureinfotech (2024)

  • To set a static IP address on Windows 10, open Settings > Network & Internet > Wi-Fi, click the connection, click on “Edit,” select “Manual,” turn on “IPv4,” and set the static IP address.
  • Alternatively, you can configure a static IP address from Command Prompt, PowerShell, and Control Panel.

UPDATED 12/20/2023: On Windows 10, setting a static IP address to a computer is a configuration you may need to set up in many scenarios. For instance, if you plan to share files, set up a printer on a local network, enable and use Remote Desktop, or configure port forwarding on the router.

If you don’t assign a static IP address, services or a port forwarding configuration may eventually stop working. The reason is that, by default, connected devices use dynamic IP addresses assigned by the Dynamic Host Configuration Protocol (DHCP) server (usually the router), which can change anytime, as soon as you restart the machine or after the dynamically assigned configuration lease expires. On the other hand, a static configuration is permanent, and it’ll remain assigned until you change it.

Regardless of the reason, Windows 10 offers multiple ways to configure a static network configuration through the Settings app, the legacy Control Panel, and the command line using Command Prompt and PowerShell.

In this guide, I will teach you the steps to set a static IP (version 4) address to a Windows 10 computer.

  • Set static IP address on Windows 10 from Settings
  • Set static IP address on Windows 10 from Control Panel
  • Set static IP address on Windows 10 from Command Prompt
  • Set static IP address on Windows 10 from PowerShell

Set static IP address on Windows 10 from Settings

To assign a static IP address on Windows 10, use these steps:

  1. Open Settings on Windows 10.

  2. Click on Network & Internet.

  3. Click on “Wi-Fi” or “Ethernet.”

  4. Click on the current network connection.

    How to set static IP address on Windows 10 - Pureinfotech (1)

  5. Under the “IP settings” section, click the Edit button.

    How to set static IP address on Windows 10 - Pureinfotech (2)

  6. Using the drop-down menu, select the Manual option.

  7. Turn on the “IPv4” toggle switch.

    How to set static IP address on Windows 10 - Pureinfotech (3)

  8. Set a static IP address to use by the Windows 10 computer.

  9. Specify a “Subnet prefix length” (subnet mask). If the subnet mask is 255.255.255.0, the subnet prefix length in bits is 24.

  10. Specify a “Default Gateway” address.

  11. Specify a “Preferred DNS” address.

  12. Specify an “Alternate DNS address” (if applicable).

  13. Click the Save button.

    How to set static IP address on Windows 10 - Pureinfotech (4)

After you complete the steps, you can test your settings using your web browser to open a website.

Set static IP address on Windows 10 from Control Panel

To assign a static IP from the Control Panel on Windows 10, use these steps:

  1. Open Control Panel.

  2. Click on Network and Internet.

  3. Click onNetwork and Sharing Center.

  4. Click the Change adapter settings option on the left navigation pane.

    How to set static IP address on Windows 10 - Pureinfotech (5)

  5. Right-click the Wi-Fi or Ethernet adapter and select the Properties option.

  6. Select the “Internet Protocol Version 4 (TCP/IPv4)” option.

  7. Click the Properties button.

    How to set static IP address on Windows 10 - Pureinfotech (6)

  8. Select the “Use the following IP address” option.

  9. Set the static IP address for the adapter – for example, 10.1.2.220.

  10. Specify a Subnet mask. (Typically, on a home network, the subnet mask is 255.255.255.0.)

  11. Specify a Default gateway. (Usually, your router’s IP address. For example, 10.1.2.1.)

  12. Under the “Use the following DNS server addresses set Preferred DNS server” section, set the Preferred DNS server address. (Usually, your router’s IP address or server IP address that provides the DNS resolution, such as 10.1.2.1).

  13. (Optional) Specify an Alternative DNS server. (The computer will use this address if it cannot reach the preferred DNS server.)

  14. Click the OK button.

    How to set static IP address on Windows 10 - Pureinfotech (7)

  15. Click the Close button again.

Once you complete the steps, you can open your web browser and load a website to see if the configuration works.

Set static IP address on Windows 10from Command Prompt

To set a static IP address on Windows 10 from Command Prompt, use these steps:

  1. Open Start.

  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.

  3. Type the following command to see your current networking configuration and press Enter:

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

    • IPv4
    • Subnet mask
    • Default Gateway
    • DNS Servers

    How to set static IP address on Windows 10 - Pureinfotech (8)

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

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

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

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

    netsh interface ip set dns name="Ethernet1" static 10.1.4.1

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

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

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

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

    How to set static IP address on Windows 10 - Pureinfotech (9)

After you complete the steps, you can test the new configuration using the ping command (for example ping google.com) to see if the internet is working. Alternatively, you can open a website to see if the configuration works.

Set static IP address on Windows 10from PowerShell

Windows 10 also includes the PowerShell command line platform that allows you to use the “NetTCPIP” module to manage networking settings, including the ability to change your computer’s IP address settings. Microsoft recommends using this command-line method instead of netsh.

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

  1. Open Start.

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

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

    Get-NetIPConfiguration

    After running the command, note the following information:

    • InterfaceIndex
    • IPv4Address
    • IPv4DefaultGateway
    • DNSServer

    How to set static IP address on Windows 10 - Pureinfotech (10)

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

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

    How to set static IP address on Windows 10 - Pureinfotech (11)

    In the command, replace the “InterfaceIndex” number (5) with the corresponding number of your adapter. Change “IPAddress” with the static IP address you want to assign to your device. Change PrefixLength (subnet mask) with the correct bit number if necessary. Typically, on a home network, the setting is “24.” Also, change the “DefaultGateway” option with the default gateway address of the network.

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

    Set-DnsClientServerAddress -InterfaceIndex 5 -ServerAddresses 10.1.4.1

    How to set static IP address on Windows 10 - Pureinfotech (12)

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

    Set-DnsClientServerAddress -InterfaceIndex 5 -ServerAddresses 10.1.4.1, 8.8.8.8

    In the command, replace the “InterfaceIndex” number (5) with your network adapter’s corresponding number. Also, change “ServerAddresses” with the DNS IP address.

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

Whatever method you use, assigning an IP address within the network range and outside of the DHCP server scope is recommended to allow proper connectivity and avoid address conflicts. If multiple devices share the same address, this will cause a networking conflict, preventing connection to the internet.

Update December 20, 2023: This guide has been updated to ensure accuracy and reflect changes to the process.

How to set static IP address on Windows 10 - Pureinfotech (2024)

FAQs

How do I set a static IP address in Windows 10? ›

How to set a static IP address on Windows 10 and 11
  1. Open “Settings” on your computer.
  2. Select “Network and internet.”
  3. Select your current connection.
  4. Select “Manage known networks” > “Properties” > “IP settings.”
  5. Select “Edit.”
  6. Select “Manual.”
  7. Select “IPv4” and switch it to “On.”
Nov 22, 2022

How do I manually set a static IP address? ›

How to Set a Static IP Address
  1. Access the Control Panel. In the Windows search bar, type in “ncpa.cpl” and then press enter. ...
  2. Select the Network Adapter. ...
  3. Select Properties. ...
  4. Select Internet Protocol Version 4 (TCP/IPv4) ...
  5. Manually enter IP address and subnet mask. ...
  6. Save Settings. ...
  7. Revert Back to DHCP. ...
  8. Glossary.

How to check static IP address in Windows 10 using Command Prompt? ›

Find your IP Address on Windows 10: Using the Command Prompt

a. Click the Start icon, type command prompt into the search bar and press click the Command Prompt icon. 2. Type ipconfig/all and press Enter.

How do I assign a static IP address to my access point? ›

DHCP or Static IP Addressing
  1. Under Uplink VLAN, select the Tagged radio button.
  2. Specify a VLAN ID between 1 and 4092 for the Uplink VLAN.
  3. Save the configuration. After the uplink VLAN is set, the AP will reboot to apply the new configuration, and the AP will receive an IP address.

How do I manually assign an IP address in Windows 10? ›

To enable DHCP or change other TCP/IP settings
  1. Select Start, then type settings. Select Settings > Network & internet.
  2. Do one of the following: ...
  3. Next to IP assignment, select Edit.
  4. Under Edit network IP settings or Edit IP settings, select Automatic (DHCP) or Manual. ...
  5. When you're done, select Save.

How do I know if my IP is static Windows 10? ›

How to check if you have a static or dynamic IP address
  1. Click on the taskbar search and type “Command prompt.”
  2. Hit “Command prompt.”
  3. Type “ipconfig/all” and press “Enter.”
  4. Find the “DHCP enabled” line. “Yes” means your IP address is dynamic, and “No” means your IP is static.
Nov 24, 2023

Should I use DHCP or static IP? ›

After comparing DHCP vs static IP, it is undoubtedly that DHCP is the more popular option for most users as they are easier and cheaper to deploy. Having a static IP and guessing which IP address is available is really bothersome and time-consuming, especially for those who are not familiar with the process.

How to reset IP address on PC? ›

Release and renew your IP address on a Windows PC
  1. Click Start then Run and type cmd in the Open field. Press Enter. If prompted, select Run as administrator.
  2. Type ipconfig/release and press Enter.
  3. Type ipconfig/renew and press Enter.
  4. Type exit and press Enter to close the window.

When should you use a static IP address? ›

It is also recommended to use static IP addresses for devices within the network that are accessed by the Internet (as in the case of a web server) or when it is critical that a data connection is not interrupted.

How do I know if my computer has a static IP address? ›

How to check if you have a static or dynamic IP address
  1. Right-click the Start button.
  2. Type Command Prompt, then press enter.
  3. Click Command Prompt.
  4. Type ipconfig /all, then press enter.
  5. Look for DHCP Enabled. If it says “Yes,” you have a dynamic IP address. It if says “No,” you have a static IP address.
Mar 22, 2022

How to get static IP address using cmd? ›

Running ipconfig on a Windows PC
  1. Click the Start menu.
  2. In Search/Run bar, type cmd or command, then press Enter. ...
  3. In the Command Prompt, type ipconfig or ipconfig/all, then press Enter. ...
  4. Using the available IP range determined by your router, run a ping command to an address in that range to confirm it is free for use.
Mar 30, 2023

What is my current static IP address? ›

On a Windows computer, type ipconfig /all within a command prompt. Find the “DHCP Enabled” text. If it says NO, you have a static IP address. If it says YES, you have a dynamic IP address.

How to change a dynamic IP address to static? ›

A static IP address, on the other hand, is a permanent, unchanging IP address. To convert a dynamic IP into a static IP, you need to contact your ISP and request a static IP address. Your ISP will then assign you a static IP address, which you can use to configure your network settings.

Should I give access point a static IP? ›

Assigning a static IP address on an access point allows you to use the same IP address all the time regardless of where it is connected, making it easier to access its web-based setup page for any configuration changes.

Why does my IP address keep changing? ›

So the Internet world introduced the concept of dynamic IP addresses. That allowed ISPs to provide their subscribers an IP address that might change if needed. In essence, that IP address is borrowed or “leased” to you whenever you go online.

How do I change my IP from dynamic to static? ›

A static IP address, on the other hand, is a permanent, unchanging IP address. To convert a dynamic IP into a static IP, you need to contact your ISP and request a static IP address. Your ISP will then assign you a static IP address, which you can use to configure your network settings.

What IP address should I use for static? ›

When making static IP assignments for local devices on home and other private networks, the address numbers should be chosen from the private IP address ranges defined by the Internet Protocol standard: 10.0. 0.0–10.255. 255.255.

Top Articles
Latest Posts
Article information

Author: Cheryll Lueilwitz

Last Updated:

Views: 5939

Rating: 4.3 / 5 (74 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Cheryll Lueilwitz

Birthday: 1997-12-23

Address: 4653 O'Kon Hill, Lake Juanstad, AR 65469

Phone: +494124489301

Job: Marketing Representative

Hobby: Reading, Ice skating, Foraging, BASE jumping, Hiking, Skateboarding, Kayaking

Introduction: My name is Cheryll Lueilwitz, I am a sparkling, clean, super, lucky, joyous, outstanding, lucky person who loves writing and wants to share my knowledge and understanding with you.