Skip to main content
< All Topics
Print

How to Set a Static IP Address on Windows 10 and 11


📄 Networking & WiFi
🕑 4 min read
Cybergate IT Team
Windows network adapter static IP address settings
A static IP ensures a device is always reachable at the same address, essential for printers, servers and network equipment.

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.

Static IP vs DHCP Reservation

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

1

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

2

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

3

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

4

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)
Alternative: Use Command Prompt for Static IP

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.

Frequently Asked Questions

First find your router DHCP range (usually shown in the router admin panel under DHCP settings). Choose an IP outside that range but within the same subnet. For example, if DHCP range is 192.168.1.100 to 192.168.1.200, choose 192.168.1.50 for your static device. Alternatively, configure a DHCP reservation in the router, which lets the router assign the same IP to a device every time based on its MAC address.

An IP conflict will occur. Both devices will lose network connectivity and Windows will show a notification about an IP address conflict. One or both devices will be unable to communicate on the network until the conflict is resolved by assigning a different IP to one of them.

DHCP reservation (also called static DHCP or IP binding) in the router is generally preferred for most devices. The device continues to use DHCP but always gets the same IP based on its MAC address. This avoids manual IP configuration on each device and makes it easier to manage IP assignments centrally. Manual static IP on the device itself is better for devices that may connect to different networks, such as servers or network equipment that need a fixed IP regardless of DHCP availability.

No, if configured correctly. Enter the same default gateway (router IP), subnet mask and DNS servers shown by ipconfig. Using a different gateway or wrong subnet mask will cause connectivity loss. If internet stops working after setting a static IP, verify the gateway and DNS settings match what was shown before.

CG
Cybergate IT Team
Managed IT support for Malaysian businesses since 2014. Microsoft Partner · Fortinet Technology Partner. About Us

Related Articles

Table of Contents