NATS client connections; 6222 is cluster routing and 8222 the HTTP monitoring port.
NATS client connections; 6222 is cluster routing and 8222 the HTTP monitoring port.
Do not expose to the internet. Configure authentication (tokens, NKeys or JWT) and TLS before allowing any external client.
Port 4222 is in the registered range and has no IANA assignment. The usage above is unofficial but widespread.
sudo ss -tlnp 'sport = :4222'sudo lsof -nP -i :4222sudo netstat -tlnp | grep ':4222 'netstat -ano | findstr :4222Get-NetTCPConnection -LocalPort 4222 -State Listen | Select LocalAddress,OwningProcessnc -vz -w 5 HOST 4222Test-NetConnection HOST -Port 4222sudo ufw deny 4222/tcpsudo iptables -A INPUT -p tcp --dport 4222 -j DROPsudo nft add rule inet filter input tcp dport 4222 dropNew-NetFirewallRule -DisplayName 'Block TCP 4222' -Direction Inbound -Protocol TCP -LocalPort 4222 -Action BlockAll port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.