Question

How to reach Kafka in Droplet from outside the Droplet?

Posted January 20, 2021 106 views
Debian 10

I have setup a Kafka in Debian it just works fine but when I want to reach it from outside via ip:9290 I won’t work. What can I do to fix it?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi there,

I believe that Kafka might be listening on 127.0.0.1:9290, you can check that with the following command:

  • netstat -plant | grep 9290

If this is the case, I believe that you need to by set the advertised.host.name in server.properties and the metadata.broker.list in the producer.properties to public IP address and host.name to 0.0.0.0.

Let me know how it goes.
Regards,
Bobby

Submit an Answer