Setting a static IP address in Windows 10 assigns a fixed, unchanging address to your computer on your local network. This is useful for port forwarding, network printers, file sharing, or when you need to reliably access a device by its IP. You’ll be working in the Network Settings panel; no additional software is needed.
What You’ll Need
- Administrator access to the Windows 10 PC (you’ll need to confirm a UAC prompt).
- The IP address you want to assign (e.g., 192.168.1.50).
- The subnet mask (usually 255.255.255.0 for home networks).
- The default gateway (your router’s IP, often 192.168.1.1).
- A preferred DNS server (your router’s IP or a public DNS like 8.8.8.8).
Step-by-Step
- Open Network Settings: Click the Start button, then click the Settings gear icon. Alternatively, press Windows + I.
- Go to Network & Internet: In Settings, click Network & Internet.
- Choose your connection type: In the left sidebar, click Ethernet if you’re using a wired connection, or Wi-Fi if you’re using wireless. (For Wi-Fi, you may need to click on your connected network name first.)
- Open adapter properties: Click Change adapter options at the top of the page. This opens the classic Control Panel window showing your network adapters.
- Open the adapter’s properties: Right-click on the adapter you’re using (e.g., “Ethernet” or “Wi-Fi”) and select Properties. If prompted by User Account Control, click Yes.
- Select Internet Protocol Version 4 (TCP/IPv4): In the list, scroll down and click on Internet Protocol Version 4 (TCP/IPv4) to highlight it. Do not uncheck it. Then click the Properties button.
- Enter your static IP details: In the new window, select the radio button “Use the following IP address:” and fill in the fields:
- IP address: Enter the static IP you chose (e.g., 192.168.1.50).
- Subnet mask: Enter 255.255.255.0 (for most home networks).
- Default gateway: Enter your router’s IP (e.g., 192.168.1.1).
- Set DNS servers (optional but recommended): At the bottom, select “Use the following DNS server addresses:” and enter a preferred and alternate DNS. You can use your router’s IP (e.g., 192.168.1.1) or public DNS like 8.8.8.8 and 8.8.4.4.
- Validate and save: Click OK on both windows. Windows will run a network diagnostic to ensure the settings work. If you see a warning about the gateway not being reachable, double-check your gateway IP. Click Close when done.
- Verify the change: Open Command Prompt (press Windows + R, type
cmd, press Enter) and typeipconfig. Look for your adapter; the IP address should now be the static one you set. You can also test connectivity by pinging your gateway:ping 192.168.1.1.
Common Mistakes
- Using an IP outside your subnet: The static IP must be in the same range as your router (e.g., if your router is 192.168.1.1, use 192.168.1.x). Using a different subnet (like 10.0.0.x) will break connectivity.
- IP address conflict: Assigning an IP that is already in use by another device (like your phone or another computer) will cause intermittent disconnects. Always pick a high number (e.g., .50 or above) that’s less likely to be assigned by DHCP.
- Forgetting the gateway: If you leave the default gateway blank, you won’t be able to access the internet or other networks.
- Incorrect subnet mask: Using 255.255.255.255 will only allow communication with your own IP, not the network. Stick to 255.255.255.0 for most home setups.
- Editing the wrong adapter: If you have both Ethernet and Wi-Fi, make sure you’re editing the one that’s actively connected. Editing the wrong one will have no effect.
Tips
- Reserve the IP in your router: Instead of setting a static IP on your PC, you can set a DHCP reservation in your router’s admin panel. This assigns a fixed IP based on your PC’s MAC address, which is more reliable and avoids conflicts.
- Use a high IP number: Choose an IP like 192.168.1.100 or higher. This reduces the chance of conflict with devices that get automatic IPs from DHCP, which often start at .2 and go up.
- Write down your settings: Keep a note of the IP, subnet mask, gateway, and DNS you used. You’ll need them if you ever need to revert to DHCP or troubleshoot.
- Test after a reboot: After setting a static IP, restart your PC to ensure the settings persist and everything still works.
Troubleshooting
No internet after setting static IP: First, check that your gateway IP is correct. Open Command Prompt and run ipconfig to see your default gateway. Ping it with ping [gateway IP]. If that fails, check your cable or Wi-Fi connection. Also, verify that your DNS servers are correct; try using 8.8.8.8 as a test.
IP address conflict warning: Windows may show a popup about an IP conflict. This means another device is using the same IP. Change your static IP to a different one (e.g., from .50 to .60). You can also check your router’s DHCP client list to see which addresses are taken.
Can’t reach other devices on the network: Make sure your subnet mask is 255.255.255.0 and your IP is in the same subnet as the other devices. If you’re using a different subnet, devices won’t see each other.
Settings revert to DHCP after reboot: This usually happens if you didn’t click “OK” on the IPv4 properties window. Go back and re-enter the settings, making sure to click OK on both windows. Also, check if any third-party security software is resetting network settings.
Can’t open the adapter properties: If you get an error when opening properties, try running Windows Network Diagnostics by right-clicking the network icon in the system tray and selecting “Troubleshoot problems.” If that doesn’t work, restart your PC and try again.
Frequently Asked Questions
What is a static IP address?
A static IP address is a fixed, manually assigned IP that doesn’t change. In contrast, a dynamic IP is assigned automatically by your router’s DHCP and can change over time.
Will a static IP improve my internet speed?
No. A static IP does not increase bandwidth or latency. It only ensures the address stays the same, which is useful for remote access, port forwarding, or hosting services.
Do I need a static IP for gaming?
Not usually. For gaming, a dynamic IP is fine. You might need a static IP for port forwarding to host a server, but many routers support port forwarding with dynamic IPs as long as the IP doesn’t change. A DHCP reservation is often easier.
Can I set a static IP on a laptop that moves between networks?
Yes, but you’ll need to switch back to DHCP when you connect to a different network, otherwise you’ll have connectivity issues. It’s usually better to use DHCP for laptops and set a reservation on your home router.
How do I revert to automatic (DHCP) IP?
Follow the same steps to open the IPv4 properties, select “Obtain an IP address automatically” and “Obtain DNS server address automatically,” then click OK. This will restore dynamic IP assignment.
What is the difference between IPv4 and IPv6?
IPv4 is the traditional 32-bit address format (e.g., 192.168.1.1). IPv6 is the newer 128-bit format (e.g., 2001:0db8::1). Most home networks use IPv4. You can set a static IPv6 address similarly, but it’s rarely needed for home use.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Fix Error 0x8007025d in Windows 10
- Fix Alexa App Stuck on Setup
- Android Camera for 7 Office Tasks: Step-by-Step
- Pair Phone to Pioneer Stereo After Bluetooth Reset
- Fix Windows Not Saving Remote Desktop Credentials
- Remove Malware from Windows PC & Restore Accounts