RackNerd Billboard Banner

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

  1. Press Win + R, type control, and press Enter.
  2. Click System and Security, then Windows Defender Firewall.

Step 2: Create a New Inbound Rule

  1. On the left, click Advanced settings.
    This opens Windows Defender Firewall with Advanced Security.
  2. Click Inbound Rules on the left sidebar.
  3. On the right, click New Rule.

Step 3: Configure the Rule

  1. Select Custom and click Next.
  2. Choose All programs (or specify a program if needed).
  3. Click Next until you reach the Scope section.

Step 4: Specify IP Address Ranges

  1. Under Remote IP address, select These IP addresses.
  2. Click Add and enter the IP address or range you want to allow.
    • Example: 192.168.1.1-192.168.1.50
  3. Click OK.

Step 5: Action and Apply

  1. Click Next, choose Allow the connection.
  2. Click Next, pick the network profiles (Domain, Private, Public).
  3. 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!

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
RackNerd Billboard Banner
© 2025 Computer Everywhere
Your Everyday Guide to the Digital World.
Terms of Service | Privacy Policy
Copy link