WinRM over HTTPS.
WinRM over HTTPS.
Expose only to trusted sources. Prefer it over 5985 between networks, but still allowlist management sources.
Registry dates for this port: registered 2006-11.
sudo ss -tlnp 'sport = :5986'sudo lsof -nP -i :5986sudo netstat -tlnp | grep ':5986 'netstat -ano | findstr :5986Get-NetTCPConnection -LocalPort 5986 -State Listen | Select LocalAddress,OwningProcessnc -vz -w 5 HOST 5986Test-NetConnection HOST -Port 5986Replace 203.0.113.10 with the address or network you trust. With ufw, make sure the default incoming policy is deny.
sudo ufw allow from 203.0.113.10 to any port 5986 proto tcpsudo iptables -A INPUT -p tcp --dport 5986 -s 203.0.113.10 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 5986 -j DROPsudo nft add rule inet filter input ip saddr 203.0.113.10 tcp dport 5986 accept
sudo nft add rule inet filter input tcp dport 5986 dropNew-NetFirewallRule -DisplayName 'TCP 5986 trusted' -Direction Inbound -Protocol TCP -LocalPort 5986 -RemoteAddress 203.0.113.10 -Action AllowAll port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.