Issue
how to set a static IP address to a Windows Client to ensure consistent network communication, especially for services like file sharing, port forwarding, or hosting.
Product Line
EcoStruxture Building Operation
Environment
Windows 10
Windows 11
Windows Server 2016, 2019, 2022
Cause
Why use a static IP?
- Prevent IP address changes that disrupt services
- Enable reliable access to networked devices
- Support port forwarding and firewall rules
- Simplify network management in server environments
Resolution
-
For Windows 10 & Windows 11
Method 1: Using Settings App
- Open Settings → Network & Internet
- Select Wi-Fi or Ethernet, then click your active connection
- Scroll to IP assignment → Click Edit
- Change to Manual, enable IPv4
- Enter:
- IP address (e.g.,
192.168.1.100
) - Subnet mask (
255.255.255.0
) - Default gateway (e.g.,
192.168.1.1
) - DNS servers (e.g.,
8.8.8.8
,8.8.4.4
)
- IP address (e.g.,
- Click Save
Method 2: Using Control Panel
- Open Control Panel → Network and Sharing Center
- Click Change adapter settings
- Right-click your active adapter → Properties
- Select Internet Protocol Version 4 (TCP/IPv4) → Properties
- Choose Use the following IP address and enter the details
- Click OK to apply
-
For Windows Server 2016, 2019, 2022
Method 1: Using Control Panel
- Open Control Panel → Network and Sharing Center
- Click Change adapter settings
- Right-click the network adapter → Properties
- Select Internet Protocol Version 4 (TCP/IPv4) → Properties
- Choose Use the following IP address and enter:
- Static IP (e.g.,
10.1.4.120
) - Subnet mask (
255.255.255.0
) - Default gateway (e.g.,
10.1.4.1
) - DNS servers (e.g.,
10.1.4.1
,8.8.8.8
)
- Static IP (e.g.,
- Click OK
Method 2: Using Powershell
Get-NetAdapter
New-NetIPAddress -InterfaceIndex <Index> -IPAddress <IP> -PrefixLength 24 -DefaultGateway <Gateway>
Set-DnsClientServerAddress -InterfaceIndex <Index> -ServerAddresses <DNS1>,<DNS2>
Replace <Index>, <IP>, <Gateway>, <DNS1>, and <DNS2> with your actual values.