Here are the steps to set a static IP address on Windows 11 with Command Prompt, PowerShell, Control Panel, and Settings.
July 21, 2023 2023-07-21T08:19:05-04:00UPDATED 7/21/2023: 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.
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.
This guide will teach you how to set a static IP (version 4) address on Windows 11. (See also this video tutorial with the steps to complete this task.)
To set a static IP address on Windows 11 with Command Prompt, use these steps:
ipconfig /all
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
netsh interface ip set dns name="Ethernet0" static 10.1.4.1
netsh interface ip add dns name="Ethernet0" 8.8.8.8 index=2
In the command, change “Ethernet0” with the adapter’s name and “8.8.8.8” with an alternate DNS server address.
After completing the steps, you can use the ping command (for example ping google.com ) to see if the configuration works correctly.
You can 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:
Get-NetIPConfiguration
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. 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. 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
Once you complete the steps, the new network configuration will apply to the computer.
Regardless of your chosen method, 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.
On Windows 11, you can set a static IP address configuration from the Settings app for wireless and wired adapters.
To assign a static IP address configuration to a Wi-Fi adapter, use these steps:
Quick tip: If you enable this feature, the system will encrypt DNS traffic, but it allows queries to be sent without encryption.
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.
To assign a static IP address to an Ethernet (wired) adapter on Windows 11, use these steps:
After you complete the steps, you can test your settings using your web browser to open a website.
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 the Control Panel, use these steps:
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.
I hope you found this site helpful. Before you move on, I wanted to ask if you would consider supporting my work. As an independent site, producing content takes a lot of work and dedication, and because of those using adblockers and AI, advertising revenue is falling fast. Unlike many other sites, there is no paywall blocking readers here, so you can see why your help is needed. With your support, I can continue the work I love doing. Thank you.
About the authorMauro Huculak is a Windows How-To Expert who started Pureinfotech in 2010 as an independent online publication. He has also been a Windows Central contributor for nearly a decade. Mauro has over 15 years of experience writing comprehensive guides and creating professional videos about Windows and software, including Android and Linux. Before becoming a technology writer, he was an IT administrator for seven years. In total, Mauro has over 21 years of combined experience in technology. Throughout his career, he achieved different professional certifications from Microsoft (MSCA), Cisco (CCNP), VMware (VCP), and CompTIA (A+ and Network+), and he has been recognized as a Microsoft MVP for many years. You can follow him on X (Twitter), YouTube, LinkedIn and About.me. Email him at [email protected] .
Why You Can Trust Pureinfotech
The author combines expert insights with user-centric guidance, rigorously researching and testing to ensure you receive trustworthy, easy-to-follow tech guides. Review the publishing process.