How to Set a Static IP on Windows 10/11 for Gaming & More
Discover why a static IP is essential for gaming, file sharing, printers, remote access, and IoT. Follow our step‑by‑step Windows 10/11 guide to set a fixed address, enabling reliable port forwarding and seamless network connections. This setup ensures your gaming server stays online, your media libraries remain reachable, and your smart devices stay connected without address changes. No more IP conflicts or connection hiccups.

Why You Need a Static IP on Windows 10/11
Ever wondered why some gamers swear by a static IP? It’s not just about the numbers; it’s a steady anchor in a sea of shifting addresses. When your console or PC keeps getting a new address, your friends can’t join, and your server feels like a ghost town. A fixed address is like a home address for your device, making port forwarding and file sharing feel as easy as turning on a light.
Why a Static IP Matters
We see real‑world scenarios where stability is king:
- Gaming: A constant IP lets you host a local server without the jitter of DHCP.
- File Sharing: "\\192.168.1.20" never changes, so media libraries stay reachable.
- Printers: Office printers stay on the network, no more “printer not found” errors.
- Remote Access: IT teams can connect via VPN or RDP without hunting for a new address.
- IoT: Smart hubs and cameras avoid collisions in a busy home network.
How to Set One in Windows 10/11
- Open Settings → Network & Internet.
- Choose Ethernet (or Wi‑Fi) → click the active network.
- Under IP settings, tap Edit.
- Select Manual, enable IPv4.
- Switch the toggle to Use the following IP address and fill:
- IP address – e.g., 192.168.1.10.
- Subnet prefix length – usually 24 for a 255.255.255.0 mask.
- Default gateway – your router, e.g., 192.168.1.1.
- Preferred DNS – router or public DNS like 8.8.8.8.
- Tap Save.
Tip: Keep the chosen IP outside the router’s DHCP range to avoid conflicts.
Classic Control Panel Method
- Open Control Panel → Network and Internet → Network and Sharing Center.
- Click Change adapter settings.
- Right‑click the active adapter → Properties.
- Select Internet Protocol Version 4 (TCP/IPv4) → Properties.
- Choose Use the following IP address and enter the same fields.
- Click OK to apply.
PowerShell for the Tech‑savvy
1Get-NetAdapter | Where-Object {$_.Status -eq 'Up'} | Format-Table Name, InterfaceAlias2New-NetIPAddress -InterfaceAlias 'Ethernet' -IPAddress 192.168.1.10 -PrefixLength 24 -DefaultGateway 192.168.1.13Set-DnsClientServerAddress -InterfaceAlias 'Ethernet' -ServerAddresses 8.8.8.8,8.8.4.4Replace Ethernet with your adapter name.
Quick Verification Checklist
- Run ipconfig /all to confirm the static settings.
- Ping 8.8.8.8 for gateway connectivity.
- Ping www.google.com to test DNS.
- Use a port‑checking tool to ensure external access.
Common Pitfalls & Fixes
Problem | Cause | Fix |
|---|---|---|
Settings won’t save | Missing admin rights or conflicting services | Run as administrator or disable sharing services |
Static IP not applied on Home edition | DHCP client still active | Ensure IP is outside DHCP range or use netsh |
Gateway disappears after update | Windows resets manual config | Reapply or lock with netsh |
IP conflict | Duplicate address on network | Change to a free IP |
DNS fails | Wrong DNS entries | Verify DNS or use public DNS |
Quick FAQ
- Why does Windows revert to DHCP? Updates or services can overwrite manual settings; lock them with netsh.
- Can I set a Wi‑Fi static IP? Yes, follow the same steps or use PowerShell with the Wi‑Fi adapter alias.
- Do I need a reboot? Usually not; most changes take effect immediately.
- What subnet mask for home? 255.255.255.0 (prefix 24) is standard.
- How to find router DHCP range? Log into the router admin page; the DHCP settings page lists it.
Take Action
We’ve walked through the steps, the tools, and the common hiccups. Now, try setting a static IP on your own machine and feel the difference in stability. The next section will dive into how to secure that address with VPN and firewall tweaks for ultimate peace of mind.
Forest VPN – Secure Your Connection
If you need to protect your privacy or keep your connection stable while gaming, Forest VPN is an excellent choice. It offers fast speeds, reliable servers, and a user‑friendly interface.
- Real‑world testimonial: “I’ve been using Forest VPN for months, and it keeps my gaming connection stable even when my ISP throttles traffic.” – Alex, Seattle.
- Practical usage tip: Try the free tier to test connectivity; upgrade to the Premium plan for unlimited bandwidth and faster speeds.
- Call to action: Try Forest VPN today and enjoy a secure, private, and reliable connection. Visit https://forestvpn.com/en/ to get started.
Every time you restart your PC, that annoying ping of a new IP shows up—it's like a game of hide‑and‑seek with your router. A static IP is the anchor that keeps your device steady, especially if you’re running a game server or a shared printer. In this guide we’ll walk through the Settings app in Windows 10 and 11, the classic Control Panel, and even PowerShell for the tech‑savvy. Ready to lock in that address? Let’s dive.
Using the Settings App (Windows 10 & 11)
Launch Settings, go to Network & Internet, pick Ethernet or Wi‑Fi, then click the network you’re connected to. In IP settings hit Edit, switch to Manual, turn on IPv4, and tick Use the following IP address. Enter the following:
- IP address – e.g., 192.168.1.10
- Subnet prefix length – usually 24 for a 255.255.255.0 mask
- Default gateway – your router, like 192.168.1.1
- Preferred DNS – router or a public DNS such as 8.8.8.8
Click Save.
Classic Control Panel Method
Open Control Panel → Network and Internet → Network and Sharing Center. Click Change adapter settings, right‑click the active adapter, and choose Properties. Select Internet Protocol Version 4 (TCP/IPv4), then Properties. Pick Use the following IP address and enter the same values as above. Hit OK.
PowerShell (Advanced Users)
Identify the interface:
1Get-NetAdapter | Where-Object {$_.Status -eq 'Up'} | Format-Table -Property Name, InterfaceAliasAssign a static IP:
1New-NetIPAddress -InterfaceAlias 'Ethernet' -IPAddress 192.168.1.10 -PrefixLength 24 -DefaultGateway 192.168.1.1 -AddressFamily IPv4Set DNS:
1Set-DnsClientServerAddress -InterfaceAlias 'Ethernet' -ServerAddresses 8.8.8.8,8.8.4.4Replace Ethernet with your adapter’s name.
Netsh Command (Scriptable)
Run:
1netsh interface ipv4 set address name="Ethernet" static 192.168.1.10 255.255.255.0 192.168.1.1and
1netsh interface ipv4 set dns name="Ethernet" static 8.8.8.8 primaryVerification Methods
Check the config with ipconfig /all to confirm the IP, subnet, gateway, and DNS. Test connectivity: ping 8.8.8.8 verifies the gateway, and ping www.google.com confirms DNS resolution. Use a port‑checking tool if you’re forwarding traffic.
Troubleshooting Table
Common Error | Likely Cause | Fix |
|---|---|---|
Cannot save IP settings | Lack of admin rights or conflicting services | Run as administrator or disable conflicting services. Use PowerShell/netsh to enforce settings |
Static IP not working on Windows 10 Home | DHCP still assigns the same IP | Ensure the address is outside the DHCP range, or use netsh |
Default gateway disappears | Windows updates reset manual settings | Reapply settings or lock them with netsh |
IP conflict detected | Another device uses the same IP | Pick a free address |
DNS resolution fails | Incorrect DNS servers | Verify DNS entries or switch to a public DNS |
Frequently Asked Questions
- Why does Windows revert to DHCP after setting a static IP? Some updates or services overwrite manual settings; lock them with netsh or PowerShell.
- Can I set a static IP for a Wi‑Fi adapter? Yes, use the Settings app or PowerShell specifying the Wi‑Fi adapter’s alias.
- Do I need to reboot after changing the IP? Not always; most changes take effect immediately, but a reboot can resolve lingering issues.
We’re almost at the end of the setup journey – next we’ll explore how to secure your new static IP and keep it stable.
Want to lock down your PC’s address?
Ever tried to set a static IP and ended up lost in a maze of settings? The old‑school Control Panel feels like a relic, but it still hides powerful tools. We’ll walk through every click, turning confusion into confidence. Think of it as a treasure map that leads straight to your network’s heart. Ready to claim your static IP?
The Control Panel route
The Control Panel method is a bit more verbose, yet it offers granular control.
- First, open the Start menu, type Control Panel, and hit Enter.
- Navigate to Network and Internet, then click Network and Sharing Center.
- From there, hit Change adapter settings on the left.
- Finally, right‑click the active adapter and select Properties.
Setting the IP
- Right‑click the adapter, choose Properties, and scroll to Internet Protocol Version 4 (TCP/IPv4).
- Double‑click that to open its properties dialog.
- Check the box that says Use the following IP address and fill in the fields below.
- Enter your desired static IP, subnet mask, default gateway, and preferred DNS server.
- Toggle the option to Enable DNS suffix if you need domain resolution.
- Click OK twice to apply and close all windows.
The Settings app alternative
While the Control Panel feels nostalgic, the Settings app offers a cleaner, modern interface. Below is a quick side‑by‑side of the steps in each method:
Step | Control Panel | Settings App |
|---|---|---|
Open Network Settings | Control Panel → Network and Internet → Network and Sharing Center | Settings → Network & Internet → Ethernet/Wi‑Fi |
Access Adapter | Change adapter settings → Properties | Click the network name → Edit |
IPv4 Settings | Properties → IPv4 → Properties | Edit → Manual → IPv4 |
Apply | OK → OK | Save |
Running into permission issues?
Even with the right clicks, you may hit a wall: “You do not have permission to change this setting.” This usually means you’re not running as an administrator or a policy is blocking changes. Here’s a quick fix: right‑click Control Panel, choose Run as administrator, then repeat the steps. Open Local Group Policy Editor. Navigate to Computer Configuration → Administrative Templates → Network → Network Connections, set “Prohibit changes to LAN settings” to Not Configured. Once cleared, the IP dialog will accept your static IP.
Why bother?
After locking your IP, you’re ready to connect to a VPN without the dreaded address churn. Forest VPN lets you choose from a range of servers, and with a static IP, your connections stay consistent. Try it today and feel the difference between a flaky tunnel and a steady stream.
Advanced Configuration with PowerShell
A static IP can be essential for gaming, file sharing, network printers, and local servers. It guarantees that your device always has the same address, which is crucial for port forwarding, remote desktop, and any service that relies on a fixed endpoint.
Step‑by‑Step via the Settings App
- Open Settings → Network & Internet → Status.
- Click Change adapter options.
- Right‑click the adapter you use (e.g., Ethernet or Wi‑Fi) and choose Properties.
- Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
- Check Use the following IP address and Use the following DNS server addresses, then enter the desired values.
- Click OK twice to apply the changes.
Alternative: Control Panel Method
- Open the Control Panel and go to Network and Sharing Center → Change adapter settings.
- Right‑click the adapter → Properties.
- Double‑click Internet Protocol Version 4 (TCP/IPv4).
- Follow steps 3‑6 from the Settings‑app method.
PowerShell Commands for Advanced Users
1$adapter = 'Ethernet'2$ip = '192.168.1.42'3$prefix = 244$gw = '192.168.1.1'5$dns = @('8.8.8.8', '8.8.4.4')6
7New-NetIPAddress -InterfaceAlias $adapter -IPAddress $ip -PrefixLength $prefix -DefaultGateway $gw8Set-DnsClientServerAddress -InterfaceAlias $adapter -ServerAddresses $dnsRun the script in an elevated PowerShell window or add -ExecutionPolicy Bypass for non‑interactive use.
Quick Verification Checklist
ipconfig /all– confirms the static address, subnet mask, and gateway.ping 8.8.8.8– verifies connectivity to the gateway.ping www.google.com– tests DNS resolution.
If a command fails, double‑check the InterfaceAlias spelling; a typo such as adapater will cause the script to abort.
Troubleshooting Table
Issue | Symptom | Likely Cause | Fix |
|---|---|---|---|
IP conflict | “The requested IP address is already in use.” | Another device already uses the address. | Choose a different IP within the subnet. |
DNS failure | “Ping to a domain name fails.” | DNS servers are unreachable or mis‑configured. | Verify the |
Gateway unreachable | “Ping 192.168.1.1 fails.” | Default gateway is wrong or offline. | Confirm the |
Adapter not found | “New-NetIPAddress: Cannot find an object with the specified name.” | Wrong InterfaceAlias. | List adapters with |
FAQ
Q: Do I need to reboot after setting a static IP? A: No, the changes take effect immediately once the commands finish or the GUI dialog closes.
Q: Can I set a static IP on a Wi‑Fi adapter? A: Yes, simply use the Wi‑Fi adapter’s name (e.g., Wi‑Fi) in the commands or GUI.
Q: What if I want to revert to DHCP? A: Run Set-NetIPInterface -InterfaceAlias $adapter -Dhcp Enabled in PowerShell or uncheck Use the following IP address in the GUI.
Q: Why do I keep losing my IP after a reboot? A: Some routers reset DHCP leases on reboot. A static IP ensures your device keeps the same address regardless of the router’s DHCP state.
Next Steps
In the following section we’ll explore how to integrate these scripts into a CI pipeline for network‑centric deployments. Stay tuned!
Quick Verification Checklist and Connectivity Tests
Got a fresh static IP and feeling proud? That pride can be short‑lived if a phantom error pops up later. We’ve all been there. Let’s make sure that address stays solid as a rock.
1. Check the IP with ipconfig
Open Command Prompt and type ipconfig /all. Scan for IPv4 Address, Subnet Mask, Default Gateway, and DNS Servers. If the numbers match what you set, you’re good. If not, something’s off.
2. Ping the Gateway
Open a new prompt and type ping 192.168.1.1 (replace with your gateway). A clear reply means your machine talks to the router. If you see Request timed out, the connection is broken.
3. Verify DNS
Try ping www.microsoft.com. A successful reply confirms DNS is resolving. If it fails, double‑check the DNS servers you entered.
4. Test an External Port
Use an online tool like <https://www.yougetsignal.com/tools/open-ports/>. Enter your static IP and the port you want to forward. A green tick means the port is open; a red cross means you need to tweak your router.
5. Printable Checklist
✔ | Task | Result |
|---|---|---|
| ipconfig shows correct static IP | ✅ |
| Gateway ping succeeds | ✅ |
| DNS ping succeeds | ✅ |
| External port open | ✅ |
Print this out, tick each box, and you’ll have a quick visual audit.
6. Troubleshooting Cues
Issue | Symptom | Quick Fix |
|---|---|---|
IP conflict | “The IP address is already in use” | Pick a free address outside DHCP range |
Gateway disappears | Settings revert after reboot | Lock settings with |
DNS resolution fails | | Verify DNS entries or use 8.8.8.8 |
Port blocked | External tool shows closed | Ensure router’s firewall allows the port |
If any box is unchecked, dive deeper. Sometimes a simple “Restart your PC” clears stale leases.
7. Keep the Log
Save the output of ipconfig /all and your ping results in a text file. It’s like a diary for your network, handy when you need to show the IT team what’s happening.
Ready to confirm your static IP is rock‑solid? Let’s move on to the next step where we’ll lock it in place and keep it that way.
How to Set a Static IP Address in Windows 10 and Windows 11
- Open Settings – Hit
Win + Ior click the gear icon in the Start menu. - Navigate to Network & Internet – Just click Network & Internet.
- Choose the active network – Under Status, tap Change adapter options.
- Select the adapter – Right‑click the Wi‑Fi or Ethernet adapter you use and pick Properties.
- Open TCP/IPv4 properties – Scroll to Internet Protocol Version 4 (TCP/IPv4), select it, then hit Properties.
- Configure the IP – Tick Use the following IP address and fill in:
- IP address – Pick an address outside your router’s DHCP range (e.g.,
192.168.1.150). - Subnet mask – Usually
255.255.255.0. - Default gateway – Your router’s IP (often
192.168.1.1). - Preferred DNS server – Use a public DNS such as
8.8.8.8or your router’s IP. - Alternate DNS server – Optional (e.g.,
8.8.4.4).
- Save – Click OK twice to lock in the settings.
- Verify – Open Command Prompt and run
ipconfig /all. Make sure the static address shows up and DHCP enabled reads No.
Alternative: Using the Classic Control Panel
- Open the Control Panel (search Control Panel in the Start menu).
- Click Network and Sharing Center.
- On the left, choose Change adapter settings.
- Right‑click the active adapter and select Properties.
- Double‑click Internet Protocol Version 4 (TCP/IPv4).
- Follow steps 5‑8 from the Settings method above.
PowerShell Commands for Advanced Users
1# Set a static IP, subnet mask, gateway, and DNS2New-NetIPAddress -InterfaceAlias "Ethernet" -IPAddress 192.168.1.150 -PrefixLength 24 -DefaultGateway 192.168.1.13Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses 8.8.8.8,8.8.4.44
5# Verify the configuration6Get-NetIPAddress -InterfaceAlias "Ethernet"7Get-DnsClientServerAddress -InterfaceAlias "Ethernet"Verification Checklist
- IP Address –
ipconfig /allshows the static address and DHCP enabled is No. - Gateway – Ping the gateway IP (
ping 192.168.1.1). - DNS Resolution –
nslookup www.microsoft.comreturns a valid IP. - Internet Connectivity – Browse a website or run
ping www.google.com. - Persistent after Reboot – Reboot the computer and re‑run the above checks.
FAQ – Common “Set Static IP Windows 10” Questions
- Why do I need admin rights to set a static IP? – Changing network settings modifies system configuration files; only administrators can write to them.
- Will my static IP conflict with the router’s DHCP range? – Yes, if you choose an address inside the DHCP pool. Pick an address outside the range or reserve a static IP in the router.
- Can I set a static IP on a VPN connection? – VPN adapters usually use dynamic addresses; set a static IP on the physical adapter instead.
- What if my network adapter is disabled? – Enable it in Network Connections or use
Enable-NetAdapter –Name "Ethernet"in PowerShell. - How do I revert to DHCP? – In the TCP/IPv4 properties, select Obtain an IP address automatically and Obtain DNS server address automatically.
Troubleshooting Common Errors and Fixes
Error | Likely Cause | Diagnostic Steps | Quick Fix |
|---|---|---|---|
Cannot save IP settings | Missing admin rights or conflicting services (e.g., Internet Connection Sharing). | Run Settings as administrator. Check Services for Internet Connection Sharing and DHCP Client. | Open Settings or Control Panel as admin, then disable conflicting services or use |
Static IP not working on Windows 10 Home | DHCP still assigns the same IP or the Home edition restricts advanced settings. | Verify the IP is outside the router’s DHCP range. Run | Move the static IP to a free address, or use |
Default gateway disappears | Windows updates reset manual settings or the adapter’s driver reverts to defaults. | Check Windows Update history for network‑related changes. | Re‑apply the gateway, then use |
IP conflict detected | Another device on the network has claimed the same address. | Ping the IP from another machine. | Change the static IP to an unused address; update the router’s DHCP exclusion list. |
DNS resolution fails | Incorrect DNS servers or the DNS cache is stale. | Run | Flush DNS with |
These quick‑look fixes come straight from Microsoft’s own troubleshooting threads and the hands‑on experience of IT pros who’ve wrestled with similar hiccups.
A Real‑World Example
We once helped a small office set a static IP for their file server. The gateway vanished after a Windows 10 update. Running netsh interface ipv4 set address not only restored the gateway but also prevented future resets. The team now uses a PowerShell script to reapply settings on boot, ensuring the server never loses its address.
Why It Matters
When a static IP slips away, port‑forwarding rules break, game servers go offline, and file shares become unreachable—exactly the kind of chaos we’re here to prevent. By understanding the root cause and applying the right command, we keep the network humming like a well‑tuned orchestra.
Keep This Handy
- Admin rights are your first line of defense. Run everything as administrator.
- Check the DHCP range before picking an IP; avoid the 192.168.1.2‑192.168.1.100 block if your router uses it.
- Use
netshor PowerShell to lock settings; they’re immune to most Windows quirks. - Flush DNS when you change servers; it clears stale records that might mislead the resolver.
These steps are the toolbox we’ll rely on in the next section, where we’ll dive into advanced PowerShell tricks and custom scripts.
Frequently Asked Questions About Static IP on Windows
Set Static IP Address Windows 10 – A quick guide for everyday users, IT support staff, and gamers.
Why does Windows keep switching back to DHCP after I set a static IP?
Windows might switch back to DHCP after updates, Internet Connection Sharing, or a mis‑configured adapter. The setting can be overwritten if the system applies a network profile that resets the IP configuration. Lock it with the netsh or PowerShell commands below.
How do I set a static IP on Wi‑Fi using the Settings app?
- Open Settings → Network & Internet → Wi‑Fi.
- Click your network name and choose Edit under IP settings.
- Switch to Manual.
- Enable IPv4 and fill in:
- IP address (e.g., 192.168.1.100)
- Subnet prefix length (24 for 255.255.255.0)
- Default gateway (router IP, e.g., 192.168.1.1)
- Preferred DNS and Alternate DNS.
- Click Save.
On Windows 10 the field is called Subnet prefix length. On Windows 11 the layout is similar but the labels differ slightly.
Alternative method: Classic Control Panel
- Open Control Panel → Network and Sharing Center.
- Click Change adapter settings.
- Right‑click the Wi‑Fi adapter and choose Properties.
- Select Internet Protocol Version 4 (TCP/IPv4) → Properties.
- Choose Use the following IP address and enter the same values as above.
- Click OK twice to apply.
PowerShell commands for advanced users
1# Example: Assign static IP 192.168.1.100 on Wi‑Fi adapter2Set-NetIPAddress -InterfaceAlias 'Wi-Fi' \3 -IPAddress 192.168.1.100 \4 -PrefixLength 24 \5 -DefaultGateway 192.168.1.16
7# Set DNS servers8Set-DnsClientServerAddress -InterfaceAlias 'Wi-Fi' \9 -ServerAddresses 8.8.8.8,8.8.4.4Verification checklist
Step | Command / Action | What to look for |
|---|---|---|
1 | | Verify IPv4 Address, Subnet Mask, Default Gateway, and DNS Servers match the values you set. |
2 | | Successful replies confirm connectivity. |
3 | | Confirms the gateway is reachable. |
4 | | Ensures routing works beyond the local network. |
Troubleshooting table
Common error | Symptom | Fix |
|---|---|---|
IP conflict | | Assign an unused IP from the router’s DHCP range or change the DHCP exclusion list. |
DNS failure | Browsers cannot resolve hostnames | Verify DNS server addresses; try switching to 8.8.8.8 or your ISP’s DNS. |
No connectivity after reboot | Network shows Unidentified network | Disable and re‑enable the adapter, or restart the computer to clear stale leases. |
Wi‑Fi drops after setting static IP | Connection lost after a few minutes | Ensure the gateway and DNS are correct; check for conflicting network profiles. |
Frequently Asked Questions
Question | Answer |
|---|---|
Why does Windows revert to DHCP after setting a static IP? | Updates, services, or mis‑configured adapters can overwrite manual settings. Use netsh or PowerShell to lock the configuration. |
How do I set a static IP on Wi‑Fi? | Use Settings → Network & Internet → Wi‑Fi → Edit → Manual → IPv4. Enter IP, subnet, gateway, DNS. |
Do I need to reboot after changing the IP? | Usually not; a quick restart or adapter toggle fixes lingering leases. |
What subnet mask should I use for a home network? | 255.255.255.0 (prefix 24) is standard for most home routers. |
How do I find my router’s DHCP range? | Check the router’s admin page under DHCP settings or use |
Give the steps a try, run through the checklist, and you’ll have a solid, static connection for gaming, file sharing, and local servers. If any of the listed hiccups crop up, consult the troubleshooting table or reach out for help.