Static Internet Protocol(IP) Address is basically a constant and it does not change its address under any circumstances. This is very useful if you have a web hosting server and you want your customer / clients to find you easily. Static IP address is assigned to every device and it is been provided by the network company. Static IP address has its own advantages such as easy remote access, hosting a server, better communication for voice over internet protocol, etc. This is beneficial if many employees work remotely via VPN and can effectively carry out their work. If you have got a static IP address and wondering how to set it on your system, then this post will be helpful to you.
How to Manually Set a Static IP Address in Windows 11
1 – Open command prompt
2 -Run ipconfig /all command in it.
3 -Now, If you are using WiFi , then look for Wireless Lan adapter section , otherwise if you are using Internet Via LAN, then locate Ethernet adapter section.
Now, Note down the following values:-
- IPV4Address
- Subnet mask
- Default gateway.
4 – Now, search ncpa.cpl in search box and click on it.
5 – Now, right click on your adapter with which you are connected to internet.
6 -Click on Properties.
7 -Now, double click on Internet protocol version 4 (IPV4)
8 – Now, Enter all the details like IP Address , Subnet mask and default gateway in respectivbe fields.
Also, Enter DNS server address as per your choice.
You can use Google DNS in the DNS fields.
8.8.8.8
8.8.4.4
9- Click ok and close the windows.
You are done.
How to Manually Set a Static IP Address in Windows 11 using Command Prompt
Step 1: Press Windows + R keys together on your keyboard to open Run dialog box.
Step 2: Type cmd in the run dialog box and hit the CTRL + SHIFT + Enter keys together to open Command prompt as admin.
Step 3: Then, Click Yes on the UAC prompt to proceed.
Step 4: Copy and Paste the following command in the command prompt and hit the Enter key to view all the IP configurations on your system.
ipconfig /all
Step 5: Next, Modify, Copy and then Paste the following command in the command prompt.
Step 6: Press Enter key on your keyboard to execute the command to assign the static ip address.
netsh interface ip set address name="Wi-Fi" static 10.1.2.220 255.255.255.0 10.1.2.1
NOTE : Replace Wi-Fi with your network adapter name on your system and 10.1.2.220 255.255.255.0 10.1.2.1 with the static ip address, subnet mask and gateway address respectively provided by your network company.
Step 7: Also, execute the command given below to set the DNS Server address.
NOTE: replace Wi-Fi with your network adapter name and also replace 10.1.2.1 with the DNS server address for your system.
netsh interface ip set dns name="Wi-Fi" static 10.1.2.1
Step 8: If you want to add the alternate DNS server address, then copy and paste the below command and hit the Enter key.
NOTE: Replace Wi-Fi with your network adapter name and also, 8.8.8.8 with the alternate DNS server address on your system.
netsh interface ip add dns name="Wi-Fi" 8.8.8.8 index=2
Step 9: After executing the commands, please close the command prompt.
That’s it.
This is how you can set the static ip address on your system using command prompt.
How to Manually Set a Static IP Address in Windows 11 using Settings app
Step 1: Press Windows + I keys together to open the Settings app directly.
Step 2: Then, Click Network & internet on the left side of the Settings app window.
Step 3: On the right side of the Settings window, Click Wi-Fi option as shown in the below screenshot.
NOTE:- If you are connected to the Ethernet connection, then click Ethernet option in place of Wi-Fi.
Step 4: Click on current Wi-Fi Properties as shown below.
Step 5: Click Edit button of IP assignment on the Wi-Fi properties page.
Step 6: Select Manual from the dropdown list as shown below.
Step 7: As you select Manual option, you will get two toggle buttons named IPv4 and IPv6.
Step 8: Click on IPv4 toggle button to turn it On.
Step 9: Then, you will get a few textboxes where you need to enter the values.
Step 10: Enter IP address, Subnet mask and Gateway values provided by your network service provider in their respective textboxes.
Step 11: Click Save button to apply changes for the Wi-Fi adapter as shown in the below image.
Step 12: At last Close the Settings window.
This way you can set the static IP address on your system using Settings app.
How to Manually Set a Static IP Address in Windows 11 using PowerShell application
Step 1: Press Windows + R keys together on your keyboard to open Run dialog box.
Step 2: Type powershell in the run dialog box and hit the CTRL + SHIFT + Enter keys together to open PowerShell application as admin.
Step 3: Then, Click Yes on the UAC prompt to proceed.
Step 4: Copy and paste the below given command and hit the Enter key.
Get-NetIPConfiguration
Step 5: Execute the below command by replacing 5 with the corresponding InterfaceIndex of your network adapter and replace other factors 10.1.2.220 , 24 and 10.1.2.1 with the ones provided by your network service.
New-NetIPAddress -InterfaceIndex 5 -IPAddress 10.1.2.220 -PrefixLength 24 -DefaultGateway 10.1.2.1
Step 6: Then, Copy and paste the below command and hit the Enter key.
NOTE: Replace 5 with the corresponding InterfaceIndex of your network adapter and also replace 10.1.2.1 with your DNS server address for your system.
Set-DnsClientServerAddress -InterfaceIndex 5 -ServerAddresses 10.1.2.1
Step 7: At last, execute this command by replacing 5 with the corresponding InterfaceIndex of your network adapter and 10.1.2.1, 8.8.8.8 for assigning alternate DNS server address.
Set-DnsClientServerAddress -InterfaceIndex 5 -ServerAddresses 10.1.2.1, 8.8.8.8
Step 8: Finally, Close the PowerShell application.
That’s it guys.
Hope this article was informative and helpful.
Please leave us comments below for any clarifications needed.
Thank you!