Overview
Sometimes when using the Windows Environment, you may run into applications that need ports that are not openly available. You can use Powershell commands to enable ports that are required.
How to change the available ports of the Windows Firewall:
You can change the TCP firewall rules with the Windows Command Prompt:
To see the Windows Firewall status, you can use:
-run:
command:|
netsh advfirewall show all
To turn off ANY profiles no matter the connection type:
-run:
command:|
netsh advfirewall set allprofiles state off
If there are specific ports that need to be enabled on the Firewall, you can use:
- run:
command: |
New-NetFirewallRule -DisplayName "{Display_Name}" -Direction inbound -Profile Any-Action Allow -LocalPort {Port} -Protocol TCP
*Note: Please ensure that your shell is set to Powershell while using these commands.
Additional Resources
See information on our Windows Orb:
https://circleci.com/developer/orbs/orb/circleci/windows
Using the Windows Environment:
https://circleci.com/docs/using-windows/
If you are still experiencing problems after trying this, for further questions or suggestions for your particular use-case, please contact CircleCI Support.
Comments
Article is closed for comments.