By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
10alert.com10alert.com
  • Threats
    • WordPress ThreatsDanger
    Threats
    A cyber or cybersecurity threat is a malicious act that seeks to damage data, steal data, or disrupt digital life in general. Cyber threats include…
    Show More
    Top News
    Web Malware: Out of the Shadows and Hiding in Plain Sight
    8 months ago
    7 Reasons Kaspersky Internet Security 2015 is better than ever
    8 months ago
    Multi-stage phishing that starts with real links
    7 months ago
    Latest News
    Wordfence Intelligence Weekly WordPress Vulnerability Report (May 15, 2023 to May 21, 2023)
    3 days ago
    Wordfence Firewall Blocks Bizarre Large-Scale XSS Campaign
    4 days ago
    W3 Eden Addresses Authenticated Stored XSS Vulnerability in Download Manager WordPress Plugin
    6 days ago
    Wordfence Intelligence Weekly WordPress Vulnerability Report (May 8, 2023 to May 14, 2023)
    1 week ago
  • Fix
    Fix
    Troubleshooting guide you need when errors, bugs or technical glitches might ruin your digital experience.
    Show More
    Top News
    Critical vulnerability fixed in popular WordPress plugin Jetpack
    Critical vulnerability fixed in popular WordPress plugin Jetpack
    8 months ago
    Windows 10 22H2 new features and changes
    8 months ago
    Windows 10 update KB5011831 (build 19044.1682) outs as preview
    8 months ago
    Latest News
    How automatically delete unused files from my Downloads folder?
    3 months ago
    Now you can speed up any video in your browser
    3 months ago
    How to restore access to a file after EFS or view it on another computer?
    4 months ago
    18 Proven Tips to Speed Up Your WordPress Site and Improve SEO | 2023 Guide
    4 months ago
  • How To
    How ToShow More
    Acer refreshes Windows 11 PCs for work and play: Swift Edge 16 and Predator Triton 16
    1 day ago
    NVIDIA GeForce RTX 4080 New Mercury Editions of Razer Blade 16 and Blade 18 now available
    1 day ago
    How Oxy uses hooks for maximum extensibility
    How Oxy uses hooks for maximum extensibility
    2 days ago
    The personal threat landscape: securing yourself smartly
    2 days ago
    Announcing new Windows 11 innovation, with features for secure, efficient IT management and intuitive user experience
    5 days ago
  • News
    News
    This category of resources includes the latest technology news and updates, covering a wide range of topics and innovations in the tech industry. From new…
    Show More
    Top News
    How to change audio balance levels on Windows 11
    3 months ago
    How to create pool on Storage Spaces for Windows 11
    3 months ago
    How to share USB printer over the network on Windows 10
    2 months ago
    Latest News
    How to enable new header UI for File Explorer on Windows 11
    4 days ago
    How to enable free VPN on Microsoft Edge
    6 days ago
    How to use Ventoy to create bootable USB of Windows 11, 10
    6 days ago
    How to fix internal drive detected as removable storage bug on Windows 11
    7 days ago
  • Glossary
  • My Bookmarks
Reading: How to set a static IP address on Windows 11
Share
Notification Show More
Aa
Aa
10alert.com10alert.com
  • Threats
  • Fix
  • How To
  • News
  • Glossary
  • My Bookmarks
  • Threats
    • WordPress ThreatsDanger
  • Fix
  • How To
  • News
  • Glossary
  • My Bookmarks
Follow US
FixHow ToMacOS

How to set a static IP address on Windows 11

Vitus White
Last updated: 13 October
Vitus White 8 months ago
Share
10 Min Read

On Windows 11, a static IP address is a network configuration that never changes, making it the preferred option to share files, a printer on a local network, or configure port forwarding.

Contents
Assign static IP address on Windows 11 using Command PromptAssign static IP address on Windows 11 using PowerShellAssign static IP address on Windows 11 using SettingsSet static IP address on Wi-Fi adapterSet static IP address on Ethernet adapterAssign static IP address on Windows 11 using Control Panel

Usually, when a computer connects to the network, it receives a dynamic IP address assigned by the local Dynamic Host Configuration Protocol (DHCP) server. The only problem is that this configuration can change at any time, as soon as you restart the computer or after the settings expire, and this can cause services like port forwarding and remote desktop to stop working. A static network configuration always maintains the same settings, making it ideal for hosting services that other users can access through the network.

