Skip to main content

How to Allow a Trusted IP Address Through Windows Defender Firewall

Allow a specific, trusted IP address to bypass the Windows Defender Firewall on a Windows Server. This procedure is performed by a Windows Server Administrator to grant access to a specific remote host or service.

Allow a specific, trusted IP address to bypass the Windows Defender Firewall on a Windows Server. This procedure is performed by a Windows Server Administrator to grant access to a specific remote host or service.

Before you begin

You will need:

  • Administrator access to the Windows Server.

  • The specific IPv4 or IPv6 address of the trusted host.

  • A valid reason for allowing the IP (e.g., a remote management tool, a partner's static IP, or a specific service provider).

Allow a trusted IP address through the firewall

  1. Open Windows Defender Firewall with Advanced Security.

  2. In the left pane, select Inbound Rules.

  3. In the right pane, select New Rule....

  4. Select Custom and click Next.

  5. Leave All programs selected and click Next.

  6. Select Any for the protocol type and click Next.

  7. Under Scope, locate the Remote IP address section.

  8. Select These IP addresses and click Add.

  9. Enter the trusted IP address (e.g., 192.0.2.10) and click OK.

  10. Click Next.

  11. Select Allow the connection and click Next.

  12. Ensure the checkboxes for Domain, Private, and Public are checked, then click Next.

  13. Give the rule a descriptive name (e.g., Allow Trusted IP - [Description]) and click Finish.

Confirm the result

  • The new rule will appear in the Inbound Rules list with a green checkmark icon.

  • The specific IP address can now establish a connection to the server through the firewall.

If the connection is still blocked

If the connection is still unsuccessful after creating the rule, verify the following:

  • Local Network Configuration: Ensure the server's own network configuration allows traffic on the specific port being used.

  • Outbound Rules: Check if a specific Outbound Rule is blocking the traffic.

  • Third-Party Security Software: If a third-party firewall or antivirus suite is installed, it may override Windows Defender Firewall settings.

  • ISP Blocking: Ensure the ISP is not blocking the specific port or protocol at the network level.

Limitations

  • This procedure only addresses the Windows Defender Firewall. It does not bypass hardware firewalls or ISP-level filtering.

  • If the trusted IP address is dynamic (changes frequently), this rule will only remain effective as long as the IP remains the same.

  • This rule allows all ports for the specified IP. If only a specific port is required, you should select Port instead of Any in step 5 of the procedure.

Did this answer your question?