<p>I need to use the ip of kafka for my other microservices. but when am deploying by this method theres no external IP moreover when am trying with localhost everything is working fine. so can anyone help me in understanding how to set up the ext IP of lb for the Kafka here to use it in</p>

Shikha Priyedarshi
<p>You just need to configure advertised listeners so that external clients can connect. </p>

<p>To do so, you need to configure <code>advertised.listeners</code> inside <code>server.properties</code>:</p>

<pre><code>advertised.listeners=PLAINTEXT://your-kafka-host-1:9092,PLAINTEXT://your-kafka-host-1:9093,PLAINTEXT://your-kafka-host-2:9092,...
</code></pre>

<hr>

<p>Alternatively, if you are using Docker images, you simply need to export <code>KAFKA_ADVERTISED_LISTENERS</code>. </p>
