title: How to set up Apache Kafka Broker on EC2?
body: <p>I have installed Apache Kafka on my EC2 instance, changed the security groups to open ports 9092 and 2181 for Kafka and Zookeeper. I only have a single broker, single topic, single partition nothing complex. I confirmed Kafka works by trying local producers/consumers.</p>
  
  <p>On AWS security groups it shows:</p>
  
  <p>Custom TCP Rule
  TCP
  2181
  0.0.0.0/0</p>
  
  <p>Custom TCP Rule
  TCP
  9092
  0.0.0.0/0</p>
  
  <p>Now I want to connect my producers and consumers (not on a Amazon EC2 instance) using the public IP of my Broker EC2 instance. However I cannot connect any of my producers or consumers to the EC2 Broker. They just say Broker not found.</p>
  
  <p>Can you please help me?</p>
  
  <p>Thanks</p>