How to Set a Static IP Address on Windows 11?

Looking to Assign or Configure Static IP Address in Windows PC. Here is the Simple Guide to Set Static IP Address on Windows 11.

When your computer connects to an internet source, the local Dynamic Host Configuration Protocol (DHCP) server allocates a dynamic IP address to your Windows 11 PC. As the name suggests, the dynamic IP address changes every time the computer reboots, the router restarts, after the settings expire, or when devices leave and join the network. This prevents you from using port forwarding features or problems in connecting with the remote desktop.

This calls in for the static IP address which does not change under any circumstance. A static configuration retains the same settings allowing service hosting when it needs to be accessed across networks. Thus, a static IP address is ideal for sharing files and folders, accessing printers on a local network, or configuring port forwarding settings.

If you are clueless about how to address the static IP address on a Windows 11 PC, we’ve got you covered. In this detailed guide, we have provided a step-by-step tutorial to set a static IP (version 4) address on your Windows 11 PC. So without wasting any time, let’s get started.

Ways to Change the Static IP Address on Windows PC

Below are the different ways offered by Microsoft by which you can change the static IP address on your Windows 11 device.

1. Set the Static IP using the Command Prompt 

You can set the static IP address on the Windows 11 PC directly by executing the commands on the command prompt window. Here is the step-by-step process of the same:

  1. Press the Windows key to launch the Start menu. Type cmd in the search bar on top and choose the Run as administrator option from the results section. Launch command prompt in administrator mode
  2. Choose Yes from the User Action Control prompt to provide administrative privileges to the Command Prompt.
  3. Type the ipconfig /all and press the Enter key to view the configuration settings. Execute ipconfig command
  4. When the information is displayed, note down the following details for later use.  IPv4 Address Subnet Mask Default Gateway DNS Servers
  5. Next, type the command and press the Enter key to execute it. Replace the placeholders with the values copied above.
    netsh interface ip set address name= “[Adapter Name]” static [IPv4 address] [Subnet Mask] [Default Gateway]

    For example, the command should look like this: netsh interface ip set address name= “Ethernet” static 10.221.55.4 255.255.255.0 10.201.58.1


    Execute netsh command

  6. Next, execute the command by pressing the Enter key to set a DNS server.
    netsh interface ip set dns name = “[Adapter Name] static [First DNS Server]

    For instance, the command will look like this: netsh interface ip set dns name= “Ethernet” static 10.211.55.1 windows 11 netsh set dns command


    Execute netsh command to set DNS server

As soon as you execute the command, your static IP address will now be allocated.

2. Set the Static IP using the Windows Settings app

If you are not well versed with the command prompt, you can directly set the static IP address using the Windows 11 settings app. However, you need to copy the current network configuration by executing the command in the command prompt window.

  1. Press the Windows button to bring up the Start menu. Type cmd in the search bar on top and choose the Run as administrator option from the search results. Launch command prompt in administrator mode
  2. Type the following command in the command prompt and press the Enter key to execute it.  ipconfig /all Execute ipconfig command
  3. Note down the following details for later use. IPv4 Address Subnet Mask Default Gateway DNS Servers
  4. Use the Windows + I shortcut to launch the Settings app on Windows 11 PC.
  5. Choose Network & Internet from the left sidebar and then WiFi or ethernet from the right section. Select Wifi from Network and internet settings
  6. Choose Wi-Fi Properties from the next window to expand the settings. Choose Wifi Properties
  7. Scroll down and press the Edit button next to the IP assignment. Edit IP assignment details
  8. Expand the drop-down in the popup window and choose the Manual option. Choose Manual from the drop down
  9. Enable the toggle next to the IPv4 option. Enable IPv4 toggle
  10. Enter the IP Address, Subnet Mask, Gateway, and Preferred DNS values that you copied previously and put them in the appropriate fields.
  11. Once done, press the Save button to apply the changes.

3. Set static IP on Windows 11 using Windows PowerShell

It is also possible to set the static IP address using Windows PowerShell built inside Windows 11 PC, but there is a catch! Using the Windows Powershell, you cannot set the current IP address to static. To fix this, you need to change the last digit of the IP address to something else.

  1. Press the Windows key to launch the Start menu. Type PowerShell in the search bar on top and select Run as administrator from the results section. Run Powershell as administrator
  2. Type the following command in the PowerShell window and press the Enter key to execute it. Get-NetIPConfiguration Get Network configuration details using Windows Powershell
  3. Now note down the following details from the information section: InterfaceIndex, IPv4Address, IPv4DefaultGateway, DNSServer
  4. Now execute the command and replace the square bracketed placeholders with the values written earlier. Do not forget to replace the last digit of the IPv4 address with something else.
    New-NetIPAddress -InterfaceIndex [InterfaceIndex] -IPAddress [IPv4Address] -PrefixLength 24 -DefaultGateway [IPv4DefaultGateway]
  5. In the next step, type the command and press the Enter key to change the DNS server. Replace the square bracketed placeholders with the values copied earlier.
    Set-DnsClientServerAddress -InterfaceIndex [InterfaceIndex] -ServerAddresses [DNSServer]
    

    Set DNS server using Windows PowerShell

4. Set the Static IP using the Control Panel

  1. Press the Windows icon to launch the Start menu. Type cmd in the search bar and select Run as administrator option from the results section. Launch command prompt in administrator mode
  2. Choose Yes from the User Action Control prompt to provide administrative privileges to the Command Prompt.
  3. Type ipconfig /all and press Enter. Make a note of the following details:  IPv4 Address, Subnet Mask, Default Gateway, and DNS Servers Execute ipconfig command
  4. Now exit the command prompt window and launch the Start menu by pressing the Windows key. Type Control Panel in the search bar and launch the app from the search results.
  5. Set View by to Category and choose Network and Internet from the window. Choose Network and Internet option from the control panel
  6. Select Network and Sharing Center from the next window. Choose network and sharing center
  7. Choose Change adapter settings from the left menu bar. Change adapter settings
  8. Right-click the Network Adapter and select Properties from the context menu. Choose Properties of Wifi
  9. Select Internet Protocol Version 4 (TCP/IPv4) and click the Properties button. Select IPv4 Properties
  10. Enable the radio button next to Use the Following IP Address and enter your IP Address, Subnet Mask, Default Gateway, and DNS Servers. Enable use the following IP address option
  11. Press the OK button to save the changes and to set your static IP address.

Conclusion

These are all the methods by which you can change the static IP address on your Windows 11 PC. Setting a static IP address on a Windows 11 PC is an uncomplicated task, and it ensures that the local IP address remains the same throughout.

If you have any questions regarding the same, do let us know in the comments section below.

If you've any thoughts on How to Set a Static IP Address on Windows 11?, then feel free to drop in below comment box. Also, please subscribe to our DigitBin YouTube channel for videos tutorials. Cheers!

Share
Taiba Hasan
A postgraduate in Computer Applications with over three years of experience as a technical writer, she loves to craft content revolving around Windows, Android, and trendy technologies like SaaS and AI. Focused on writing in-depth research content. Her area of interests are listicles, how-to, and troubleshooting guides.

Leave a Reply

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