Help Center/ Distributed Message Service for Kafka/ FAQs/ Instances/ Can I Modify the Port for Accessing a Kafka Instance?
Updated on 2024-11-27 GMT+08:00

Can I Modify the Port for Accessing a Kafka Instance?

No. You must access a Kafka instance through one of the following ports:

  • Accessing a Kafka instance without SASL:

    The port varies with the access mode:

    • Intra-VPC access using IPv4 addresses: port 9092
    • Public access: port 9094
    • Cross-VPC access using a VPC endpoint: port 9011
    • Cross-VPC access using a peering connection: port: 9092.
    • DNAT access: port 9011
  • Accessing a Kafka instance with SASL:

    The port varies with the access mode:

    • Intra-VPC access using IPv4 addresses: port 9093
    • Public access: port 9095
    • Cross-VPC access using a VPC endpoint: port 9011
    • Cross-VPC access using a peering connection: port: 9093.
    • DNAT access: port 9011

Ensure that proper rules have been configured for the security group of the instance. For details, see How Do I Select and Configure a Security Group?