ZooKeeper client port, historically required by Kafka, HBase, Solr and Hadoop.
ZooKeeper client port, historically required by Kafka, HBase, Solr and Hadoop.
Do not expose to the internet. Never expose: by default ZooKeeper allows unauthenticated reads and writes of cluster metadata, and the four-letter commands leak details.
sudo ss -tlnp 'sport = :2181'sudo lsof -nP -i :2181sudo netstat -tlnp | grep ':2181 'netstat -ano | findstr :2181Get-NetTCPConnection -LocalPort 2181 -State Listen | Select LocalAddress,OwningProcessnc -vz -w 5 HOST 2181Test-NetConnection HOST -Port 2181sudo ufw deny 2181/tcpsudo iptables -A INPUT -p tcp --dport 2181 -j DROPsudo nft add rule inet filter input tcp dport 2181 dropNew-NetFirewallRule -DisplayName 'Block TCP 2181' -Direction Inbound -Protocol TCP -LocalPort 2181 -Action BlockAll port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.