TCP 4222
Synopsis
- NATS Server (nats-server/gnatsd) uses TCP port 4222 as its default client port for publish/subscribe messaging.
- NATS JetStream (built into nats-server) also accepts client connections on 4222; for example, OpenFaaS’s queue-worker connects to NATS on this port.
- NATS Streaming Server (STAN, now deprecated) relies on the NATS server’s 4222 port for its clients to communicate with the streaming layer.
- Synadia’s NGS (NATS Global Service) provides a public NATS endpoint on TCP 4222 for global, TLS-secured client access.
- Cloud Foundry and BOSH deployments run an internal NATS message bus that listens on 4222/TCP for communication among platform components.
- Security note: Exposed NATS instances on 4222 have been targeted when left without authentication/TLS, allowing unauthorized message publishing or data access.
Observed activity
Last 30 days
Detailed chart