Networking
How to Set a Static IP Address on Windows
Networking · 4 min read · Updated November 9, 2026
To set a static IP address on Windows, open Settings, go to Network and internet, then Wi-Fi or Ethernet, and change the IP assignment from Automatic (DHCP) to Manual. A static IP is an address that never changes, which is useful for printers, cameras, game servers, and port forwarding.
This guide sets a static private IP on your home network, the address your router assigns inside your house. That is different from a static public IP, which only your internet provider can give you. Before you start, find your current IP address so you know your network's pattern.
Before you start: pick a safe address
Your router hands out addresses automatically from a range, usually 192.168.1.2 through 192.168.1.254. If you pick an address your router might hand to another device, you get an IP conflict and both devices lose their connection.
The safe move is to pick a high number in the same range, like 192.168.1.200. First, check your current address with ipconfig and note the subnet mask (usually 255.255.255.0) and the default gateway (usually 192.168.1.1, your router's address). You will need all three numbers in the steps below. If you want to be extra safe, log in to your router and reserve the address for your PC so the router never hands it to anyone else.
Method 1: Settings (Windows 11)
Open Settings, then go to Network and internet. Click Wi-Fi if you are on wireless, or Ethernet if you are wired. Click the name of your connected network, then click Edit next to IP assignment.
Change the dropdown from Automatic (DHCP) to Manual and turn on IPv4. Enter your chosen IP address, the subnet mask (255.255.255.0), and the gateway (your router's address, usually 192.168.1.1). For DNS, enter 8.8.8.8 and 8.8.4.4 (Google DNS) or keep your router's address, then click Save. Your connection drops for a few seconds and comes back with the new fixed address.
Method 2: Control Panel (Windows 10 and 11)
Press Win + R, type ncpa.cpl, and press Enter. Right-click your active adapter (Wi-Fi or Ethernet) and choose Properties. Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
Choose Use the following IP address and enter the IP address, subnet mask, and default gateway from your notes. Enter your preferred and alternate DNS servers, then click OK twice. This method works identically on Windows 10 and Windows 11, so it is the best one to remember.
Method 3: Command Prompt (netsh)
Open Command Prompt as administrator, right-click the Start button and choose Terminal (Admin) or Command Prompt (Admin). Run this command, replacing the values with your own: netsh interface ip set address name="Wi-Fi" static 192.168.1.200 255.255.255.0 192.168.1.1. Use name="Ethernet" instead if you are wired.
To set DNS in the same session, run: netsh interface ip set dns name="Wi-Fi" static 8.8.8.8. To switch back to automatic later, run: netsh interface ip set address name="Wi-Fi" dhcp and netsh interface ip set dns name="Wi-Fi" dhcp. You can release and renew your address with ipconfig /release and ipconfig /renew if anything looks stuck.
Frequently asked questions
How do I know my static IP worked?
Open Command Prompt and run ipconfig. Look for the IPv4 Address line under your adapter. It should show the address you entered. Then open a browser and load a page to confirm the internet still works.
What IP address should I choose for a static IP?
Use the same first three numbers as your current address (usually 192.168.1.x) and pick a high last number, like 200, that your router is unlikely to assign automatically. Keep the subnet mask and gateway the same as your current connection.
What happens if I pick an IP address already in use?
Windows shows an IP address conflict warning and one or both devices lose network access. Change your address to a different number, or better, reserve the address in your router so it is never handed out to another device.
Does setting a static IP change my public IP?
No. This only fixes the private address your PC uses inside your home network. Your public IP, the one websites see, is controlled by your internet provider and does not change when you do this.
How do I switch back to automatic IP?
Go back to the same settings screen, change IP assignment to Automatic (DHCP), and save. Or run the netsh dhcp commands above. Your router will assign you an address automatically again.
Why did I lose internet after setting a static IP?
The usual cause is a wrong gateway or DNS. Double check that the gateway matches your router's address (often 192.168.1.1) and that the subnet mask is 255.255.255.0. If you are unsure, switch back to Automatic and the connection should recover.