Skip to content

Firewall Settings (Windows)

Windows Defender Firewall is a tool built into the Windows operating system that is used to provide network security. Generally, this tool will adversely impact JoeScan applications such as JsSetup, SensorTester, or other applications built on the Pinchot API by restricting network traffic. It is recommended to initially disable Windows Defender Firewall during early development, and then to whitelist the application when ready to deploy the application.

Disabling Windows Defender Firewall

Disabling the firewall is done by opening the Control Panel and navigating to System and Security > Windows Defender Firewall > Customize Settings and selecting the Turn off Windows Defender Firewall option. Disable Firewall

In PowerShell (with administrative privileges)

Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False
For more information, see here

In a Command Prompt (with administrative privileges)

netsh.exe advfirewall set allprofiles state off
For more information, see here

Whitelisting Applications with Windows Defender Firewall

Whitelisting an application will allow the firewall to remain running while permitting the application the ability to bypass the network restrictions. The procedure to allow whitelisting of an application is described below.

  1. First open Windows Firewall and select "Allow an app...". Whitelisting Step 1

  2. Then select "Allow another app...". Whitelisting Step 1

  3. Select "Browse..." and navigate to the .exe file of the application, then selecting the "Add" button. Whitelisting Step 1

In PowerShell (with administrative privileges)

New-NetFirewallRule -DisplayName "Allow Pinchot Discovery" -Direction Inbound -Program <your program> -RemoteAddress LocalSubnet -Action Allow
For more information, see here

In a Command Prompt (with administrative privileges)

netsh advfirewall firewall add rule name="Allow Pinchot Discovery" dir=in program= <your program>.exe remoteip=localsubnet action=allow
For more information, see here