How to Set a Static IP Address on Windows 10 and 11
A static IP address stays fixed on a device instead of changing each time it connects to the network. This is essential for network printers (so PCs can always find them), servers (so clients always connect to the same address), and other shared devices. This guide covers setting a static IP on Windows 10 and 11.
For most office devices, consider using DHCP reservation in the router instead of a manual static IP. This achieves the same result (device always gets the same IP) but is managed centrally in the router. See FAQ below for details.
Step 1: Find Your Current IP Settings
Run ipconfig to Get Current Settings
Before setting a static IP, note down the current settings. Press Windows + R, type cmd and press Enter. Run:
ipconfig /all
Find the section for your active connection (Wireless LAN for WiFi, Ethernet adapter for wired). Note these values:
- IPv4 Address: your current IP (e.g. 192.168.1.105)
- Subnet Mask: usually 255.255.255.0
- Default Gateway: your router IP (e.g. 192.168.1.1)
- DNS Servers: note the primary and secondary DNS
You will use all of these values when configuring the static IP.
Step 2: Open IP Configuration Settings
Access via Windows Settings
Open Settings > Network & Internet. Click on your active connection type:
- WiFi: Click WiFi > click your connected network name > Hardware properties
- Ethernet: Click Ethernet > click your connection name
Scroll down to the IP assignment section. Click Edit.
Step 3: Enter Static IP Settings
Switch to Manual
In the Edit IP settings dialog, change the dropdown from Automatic (DHCP) to Manual. Toggle IPv4 to On.
Enter the following settings:
- IP address: Choose a static IP in the same subnet as your network, outside the DHCP range. Example: 192.168.1.50
- Subnet prefix length: 24 (this is the equivalent of 255.255.255.0)
- Gateway: Your router IP (the Default Gateway noted in Step 1)
- Preferred DNS: Use the DNS from ipconfig, or enter 1.1.1.1 (Cloudflare) or 8.8.8.8 (Google)
- Alternate DNS: 1.0.0.1 or 8.8.4.4
Click Save.
Step 4: Verify Connectivity
Test the Static IP
Open Command Prompt and run:
ipconfig ping 8.8.8.8 ping google.com
The ipconfig output should show your new static IP. The pings should succeed. If pings fail:
- Verify the gateway IP matches your router IP exactly
- Verify the subnet prefix length is 24 (not 25 or 32)
- Ensure no other device is using the same static IP (check for IP conflict notification in the system tray)
Open Command Prompt as Administrator and run these commands (replace values with your network settings):
netsh interface ip set address "Ethernet" static 192.168.1.50 255.255.255.0 192.168.1.1 netsh interface ip set dns "Ethernet" static 1.1.1.1 netsh interface ip add dns "Ethernet" 8.8.8.8 index=2
Replace “Ethernet” with the exact name of your network adapter as shown in ipconfig.
Need IT Help in Malaysia?
Cybergate provides managed IT support for businesses across Malaysia. Our team is available Monday to Saturday, 9am to 6pm.