In this guide, you will learn the steps to set a static IP (version 4) address on Windows 11. (See also this video tutorial with the steps to complete this task.)

  • Assign static IP address on Windows 11 using Command Prompt
  • Assign static IP address on Windows 11 using PowerShell
  • Assign static IP address on Windows 11 using Settings
  • Assign static IP address on Windows 11 using Control Panel

Assign static IP address on Windows 11 using Command Prompt

Command Prompt is the quickest way to configure a static IP address on Windows 11.

To set a static IP address on Windows 11 with Command Prompt, use these steps:

  1. Open Start on Windows 11.

  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
  5. Type the following command to assign a static IP address on Windows 11 and press Enter:

    netsh interface ip set address name="Ethernet0" static 10.1.4.119 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.119 255.255.255.0 10.1.4.1 with the device IP address, subnet mask, and default gateway address corresponding to the local area network.

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

    netsh interface ip set dns name="Ethernet0" 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="Ethernet0" 8.8.8.8 index=2

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

After you complete the steps, you can use the ping command (for example ping google.com) to see if the configuration is working correctly.

Assign static IP address on Windows 11 using PowerShell

It’s also possible to use PowerShell with the “NetTCPIP” module to manage networking settings, including changing the IP address settings to a static configuration.

To set a static IP address with 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
  4. Confirm the following network information: 

    • InterfaceIndex
    • IPv4Address
    • IPv4DefaultGateway
    • DNSServer
  5. Type the following command to set a static IP address and press Enter:

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

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

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

    Set-DnsClientServerAddress -InterfaceIndex 10 -ServerAddresses 10.1.4.1

    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 10 -ServerAddresses 10.1.4.1, 8.8.8.8

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

Once you complete the steps, the new network configuration will apply to the computer.

Regardless of the method you choose, always assign a TCP/IP address in the network range and outside of the DHCP server scope to allow proper connectivity and avoid configuration conflicts. The reason is that multiple computers sharing the same address will cause problems, preventing them from connecting to the internet.

Assign static IP address on Windows 11 using Settings

On Windows 11, you can set a static IP address configuration from the Settings app for wireless and wired adapters.

Set static IP address on Wi-Fi adapter

To assign a static IP address configuration to a Wi-Fi adapter, use these steps:

  1. Open Settings on Windows 11.

  2. Click on Network & Internet.

  3. Click the Wi-Fi tab.

  4. Select the current network connection.

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

  6. Select the Manual option.

  7. Turn on the IPv4 toggle switch.

  8. Set a static IP address for Windows 11 – for example, 10.1.4.119.

  9. Specify a Subnet prefix length (subnet mask) – for example, 255.255.255.0.

  10. Specify a Default Gateway address.

  11. Specify a Preferred DNS address (required).

  12. (Optional) Specify an Alternate DNS address.

  13. Click the Save button.

Once you complete the steps, the static network configuration will apply to the computer. You can test the new settings by opening the web browser and loading a website.

Set static IP address on Ethernet adapter

To assign a static IP address to an Ethernet (wired) adapter on Windows 11, use these steps:

  1. Open Settings.

  2. Click on Network & Internet.

  3. Click the Ethernet tab.

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

  5. Select the Manual option.

  6. Turn on the IPv4 toggle switch.

  7. Set a static IP address for Windows 11 – for example, 10.1.4.119.

  8. Specify a Subnet prefix length (subnet mask) – for example, 255.255.255.0.

  9. Specify a Default Gateway address.

  10. Specify a Preferred DNS address (required).

  11. (Optional) Use the “Preferred DNS encryption” setting and select the Encrypted only (DNS over HTTPS) to enable DNS over HTTPS (DoH) encryption.
  12. (Optional) Specify an Alternate DNS address.

  13. Click the Save button.

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

Assign static IP address on Windows 11 using Control Panel

On Windows 11, you can still use Control Panel to change the IP settings for Ethernet or Wi-Fi adapters.

