Port 9042: Cassandra

Port 9042 is the default port for Apache Cassandra's native transport, which client drivers use to send CQL queries to the cluster. Cassandra's older Thrift interface used port 9160, now largely retired.

TCPDatabasesUnencrypted by default
Port number9042
ServiceApache Cassandra native transport (CQL)
ProtocolTCP
CategoryDatabases
Default encryptionNo
Security note. Port 9042 is not encrypted by default. Restrict it to trusted networks, or use an encrypted alternative where one exists, to avoid exposing credentials and data in transit.

Frequently asked questions

What is port 9042 used for?

Port 9042 is the default port for Apache Cassandra's native transport, which client drivers use to send CQL queries to the cluster. Cassandra's older Thrift interface used port 9160, now largely retired.

Is port 9042 TCP or UDP?

Port 9042 (Cassandra) uses TCP.

Is port 9042 secure?

Port 9042 is not encrypted by default. Where possible, use an encrypted alternative or tunnel it over TLS or a VPN.

Should I open port 9042 on my firewall?

Only if you specifically need Cassandra. Expose it to the smallest set of trusted sources, and never open database or Windows-service ports to the whole internet.