How to set static IP on Windows
Complete guide with multiple methods and troubleshooting for setting static IP on Windows.
7-10 min read
Expert Verified
Last Updated: August 2025
Quick Answer
Setting a static IP address on Windows is essential for ensuring consistent network connectivity. This guide provides detailed, step-by-step instructions for configuring a static IP address across different Windows versions.
Medium⏱ 7-10 min read
Prerequisites & Requirements
Before setting a static IP address, ensure you meet the following requirements:
- •A computer running Windows 10 or Windows 11.
- •Administrator access to modify network settings.
- •Knowledge of the network configuration, including the desired IP address, subnet mask, default gateway, and DNS server addresses.
- •Backup important network settings or configurations in case of errors.
Method 1: Using the Network & Internet Settings
This method is the most straightforward way to set a static IP address through the Windows GUI.
- •Step 1: Click on the Start menu and select 'Settings' (gear icon).
- •Step 2: Navigate to 'Network & Internet'.
- •Step 3: Select 'Status' from the left pane, then click on 'Change adapter options'.
- •Step 4: Right-click on your active network connection (e.g., Ethernet or Wi-Fi) and select 'Properties'.
- •Step 5: In the 'Networking' tab, select 'Internet Protocol Version 4 (TCP/IPv4)' and click 'Properties'.
- •Step 6: Select 'Use the following IP address' and enter your desired IP address, subnet mask, and default gateway.
- •Step 7: Select 'Use the following DNS server addresses' and enter your preferred and alternate DNS servers.
- •Step 8: Click 'OK' to save changes, then 'Close' to exit the properties window.
- •Step 9: To verify, open Command Prompt and type 'ipconfig'. Check that the IP address matches your settings.
For Windows 11
Windows 11 has a slightly different interface but follows the same basic steps.
- •Step 1: Click on the Start menu and select 'Settings'.
- •Step 2: Go to 'Network & internet'.
- •Step 3: Click on 'Advanced network settings'.
- •Step 4: Under 'More settings', click 'Network and Sharing Center'.
- •Step 5: Follow the same steps as outlined for Method 1.
For Windows 10
Windows 10 users will find the steps similar, with minor interface differences.
- •Step 1: Click on the Start menu and select 'Settings'.
- •Step 2: Navigate to 'Network & Internet'.
- •Step 3: Click on 'Status' and then 'Change adapter options'.
- •Step 4: Follow the same steps as outlined for Method 1.
Method 2: Using Command Prompt
This method is useful for advanced users who prefer command-line operations.
- •Step 1: Press 'Windows + R' to open the Run dialog, type 'cmd', and press 'Enter' to open Command Prompt.
- •Step 2: Type the following command to set a static IP address: 'netsh interface ip set address name="[Your Network Connection Name]" static [IP Address] [Subnet Mask] [Default Gateway]' and press 'Enter'.
- •Step 3: To set DNS servers, type: 'netsh interface ip set dns name="[Your Network Connection Name]" static [Preferred DNS]'.
- •Step 4: Verify the settings by typing 'ipconfig' and checking the output.
Troubleshooting Common Issues
If you encounter issues while setting a static IP, consider the following solutions:
- •Error: 'IP address already in use' - Solution: Ensure the IP address you are trying to assign is not already assigned to another device on the network.
- •Issue: Unable to connect to the network after setting a static IP - Fix: Double-check the subnet mask and gateway settings to ensure they are correct.
- •Problem: Changes not taking effect - Workaround: Restart your computer or disable and re-enable the network adapter.
Advanced Tips & Shortcuts
For power users, here are some additional tips:
- •Keyboard shortcut: 'Windows + X' - Opens the Quick Link menu for quick access to network settings.
- •Command line: 'ipconfig /all' - Displays all current TCP/IP network configurations.
- •Hidden feature: Use 'netsh interface ipv4 show config' to view detailed configuration for all network interfaces.
Common Mistakes to Avoid
Avoid these common pitfalls:
Expert Tips
For the best results, always document your network settings and changes.