How to Set a Static IP Address in Windows 11

An Internet Protocol (IP) address, a string of digits or numbers, serves to identify a device on the World Wide Web or a local network. Similar to a house address used for location, it uniquely identifies a specific computer and can extend to identify an entire network. In this guide, I will be showing you how to Set a Static IP Address in Windows 11. Please see how to Fix Elastic IP Address Could not be Associated, and Hosting Static Website and Versioning on AWS S3.
While a router can dynamically assign an IP address to your computer. You can also manually assign an IP address to your computer yourself. The benefit of this is that this IP address will be fixed on your Windows PC without changing.
Configure IP Address on Windows
You can read on How does Dynamic Host Configuration Protocol work, How to Restrict IP Address Range on Windows PC, How to Add a Printer Using an IP Address in Windows 11, How to configure a Windows client to obtain IP Address automatically from a DHCP Server
How to Set a Static IP Address Using Command Prompt
1: Search for Command Prompt and Run as Administrator

2. Type ipconfig /all on the Command Prompt and press Enter.

Take note of all these details:
Adapter Name
IPv4 Address
Subnet Mask
Default Gateway
DNS Servers

3. You will need to replace the sections in square brackets with the correct Adapter name, IPv4 Address, Subnet Mask, Default Gateway, and DNS Servers.
netsh interface ip set address name= “[Adapter Name]” static [IPv4 address] [Subnet Mask] [Default Gateway]

4. The next thing to do is to set the DNS Server Address
netsh interface ip set dns name = [Adapter Name] static [DNS Server]

Once all the command runs successfully. The static IP Address will be set.
Please see how to configure static page in Microsoft Edge browser via Local Group Policy on Windows, and Classes of IP Address: Understanding IP Address Classification, and how to Allocate, Associate, Disassociate and Release Elastic IP Address from an EC2 Instance.
Method 2: Set a Static IP on Windows 11 Using Windows Settings
Aside from the command prompt you can decide to set the Static IP via the Windows settings.
1: You will still need to use the ipconfig /all and note the Adapter name, IPv4 Address, Subnet Mask and DNS Address.
2: Navigate to Settings App and click Network & Internet. Click on Properties button at the top.

3. On the Adapter Properties page, in the IP assignment section click Edit.

4. Click the drop-down box and select Manual. Click Save.

5. Toggle IPv4 button to ON.

6. Please enter the IP Address, Subnet Mask, Gateway, and Preferred DNS. This information was displayed earlier. The Alternate DNS is optional.
Click Save and after this, your system will have a Static Address.

Method 3: How to Set a Static IP on Windows 11 Using PowerShell
You can also set a static IP address using PowerShell but you cannot use the current IPv4 Address but has to be changed.
1: Run PowerShell as Administrator

2. Enter Get-NetIPConfiguration and press Enter. Take note of all these details:
InterfaceIndex
IPv4Address
IPv4DefaultGateway
DNSServer

3. Enter the following command and replace what is in the square brackets with the details above except for IPv4 Address which should have a different last digit.
New-NetIPAddress -InterfaceIndex [InterfaceIndex] -IPAddress [IPv4Address] -PrefixLength 24 -DefaultGateway [IPv4DefaultGateway]

4. Next step is to set the DNS server, enter the following and replace what is in the square brackets with the correct value and after doing this the Static IP Address will be set.
Set-DnsClientServerAddress -InterfaceIndex [InterfaceIndex] -ServerAddresses [DNSServer]

Method 4: How to Set a Static IP on Windows 11 Using the Control Panel
1: Navigate to Control Panel and click Network and Internet.

2. Click on Network and Sharing Center

3. In the left-hand menu, click Change adapter settings.

4. Right-click on the Specific Network Adapter and select Properties.

5. Select Internet Protocol Version 4 (TCP/IPv4) and click on Properties.

6. Select Use the Following IP Address and enter the IP Address, Subnet Mask, Default Gateway, and DNS Servers that was displayed when you run ipconfig.
Once you click OK the Static settings will be saved.

I hope you found this blog post on How to Set a Static IP Address in Windows 11 Interesting and helpful. In case you have any questions do not hesitate to ask in the comment section.