If you manage servers, opening a port in the Windows Server firewall is one of those routine tasks that’s trivial to execute but easy to get wrong — and a single misconfiguration can expose services to the public internet. This feature explains the exact, supported ways to open ports in Windows...
gpo
group policy
inbound rules
ipsec
localsubnet
network security
network testing
new-netfirewallrule
port rules
powershell
privilege
remoteaddress
rulemanagement
security best practices
urlacl
wf.msc
wfas
windows defender firewall
windows server