Report this

What is the reason for this report?

How to reach Kafka in Droplet from outside the Droplet?

Posted on January 20, 2021

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?



This textbox defaults to using Markdown to format your 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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.