Your cart is currently empty!
Restrict IP Address Range on Windows PC
If you’re serious about security or want tighter control over which devices can connect to your Windows PC, restricting IP address ranges is a smart move. This can help protect your computer from unwanted network traffic, especially if you’re sharing files, running remote desktop, or just want peace of mind.
Below, I’ll walk you through exactly how to do this using built-in Windows tools—no extra software needed.
Why Restrict IP Ranges?
- Block unwanted access: Stop unknown or suspicious devices from reaching your PC.
- Reduce attack surface: Limit exposure to only the IP addresses you trust.
- Control remote connections: Useful if you use Remote Desktop or share files over the network.
How to Restrict IP Address Ranges with Windows Firewall
Step 1: Open Windows Defender Firewall
- Press
Win + R
, typecontrol
, and press Enter. - Click System and Security, then Windows Defender Firewall.
Step 2: Create a New Inbound Rule
- On the left, click Advanced settings.
This opens Windows Defender Firewall with Advanced Security. - Click Inbound Rules on the left sidebar.
- On the right, click New Rule.
Step 3: Configure the Rule
- Select Custom and click Next.
- Choose All programs (or specify a program if needed).
- Click Next until you reach the Scope section.
Step 4: Specify IP Address Ranges
- Under Remote IP address, select These IP addresses.
- Click Add and enter the IP address or range you want to allow.
- Example:
192.168.1.1-192.168.1.50
- Example:
- Click OK.
Step 5: Action and Apply
- Click Next, choose Allow the connection.
- Click Next, pick the network profiles (Domain, Private, Public).
- Click Next, give your rule a name (like “Allow Home IP Range”), and click Finish.
To Block Instead of Allowing:
- In Step 5, select Block the connection instead.
Quick Tips
- You can create multiple rules for different IP ranges or apps.
- If you want to block all but a specific IP/range, create an allow rule for that range, then a block rule for all others.
- Always double-check your IP ranges to avoid locking yourself out.
Wrap Up
Restricting IP address ranges is one of the simplest ways to boost your Windows PC security. Whether you’re on a home network or something bigger, this gives you an extra layer of control. Take five minutes to set it up—you’ll thank yourself later.
Need more Windows security tips? Leave a comment below or reach out for step-by-step guides!
Tech enthusiast and content creator passionate about making technology simple for everyone. I share practical tips, guides, and reviews on the latest in computers, software, and gadgets. Let’s explore the digital world together!