# Not able to connect to Kafka broker installed on Redhat OCP from an external client

**URL:** <https://forum.confluent.io/t/not-able-to-connect-to-kafka-broker-installed-on-redhat-ocp-from-an-external-client/2524>\
**Category:** Lounge\
**Created:** [18 August 2021 16:56 UTC](https://forum.confluent.io/t/not-able-to-connect-to-kafka-broker-installed-on-redhat-ocp-from-an-external-client/2524 "2021-08-18T16:56:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![prem](https://avatars.discourse-cdn.com/v4/letter/p/8797f3/32.png) [@prem](https://forum.confluent.io/u/prem)\
**Post date:** [18 August 2021 16:56 UTC](https://forum.confluent.io/t/not-able-to-connect-to-kafka-broker-installed-on-redhat-ocp-from-an-external-client/2524/1 "2021-08-18T16:56:35Z")

</div>

Confluent Kafka is installed on Redhat ocp, Control center is accessible outside and able to create topics right from the COntrol center. While producing or consuming events to this topic, from an external client or command line client this topic is not reachable. Any suggestions?

In ControlCenter Cluster settings, Listeners are INTERNAL://:9071,REPLICATION://:9072,EXTERNAL://:9092.

Below is the error from the command line kafka when tried connecting to the topic in the cluster.  
WARN [Producer clientId=console-producer] Bootstrap broker xx:9092 (id: -1 rack: null) disconnected (org.apache.kafka.clients.NetworkClient)  
WARN [Producer clientId=console-producer] Bootstrap broker xx:9092 (id: -1 rack: null) disconnected (org.apache.kafka.clients.NetworkClient)  
ERROR Error when sending message to topic TESTTOPIC with key: null, value: 2 bytes with error: (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)  
org.apache.kafka.common.errors.TimeoutException: Topic TESTTOPIC not present in metadata after 60000 ms.

---

<div class="post-metadata">

**Author:** ![mmuehlbeyer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/mmuehlbeyer/32/1088_2.png) [@mmuehlbeyer](https://forum.confluent.io/u/mmuehlbeyer)\
**Post date:** [19 August 2021 08:51 UTC](https://forum.confluent.io/t/not-able-to-connect-to-kafka-broker-installed-on-redhat-ocp-from-an-external-client/2524/2 "2021-08-19T08:51:57Z")

</div>

Hi,

how do does your connecting string look like respectively how do you try to connect ?

M

---

<div class="post-metadata">

**Author:** ![prem](https://avatars.discourse-cdn.com/v4/letter/p/8797f3/32.png) [@prem](https://forum.confluent.io/u/prem)\
**Post date:** [19 August 2021 16:07 UTC](https://forum.confluent.io/t/not-able-to-connect-to-kafka-broker-installed-on-redhat-ocp-from-an-external-client/2524/3 "2021-08-19T16:07:14Z")

</div>

hi @mmuehlbeyer - As of now connecting it from the Kafka command line tools

kafka-console-producer.bat --bootstrap-server :9092 --producer.config …\producer.properties --topic TESTTOPIC

producer.properties values are as in below format

security.protocol=SASL\_PLAINTEXT  
sasl.mechanism=SCRAM-SHA-256  
sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required   
username=   
password=;

---

<div class="post-metadata">

**Author:** ![mmuehlbeyer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/mmuehlbeyer/32/1088_2.png) [@mmuehlbeyer](https://forum.confluent.io/u/mmuehlbeyer)\
**Post date:** [23 August 2021 14:11 UTC](https://forum.confluent.io/t/not-able-to-connect-to-kafka-broker-installed-on-redhat-ocp-from-an-external-client/2524/4 "2021-08-23T14:11:56Z")

</div>

ok I see  
any errors in kafka server logs?  
telnet does work?

M
