Step-by-Step Guide to Assign a Static IP Address in Windows 10 and 11

Key Notes

  • Static IP addresses are useful for network troubleshooting and device recognition.
  • Windows offers multiple methods to assign static IPs, including Settings, PowerShell, CMD, and Control Panel.
  • After changing settings, always verify your internet connectivity.

How to Assign a Static IP Address on Windows 10 and 11: Your Complete Guide

This guide will help you assign a static IP address on your Windows 10 or 11 PC with detailed steps across various methods.

1. Assign a Static IP Address via Settings

This is the simplest method for Windows 10/11:

Step 1: Open the Settings Menu

Press Win + I to launch the Settings page.

Step 2: Navigate to Network Settings

Select Network & Internet from the menu on the left.

Step 3: Choose Your Connection Type

If using a wired connection, select Ethernet ; if using wireless, select WiFi.

Step 4: Access IP Assignment Settings

Click on the device you’re using to connect and select the Edit button next to IP Assignment.

Step 5: Configure Your Static IP

In the pop-up window, select Manual, enable the IPv4 option, and input your static IP address along with the subnet prefix (usually ’24’) and gateway address (for instance, ‘10.1.2.1’).You can also add DNS details if you have them.

Step 6: Save Your Settings

Click Save and restart File Explorer. Finally, open your browser to verify the connection.

Pro Tip: Always test your new settings to ensure connectivity.

2. Utilize PowerShell to Set a Static IP

If you prefer command line tools, here’s how to assign a static IP with PowerShell:

Step 1: Open Windows Terminal as Administrator

Right-click the Windows icon and select Windows Terminal (Admin).

Step 2: View Current Network Configuration

Type Get-NetIPConfiguration to check your network setup.

Step 3: Note Configuration Details

Document your InterfaceIndex, IPv4Address, IPv4DefaultGateway, and DNSServer.

Step 4: Set Your Static IP Address

Run the command: New-NetIPAddress -InterfaceIndex 5 -IPAddress 192.168.202.149 -PrefixLength 24 -DefaultGateway 192.168.202.15.

Step 5: Configure Static DNS Servers

To set a DNS server, use Set-DnsClientServerAddress -InterfaceIndex 5 -ServerAddresses 192.168.202.15. For a secondary DNS, add another address like this: Set-DnsClientServerAddress -InterfaceIndex 5 -ServerAddresses 192.168.202.15, 8.8.8.8.

Pro Tip: Always ensure your IP and DNS are valid and reachable.

3. Configure via Command Prompt

For users on Windows 10 and earlier, CMD can assist in setting a static IP:

Step 1: Start Command Prompt as Administrator

Launch Command Prompt with admin rights by searching for it and right-clicking to select Run as administrator.

Step 2: Check Configuration

Enter ipconfig /all to view your current configuration, noting the IPv4, Subnet mask, Default Gateway, and DNS Servers.

Step 3: Assign the Static IP

Use the following command: netsh interface ip set address name="Wi-Fi" static 192.168.202.149 255.255.255.0 192.168.202.15.

Step 4: Set the DNS Server

Execute netsh interface ip set dns name="Your Interface Name" static Your_DNS_Server_Address to configure the DNS.

Pro Tip: Make sure interface names match your system for smooth execution.

4. Set a Static IP via Control Panel

For users who prefer a graphical interface, the Control Panel option is available:

Step 1: Access the Control Panel

Open Control Panel through the start menu or search bar.

Step 2: Navigate to Network Settings

Select Network & Internet, then Network and Sharing Center.

Step 3: Change Adapter Settings

Click on Change adapter settings on the left pane.

Step 4: Set Adapter Properties

Right-click your current adapter (either Ethernet or Wi-Fi), and select Properties.

Step 5: Configure IPv4 Settings

Double-click on Internet Protocol Version 4 (TCP/IPv4), enable Use the following IP address, and input your IP address, subnet mask, and gateway.

Step 6: Finalize Your Settings

Enable Use the following DNS server addresses, input your preferred and alternate DNS, and hit OK to save.

Pro Tip: After saving, always restart your computer to apply the new settings.

Summary

This guide provided comprehensive methods to assign a static IP address in Windows 10 and 11, including using Settings, PowerShell, CMD, and Control Panel. Each method has been designed to cater to various user preferences, ensuring improved connectivity and device recognition.

Conclusion

Having a static IP address can enhance your networking experience, especially in troubleshooting and device identification scenarios. By following the methods outlined above, users can easily configure static IP addresses on their Windows 10 and 11 devices. Always ensure to verify your settings afterward, as connectivity is paramount.

FAQ (Frequently Asked Questions)

What is a static IP address?

A static IP address is a permanent Internet Protocol address assigned to a computer or device. It does not change and allows for easier access to that device within a network.

How do I check my current IP address?

You can check your IP address by opening Command Prompt and typing ipconfig. This will display your current network settings.

Can I set a static IP on a laptop?

Yes, you can set a static IP address on any computer or laptop, whether it’s connected through Ethernet or Wi-Fi.