Configuring a Static IP Address on Windows 11

Setting a static IP address on Windows 11 can be a valuable configuration for users who require a stable network connection for tasks such as file sharing, printer access, and port forwarding. This guide will provide step-by-step instructions for configuring a static IP address through different methods, including the Settings app, Command Prompt, PowerShell, and the Control Panel.

Updated July 24, 2025: A static IP address is integral to maintaining consistent network settings, unlike dynamic IP addresses, which are assigned by a DHCP server and can change frequently. Such fluidity can disrupt services requiring stable connections, like remote desktop or external network access.

Setting a Static IP via Command Prompt

Follow these steps to configure a static IP address using Command Prompt:

  1. Launch Start, find Command Prompt, right-click it, and choose Run as administrator.

  2. Type the command below to review your current network settings, then press Enter:

    ipconfig /all

  3. Identify your network adapter’s name along with its IPv4 address, Subnet mask, Default Gateway, and DNS Servers.

    Windows 11 ipconfig all command

  4. To set your static IP address, enter the command below, adjusting the placeholders accordingly:

    netsh interface ip set address name="Ethernet0"static 10.1.4.119 255.255.255.0 10.1.4.1

    Replace “Ethernet0” with your adapter’s name and adjust the IP, subnet mask, and gateway to match your network settings.

  5. To configure the DNS server address, type the following and press Enter:

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

    Change “10.1.4.1” to match your DNS server address.

  6. For a secondary DNS server, use this command:

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

    Be sure to adjust the “8.8.8.8” value.

    Windows 11 netsh command to set static IP address

Once completed, check connectivity with the ping command, for example: ping bing.com.

Configuring a Static IP with PowerShell

Utilizing PowerShell can also be effective for network management. Here’s how to set a static IP address:

  1. Open Start, search for PowerShell, and select Run as administrator.

  2. To view your existing network configuration, input the following command:

    Get-NetIPConfiguration Get-NetIPConfiguration

  3. Confirm your adapter details including InterfaceIndex and network addresses.

  4. Set your static IP with the command below, modifying the placeholder values as needed:

    New-NetIPAddress -InterfaceIndex 10 -IPAddress 10.1.4.119 -PrefixLength 24 -DefaultGateway 10.1.4.1

    Ensure the InterfaceIndex corresponds to your adapter and the other values suit your network.

    PowerShell assign static IP address

  5. For the DNS configuration, enter:

    Set-DnsClientServerAddress -InterfaceIndex 10 -ServerAddresses 10.1.4.1

    Include a secondary DNS by adding it to the same command, for example:

    Set-DnsClientServerAddress -InterfaceIndex 10 -ServerAddresses 10.1.4.1, 8.8.8.8

Once done, the new settings will be applied to your network connection.

Using Settings to Assign a Static IP Address

The Settings app in Windows 11 allows for configurations on both Wi-Fi and Ethernet adapters.

Wi-Fi Adapter Configuration

  1. Open Settings.

  2. Navigate to Network & Internet.

  3. Access the Wi-Fi section.

    Open Wi-Fi settings

  4. Choose your current network connection.

    Open wireless properties

  5. In the “IP assignment” setting, click the Edit button.

    Windows 11 edit IP address

  6. Select the Manual option and activate the IPv4 toggle.

    Static IP enable option

  7. Enter your preferred IP address, Subnet mask, Default Gateway, and Preferred DNS address.

  8. (Optional) Fill out the Alternate DNS address.

  9. Use the DNS over HTTPS menu to configure encryption settings as necessary.

    • Off: All DNS queries sent unencrypted.
    • On (automatic template): Encrypt all DNS queries.
    • On (manual template): Set a custom encryption template.
  10. Finalize your changes by clicking Save.

Ethernet Adapter Configuration

  1. Open Settings.

  2. Go to Network & Internet.

  3. Select the Ethernet section.

    Open Ethernet settings

  4. Click on the Edit button within “IP assignment.”

    Edit TCP/IP Ethernet settings

  5. Select Manual and then toggle on the IPv4 switch.

    Enable static TCP/IP configuration

  6. Fill in the IP address, Subnet mask, Default Gateway, and DNS addresses.

  7. (Optional) Add an Alternate DNS address.

  8. Adjust the settings for DNS over HTTPS as needed.

  9. Save your adjustments.

Setting a Static IP via Control Panel

For those who prefer the Control Panel layout for network configurations, here’s how to set a static IP address:

  1. Open Control Panel.

  2. Select Network and Internet.

  3. Click on Network and Sharing Center.

  4. In the left pane, choose Change adapter settings.

    Open Change adapter settings

  5. Right-click the relevant adapter and select Properties.

  6. Select Internet Protocol Version 4 (TCP/IPv4) from the list.

  7. Click Properties.

    Control Panel open TCP/IPv4 properties

  8. Enable Use the following IP address, and enter your desired IP address, Subnet mask, and Default gateway.

    Set static IPv4 address in Control Panel

  9. Specify your Preferred DNS Server and an optional Alternative DNS Server.

  10. Click OK, then close the properties window.

To test your new configuration, open a browser and navigate to a website of your choice.

Update July 24, 2025: The content has been revised to enhance accuracy and incorporate recent changes in the Windows 11 environment.

Source & Images

Leave a Reply

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