Set a Static IP Address in Windows 10/11 for Printers, NAS, and Port Forwarding
Difficulty: Intermediate | Time Required: 10 minutesA static IP address keeps your Windows PC at the same network address every time it connects. This is useful when another device or service needs to reliably find your computer, such as a shared printer, mapped NAS drive, media server, remote desktop connection, game server, or router port forwarding rule.
By default, most home networks use DHCP, where your router automatically gives devices an IP address. That works well for everyday browsing, but it can cause problems if your router later gives your PC a different address. A static IP prevents that change.
Important: If you are setting a fixed address for a printer or NAS itself, the best place to do that is usually the printer/NAS admin page or your router’s DHCP reservation page. This tutorial shows how to set a static IP on a Windows 10 or Windows 11 PC.
Prerequisites
Before you begin, make sure you have:- A Windows 10 or Windows 11 PC.
- Administrator access to the PC.
- Your current network details:
- Current IPv4 address
- Subnet mask
- Default gateway
- DNS servers
- An unused IP address on your network.
Code:
192.168.0.x
192.168.1.x
10.0.0.x
192.168.1.1And your PC may currently be something like:
192.168.1.42In that example, you might choose a static IP such as:
192.168.1.50Step 1: Check Your Current Network Configuration
First, collect your current IP settings so you know what values to use.- Right-click the Start button.
- Select Terminal, Windows Terminal, or Command Prompt.
- Type the following command and press Enter:
ipconfig /all- Find the adapter you are using:
- Ethernet adapter if you are connected by cable.
- Wireless LAN adapter Wi-Fi if you are connected wirelessly.
- Write down these values:
Code:
IPv4 Address
Subnet Mask
Default Gateway
DNS Servers
Code:
IPv4 Address: 192.168.1.42
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1
DNS Servers: 192.168.1.1
Tip: Your static IP should usually use the same first three number groups as your current address on a typical home network. For example, if your current IP is192.168.1.42, choose another address in the192.168.1.xrange.
Step 2: Choose a Safe Static IP Address
Choose an IP address that is not already being used.For a typical home network, a safe choice is often higher in the range, such as:
192.168.1.200However, this depends on your router’s DHCP range.
For example, if your router gives out addresses from:
192.168.1.2 to 192.168.1.150Then choosing something like this may be safer:
192.168.1.200To test whether an address may already be in use, open Command Prompt and type:Warning: Do not use the same IP address as your router, printer, NAS, another PC, phone, smart TV, or any other device. Duplicate IP addresses can cause random disconnects and network errors.
ping 192.168.1.200If you receive replies, that address may already be in use. If the request times out, it may be available, although some devices block ping replies.
Step 3: Set a Static IP Address in Windows 11
Use this method if you are on Windows 11.- Open Settings.
- Select Network & internet.
- Choose your active connection:
- Ethernet for wired connections.
- Wi-Fi, then your connected network, for wireless connections.
- Find IP assignment.
- Click Edit.
- Change the setting from Automatic (DHCP) to Manual.
- Turn on IPv4.
- Enter your static IP settings.
Code:
IP address: 192.168.1.200
Subnet mask: 255.255.255.0
Gateway: 192.168.1.1
Preferred DNS: 192.168.1.1
Alternate DNS: 8.8.8.8
- Click Save.
- Disconnect and reconnect to the network if needed.
Note: Windows 11 uses the newer Settings app for most network configuration, but the classic Control Panel method still works as well.
Step 4: Set a Static IP Address in Windows 10
Use this method if you are on Windows 10.- Open Settings.
- Go to Network & Internet.
- Select Status.
- Click Change adapter options.
- Right-click your active adapter:
- Ethernet
- Wi-Fi
- Select Properties.
- Select Internet Protocol Version 4 (TCP/IPv4).
- Click Properties.
- Select Use the following IP address.
- Enter your chosen network settings.
Code:
IP address: 192.168.1.200
Subnet mask: 255.255.255.0
Default gateway: 192.168.1.1
- Select Use the following DNS server addresses.
- Enter DNS servers.
Code:
Preferred DNS server: 192.168.1.1
Alternate DNS server: 8.8.8.8
- Click OK.
- Click Close.
Tip: You can also use this same classic adapter method in Windows 11 by opening Control Panel, then going to Network and Sharing Center, then Change adapter settings.
Step 5: Verify the Static IP Address
After saving your settings, confirm that Windows is using the new address.- Open Command Prompt or Terminal.
- Run:
ipconfig- Check that your adapter now shows the static IP address you entered.
ping 192.168.1.1Replace
192.168.1.1 with your router’s IP address if yours is different.Then test internet name resolution:
ping windowsforum.comIf the router ping works but website names do not, your IP address may be fine but your DNS settings may be incorrect.
Using Static IPs for Printers, NAS, and Port Forwarding
A static IP is especially helpful in these common situations:Shared Printers
If your Windows PC shares a USB printer over the network, other devices need to find that PC consistently. A static IP prevents the shared printer path from breaking when the PC gets a new address.NAS and File Sharing
If you connect to shared folders by IP address, such as:\\192.168.1.200\SharedFolderA static IP keeps that path reliable.
Port Forwarding
Router port forwarding rules usually point traffic to a specific internal IP address. If your PC’s IP changes, the rule may forward to the wrong device or stop working entirely. Setting a static IP on the target PC helps keep the rule stable.Security Warning: Only forward ports you truly need. Port forwarding can expose services to the internet. Keep Windows updated, use strong passwords, and avoid forwarding sensitive services unless you understand the risks.
Troubleshooting Tips
No Internet After Setting the Static IP
Check the following:- The IP address is in the correct network range.
- The subnet mask is correct.
- The default gateway is your router’s IP address.
- DNS servers are valid.
255.255.255.0IP Address Conflict Warning
If Windows reports that the static IP is already in use, choose a different address. You may have picked an address already assigned to another device.Can Access Local Devices but Not Websites
This usually points to a DNS issue. Try setting DNS to your router’s IP address, or use a trusted public DNS provider.Want the Best Long-Term Setup?
For home networks, a router-based DHCP reservation is often better than manually configuring a static IP in Windows. A DHCP reservation tells the router to always give the same IP address to your PC, while still letting the router manage the network settings automatically.Conclusion
Setting a static IP address in Windows 10 or Windows 11 is a simple but powerful way to make your network more reliable. It is especially useful for shared printers, NAS access, remote connections, game servers, media servers, and port forwarding rules.Once configured correctly, your PC keeps the same local address, making it easier for other devices and your router to find it every time.
Key Takeaways:
- A static IP keeps your Windows PC at the same network address.
- Static IPs are useful for printer sharing, NAS access, and port forwarding.
- Always choose an unused IP address to avoid conflicts.
- Use the correct subnet mask, gateway, and DNS settings.
- For many home users, a router DHCP reservation may be the cleanest long-term option.
This tutorial was generated to help WindowsForum.com users get the most out of their Windows experience.
Last edited by a moderator: