# Command to allow UDP traffic on port 27017 New-NetFirewallRule -DisplayName "Allow UDP Port 27017" -Direction Inbound -Protocol UDP -LocalPort 27017 -Action Allow # Command to allow TCP traffic on port 27017 New-NetFirewallRule -DisplayName "Allow TCP Port 27017" -Direction Inbound -Protocol TCP -LocalPort 27017 -Action Allow