When you connect your computer to your router/modem, it will automatically assign an IP address to your PC using the DHCP server installed on your network device.
If you wish assign a static IP address to your PCyou will need to configure the router or do a simple operation through the system settings.
When it comes to static IP it is important to know the difference between public static IP and local static IP. The first is assigned by the provider and is generally used on servers or devices that require a remote connection, while the second is used in home or business networks and is mainly used to identify and connect a specific computer or device to the network.
In this article I will tell you about how to assign a static IP address to the PC locally and I’ll show you all the steps to do to do this through the Windows 10 or Windows 11 settings.
How to assign a static IP address
As written at the beginning you can assign a static IP address to your computer in two ways: by configuring the router or using the Windows settings.
If you decide to configure the router, you must know that the procedure to carry out varies according to the type of modem/router you are using, I will explain how to do it broadly in the last chapter of this article, instead in the following paragraphs I will explain in detail how to configure a static IP address on Windows 10 and Windows 11 using the system settings.
Before proceeding, however, it is important to clarify the IP address to use. It is essential never to use the same IP address on two different devices, as this procedure will cause a conflict and consequently a malfunction of the network.
The static IP address must consist of 4 triplets of numbers, the first three triplets must be identical to those of the default gateway, the fourth triplet instead can have a value ranging from 1 to 253 (obviously you must exclude the one already assigned to the router /modem or any other device on the network). If the gateway has the following address: 192.168.1.1, you can assign the PC an IP address ranging from 192.168.1.253.
On Windows 10
For Configure a static IP on Windows 10first you will need to know the gateway address, i.e. the IP address of your modem/router, generally it should be 192.168.1.1 or 192.168.0.1, but to be sure, I suggest you do the following.
- Press the keys on the keyboard WIN+R;
- In the small window that opens, type “cmd”then click the button “OK” or press ENTER;
- Type the following command in the prompt window:
ipconfig
Awards ENTER.
At this point, various information will be shown including the address of the default gateway.
Now you’re ready to assign a static IP to your computer, here’s how:
- Log in to “Settings” of Windows by pressing from the keyboard WIN + I or alternatively, click on the Start button and then click on the gear icon;
- Click on the entry “Network and Internet”;
- Click on the entry “Change tab options”;
- In the window that opens, right-click on the icon “Ethernet” or “Wifi” (the voice changes according to the type of connection you are using);
- From the context menu that opens, click on the item “Property”;
- Select the item “Internet Protocol Version 4(TCP/IPv4)”then click the button “Property”;
- Select option “Use the following IP address”;
- In the field “IP address” type the IP address you want to assign to the computer, in the next field type the “Subnetmask” (generally it is 255.255.255.0), finally type the address of the “Default gateway” which you saw through the command prompt.
- As for DNS servers, I suggest you use the ones provided by Google (preferred DNS server 8.8.8.8secondary DNS server 8.8.4.4) alternatively you can choose the DNS server you prefer, for more information on the subject I suggest reading the article “The best DNS servers”.
- Click on “OK”.
On Windows 11
For assigning a static IP address on Windows 11 the procedure to carry out is really very simple, but also in this case you will first need to know the address of the default gateway, to do this the procedure to be carried out is identical to that seen in the previous chapter:
- Press the keys on the keyboard WIN+R;
- In the small window that opens, type “cmd,”then click the button “OK” or press ENTER;
- Type the following command in the prompt window:
ipconfig
- Awards ENTER.
Among the various information shown, write down the address next to the item “Default gateway”.
Now the steps to carry out are the following:
- Press from keyboard WIN + I to access the “Settings” Windows, alternatively right-click on the Start button and then click on the item “Settings”;
- From the left side menu, select the item “Network and Internet”;
- Click on the entry “Advanced network settings”;
- Click on the entry “Ethernet” or “Wifi”also in this case the item changes according to the type of connection you are using;
- Click on the entry “View additional properties”;
- Click the button “Edit”present next to the entry “IP Assignment”;
- From the drop-down menu in the small window that opens, select the option “Manual”;
- In the field below the item “IP address” type the IP address you want to assign to the computer, then type the “Subnetmask” (generally 255.255.255.0) and finally enter the address of the “Default Gateway”.
- At this point, before concluding the procedure you will need to assign the DNS servers, also in this case I suggest you use those provided by Google (preferred DNS server 8.8.8.8secondary DNS server 8.8.4.4);
- Click on “Save”.
Assign a static IP address by configuring the router
As written at the beginning, you can decide to assign a static IP to the PC by configuring your router/modem. In this case, unfortunately, the steps to be taken are not standard and vary according to the router/modem model, so it is impossible to write a detailed guide.
In most cases however, you will need to know the gateway address and MAC address to perform the procedure. To view them:
- Awards WIN+R;
- Type “cmd”, then click the button “OK” or press ENTER;
- In the prompt window type the following command:
ipconfig/all
- Awards ENTER.
Write down the addresses next to the entry “Physical address” And “Default gateway”.
At this point you will need to access the router/modem, to do so type the address of the default gateway in the address bar of your browser. Enter the username and password of your router/modem and then access the “Network Settings” From this area you can assign the static IP address to your computer.