There are a ton of reasons why someone would want a static IP address. If you want to know how to set a static IP address, you are in the right place. If you want to have a file server or host a static website IP address, it will be of great help to you.
So what is the static IP address? How to configure it? We will answer all of these questions in this article.
What is a static IP address?
An IP address is a unique string of numbers that is given to all devices connected to a network. Basically, it acts as your home address and allows other network devices to share information with your computer. A static IP address is an immutable IP address that is manually assigned to your device instead of being automatically assigned by DHCP.
Configuring static IP addresses reduces costs and maintenance. It is also suitable for online gaming, network printers, and port forwarding to a specific device. Indeed, as the IP address never changes, other devices know how to easily communicate with your device.
How to set a static IP address?
We have done a lot of research to give you the best ways to set a static IP address in Windows 10. Even if you are using older versions of Windows, we have what you need. I know this method seems long but it is very simple.
Method 1: Using Control Panel
This is the easiest way to configure a static IP address. It will work under Windows 10, 8.1, 8 and 7. Just follow these simple steps.
- Simultaneously press the Windows and R keys to launch the runtime dialog. Type cmd and press Enter to launch the command prompt. You can also search for and launch a command prompt from the Start menu.
- Once you have opened, type ipconfig / all.
- On the command line, make sure you can find the IPV4 address, subnet mask, default gateway, and DNS servers. If the DNS server is the same as the default gateway, you must find the correct DNS IP address. Call your local ISP to find out.
- Move the command prompt to any corner of the screen for step 10.
- Go to the Start menu, locate the Control Panel and launch it.
- Under Network and Internet, you can find View Network status and tasks.
- On the left side of the resulting window, you can find the option to change the settings of the adapter.
- Right click on your Internet connection and select Properties.
- Under properties you can find Internet Protocol Version 4 (TCP / IPv4). Select this and open the properties. Make sure the contents of the command prompt are visible to you.
- Click on Use the following IP address.
- Fill in the boxes with the relevant data. For the IP address, use the same IP address except for the last 3 digits. Change this to 200 because it is unlikely that it will automatically be assigned that way. For example; if your dynamically assigned IPV4 address is 192.168.43.8, you can come in 192.168.43.200.
- The subnet mask must be filled when you click on its input box. You can confirm this in the command prompt window.
- Fill in the default gateway without any changes.
- You can use the DNS servers in the command window. But you can also use Open DNS servers. To do this, type 208.67.222.222 in the preferred DNS server box and 208.67.220.220.
- Check the validation settings before applying any changes.
Here is a video showing the same process.
Method 2: Using the Command Prompt
If you want to know how to set a static IP address from a command prompt, follow these steps.
- Just like the previous method, run the Run dialog. Type cmd and press Enter to launch the command prompt. You can also search for and launch a command prompt from the Start menu.
- Once you have opened, type ipconfig / all.
- On the command line, make sure you can find the IPV4 address, subnet mask, default gateway, and DNS servers. If the DNS server is the same as the default gateway, you must find the correct DNS IP address. Call your local ISP to find out.
- Enter the order netsh interface ip set address name = “Wireless LAN Adapter” Wireless Network Connection “static 192.168.43.200 255.255.255.0 192.168.43.31 . Make sure your network adapter is in control instead of “Wireless LAN Adapter Connection”. Also enter your IP address, subnet mask and default gateway address instead of “192.168.43.200 255.255.255.0 192.168.43.41“. Press Enter after typing the command.
- Type netsh ip interface set dns name = “Wireless Network Card – Wireless Network Connection” static 208.67.222.222 and press Enter. Again, make sure you have the name of your preferred adapter and DNS server.
- Enter the order interface netsh ip add name dns = “Wireless LAN adapter, wireless network connection” 208.67.220.220 index = 2.
- Close the command prompt and make sure your internet connection is working well. Now you can use your static IP address according to your needs.
Method 3: Using PowerShell
If you want to set a static IP address with PowerShell, follow these steps. Note, however, that this will only work on Windows 10, 8.1, and 8. This will not work on Windows 7 or earlier, even if PowerShell is installed.
- Look for PowerShell in the Start menu. Right click on it and open it as administrator.
- Type the command Get-NetIPConfiguration and press Enter.
- Under InterfaceAlias, you can find InterfaceIndex, IPv4Address, IPv4DefaultGateway and Dns server. Take note of these.
- type New-NetIPAddress -InterfaceIndex 4 -IPAddress 192.168.43.200 -PrefixLength 24 -DefaultGateway 192.168.43.31. Make sure to replace the values of InterfaceIndex, IPv4Address and IPv4DefaultGateway with your values.
- To set the DNS server, simply enter Set-DnsClientServerAddress -InterfaceIndex 4 -ServerAddresses 208.67.222.222. To set an alternative DNS, type the previous command, separate it with a comma, and then type the alternate DNS. My example would look like Set-DnsClientServerAddress -InterfaceIndex 4 -ServerAddresses 208.67.222.222, 208.67.220.220.
- That’s all we can say about it.
Method 4: Using Settings in Windows 10
- Open the settings and click Network and Internet.
- If you are using WiFi, open the WiFi settings. If you are using Ethernet, open its settings.
- Select the desired connection and click Edit under IP Assignment.
- Select Manual.
- Then enable IPV4.
- Define all values as in all other methods. For the subnet prefix length, if your subnet mask is 255.255.255.0, set it to 24.
- Tap Save and check if your internet is working.
Also check: How Many Pints In A Gallon?
Final catch
These are all methods that can be used to set a static IP address. Do not forget that if something goes wrong and you can not access the Internet anymore, follow steps 5 through 9 of Method 1 and choose Obtain IP address automatically. Now that this is fixed, if you have any doubts or suggestions, please delete them in the comment section below.