To assign a static IP configuration through Control Panel, use these steps:

  1. Open Control Panel.

  2. Click on Network and Internet.

  3. Click on Network and Sharing Center.

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

  5. Right-click the network adapter and select the Properties option.

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

  7. Click the Properties button.

  8. Select the Use the following IP address option.

  9. Assign the static IP address – for example, 10.1.4.119.

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

  11. Specify a Default gateway address – for example, 10.1.4.1 (Usually, your router’s address).

  12. Under the “Use the following DNS server addresses set Preferred DNS server” section, set the Preferred DNS server address, which is usually your router’s IP address or server IP address providing DNS resolutions (for example, 10.1.4.1).

  13. (Optional) Specify an Alternative DNS server, which the computer will use if it cannot reach the preferred DNS server.

  14. Click the OK button.

  15. Click the Close button again.

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

If you want to revert the changes, you can use these instructions to remove the static settings to configure a dynamic IP address on Windows 11.


Translate this article

TAGGED: Encryption, Networking, Port scanning, Targeted Attack, Telnet, Tips, Windows, Windows 10, Windows 11
Vitus White October 13, 2022 October 12, 2022
Share this Article
Facebook Twitter Reddit Telegram Email Copy Link Print

STAY CONECTED

24.8k Followers Like
253.9k Followers Follow
33.7k Subscribers Subscribe
124.8k Members Follow

LAST 10 ALERT

Acer refreshes Windows 11 PCs for work and play: Swift Edge 16 and Predator Triton 16
Windows 1 day ago
NVIDIA GeForce RTX 4080 New Mercury Editions of Razer Blade 16 and Blade 18 now available
Windows 1 day ago
How Oxy uses hooks for maximum extensibility
How Oxy uses hooks for maximum extensibility
Apps 2 days ago
The personal threat landscape: securing yourself smartly
How To 2 days ago
Wordfence Intelligence Weekly WordPress Vulnerability Report (May 15, 2023 to May 21, 2023)
Wordfence Intelligence Weekly WordPress Vulnerability Report (May 15, 2023 to May 21, 2023)
Wordpress Threats 3 days ago

Recent Posts

  • Acer refreshes Windows 11 PCs for work and play: Swift Edge 16 and Predator Triton 16
  • NVIDIA GeForce RTX 4080 New Mercury Editions of Razer Blade 16 and Blade 18 now available
  • How Oxy uses hooks for maximum extensibility
  • The personal threat landscape: securing yourself smartly
  • Wordfence Intelligence Weekly WordPress Vulnerability Report (May 15, 2023 to May 21, 2023)

You Might Also Like

Windows

Acer refreshes Windows 11 PCs for work and play: Swift Edge 16 and Predator Triton 16

1 day ago
Windows

NVIDIA GeForce RTX 4080 New Mercury Editions of Razer Blade 16 and Blade 18 now available

1 day ago
How Oxy uses hooks for maximum extensibility
Apps

How Oxy uses hooks for maximum extensibility

2 days ago
How To

The personal threat landscape: securing yourself smartly

2 days ago
Show More

Related stories

How to Use Cloudflare to Secure Your WordPress Site
How To Starting Chrome from the command line
How to fix error 0x80070057 in Chrome?
Windows 10 How To Disable Slide to Shutdown
Windows search not working (FIX)
How to watch movies and TV series for free on Kinopoisk?
Previous Next

10 New Stories

How to enable new header UI for File Explorer on Windows 11
Wordfence Firewall Blocks Bizarre Large-Scale XSS Campaign
Announcing new Windows 11 innovation, with features for secure, efficient IT management and intuitive user experience
How to enable free VPN on Microsoft Edge
How to use Ventoy to create bootable USB of Windows 11, 10
Announcing Cohort #2 of the Workers Launchpad
Previous Next
Hot News
Acer refreshes Windows 11 PCs for work and play: Swift Edge 16 and Predator Triton 16
NVIDIA GeForce RTX 4080 New Mercury Editions of Razer Blade 16 and Blade 18 now available
How Oxy uses hooks for maximum extensibility
The personal threat landscape: securing yourself smartly
Wordfence Intelligence Weekly WordPress Vulnerability Report (May 15, 2023 to May 21, 2023)
10alert.com10alert.com
Follow US

© 10 Alert Network. All Rights Reserved.

  • Privacy Policy
  • Contact
  • Customize Interests
  • My Bookmarks
  • Glossary
Go to mobile version
adbanner
AdBlock Detected
Our site is an advertising supported site. Please whitelist to support our site.
Okay, I'll Whitelist
Welcome Back!

Sign in to your account

Lost your password?