Open Windows Firewall to all connections from specific IP Address

Solution 1:

Assuming the IP address you want to whitelist is 192.0.2.55:

netsh advfirewall firewall add rule name="Allow from 192.0.2.55" dir=in action=allow protocol=ANY remoteip=192.0.2.55

Solution 2:

Here is how to do it from Powershell

New-NetFirewallRule -Name Allow192.0.2.55 -DisplayName 'Allow from 192.0.2.55' -Enabled True -Direction Inbound -Protocol ANY -Action Allow -Profile ANY -RemoteAddress 192.0.2.55