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
least privilege
localsubnet
network security
new-netfirewallrule
port rules
powershell
remoteaddress
rule management
security best practices
testing connectivity
urlacl
wf.msc
wfas
windows defender firewall
windows server