title: Kafdrop (localhost/127.0.0.1:9092) could not be established. Broker may not be available
body: <p>I setup Kafka and Zookeeper on my local machine and I would like to use <a href="https://github.com/obsidiandynamics/kafdrop" rel="noreferrer">Kafdrop</a> as UI. I tried running with docker command below:</p>
  <pre><code>docker run -d --rm -p 9000:9000 \
      -e KAFKA_BROKERCONNECT=&lt;localhost:9092&gt; \
      -e JVM_OPTS=&quot;-Xms32M -Xmx64M&quot; \
      -e SERVER_SERVLET_CONTEXTPATH=&quot;/&quot; \
      obsidiandynamics/kafdrop
  </code></pre>
  <p>and I get <code>-bash: https://locahost:9092: No such file or directory</code></p>
  <p>When I remove the <em>KAFKA_BROKERCONNECT</em> parameter, the application run but I got error below:</p>
  <pre><code>[AdminClient clientId=kafdrop-admin] Connection to node -1 (localhost/127.0.0.1:9092) could not be established. Broker may not be available.
  2020-07-22 09:39:29.108  WARN 1 [| kafdrop-admin] o.a.k.c.NetworkClient 
  </code></pre>
  <p>I did setup Kafka Server's listener setting to this but did not help.</p>
  <p><code>listeners=PLAINTEXT://localhost:9092</code></p>
  <p>I found <a href="https://github.com/obsidiandynamics/kafdrop/issues/35" rel="noreferrer">this similar issue on GitHub</a> but couldn't understand most of the answers.</p>