Question

How to reach Kafka in Droplet from outside the Droplet?

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?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Hi there,

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

  1. 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