When you connect to a network, your device automatically gets an IP address from the DHCP server. However, you are also able to assign an IP address to your PC manually. So stay with me till the end of the session; I will show you how to set a static IP address in Windows 11.
IP, or in a full form Internet Protocol address, is a unique identification number separated by dots or periods and is used to let the devices communicate with each other on the network.
The dynamic IP address often changes from time to time. On the other hand, the static IP address does not change until you change it manually. If you have a remote connection or set your computer as a server, the static IP address works much better than the dynamic one.
In the following article, I will assign a static IPV4 address to my PC running Windows 11 using the Settings app, Control Panel, and Command Prompt.
Related: How to find MAC Address in Windows 11
First method: Set the static IP address on Windows 11 from the settings
The first easy way to configure your PC’s IP address is via the setting app. But first of all, you need to find out the current configuration of your networks, like the default gateway address and name of the adapter, because you will need those details later.
Open Command Prompt and write IpConfig and enter.
Now that you have taken note of your current network configuration follow the steps below to change your computer’s IP address.
- Open the Settings app from Start Menu or press Windows + I buttons.
- Click on the Network and Internet from the left-side.
- Alternatively, right-click on the Network icon in the taskbar and click on the Network and Internet settings.
- In the Network and Internet page, click on the properties.
- Scroll down and click on the Edit button in front of the IP Assignment.
- A small window pops up; change the Automatic (DHCP) to Manual. Now select which types of IP version you want to assign to your computer.
- Here I turn on the IPV4 and set my static IP address (192.168.1.10), Subnet mask (255.255.255.0), default gateway (192.168.43.1), and preferred DNS (8.8.8.8).
Note: The Default Gateway must be the same address you received from your ISP. The DNS address can be the address of any DNS server. People mostly use the DNS server of google, which is 8.8.8.8. Additionally, make sure to set an IP address out of DHCP scope.
- After you set the static IP address, default gateways, and DNS address, click on the Save button. You will be disconnected for a short period, and soon you will reconnect.
Second Method: Assign a static IP address from the Control Panel
The Control Panel is the second method to set a static IP address on your PC.
- Open the Control panel and click on the Network and Internet.
- Click on the Network and Sharing Center.
- In the Network and Sharing Center windows, click on the active network you want to change their IP address.
- In the Wi-Fi status window, click on the properties.
- Select the Internet Protocol Version (TCP/IP4) and click on the properties.
- Select the radio button ‘Use the following IP address and enter the desired IP address, subnet mask, and gateway. Additionally, set static DNS address as well.
- After you have assigned all the addresses, click the OK button.
That is it! Using the Control Panel, you successfully assigned a static IP address to your computer.
Third method: How to set static IP address with Command Prompt
Another easy and quick way to configure your PC’s IP address is from the Command Prompt.
- Run the command prompt as administrator from the Start Menu or search box.
- If you do not know the default gateway and current network configurations, write the IPConfig /all command to see the current configuration and take note of them.
- Now write the following command and enter.
Netsh Interface IP set address name =" Network Name" static NewIPAddress Subnet Mask Default gateway
Remember! Write the name of your network instead of the ‘Network Name.’ Your IP address must not be in the scope of the DHCP server. The default gateway address must also be the same as the ISP address.
- You assigned the static IP address successfully. Now let’s assign a static DNS address for the DNS server.
Netsh interface IP set DNS name =" Network Name" static DNS Address
To conclude,
the above paragraphs discussed the IP configuration in Windows 11 and 10. I hope you enjoyed it and can share your thoughts and questions in the comment section.
Related: How to backup and restore full system in Windows 11?