Skip to content

Can't produce any topic to a remote machine #2590

@rodrigovaras

Description

I just tried a basic produce sample from this repo and I can't get the library to connect to my remote MacOSX that has the Kafka broker. What I find suspicious is that the console shows and attempt to connect into my local host machine when i'm defining a remote IP.

I defined the args[0] as "192.168.68.70:19092"

        string brokerList = args[0];
        string topicName = args[1];

        var config = new ProducerConfig { BootstrapServers = brokerList };

        using (var producer = new ProducerBuilder<string, string>(config).Build())

%3|1773171019.654|FAIL|rdkafka#producer-1| [thrd:localhost:19092/0]: localhost:19092/0: Connect to ipv6#[::1]:19092 failed: Unknown error (after 2034ms in state CONNECT)
%3|1773171019.654|ERROR|rdkafka#producer-1| [thrd:app]: rdkafka#producer-1: localhost:19092/0: Connect to ipv6#[::1]:19092 failed: Unknown error (after 2034ms in state CONNECT)

Why is showing the message " localhost:19092" ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions