title: Kafka producer creation from command prompt giving broker disconnected error
body: <p>I am trying to create a Kafka producer from command prompt using below command and getting this error message. This was working fine on my laptop but failing when I tried the same on a virtual machine. Any help will be greatly appreciated.</p>
  <p>*C:\kafka_2.12-0.10.2.1\bin\windows&gt;kafka-console-producer.bat --broker-list localhost:9092 --topic test</p>
  <blockquote>
  <p>[2020-10-31 10:53:55,832] WARN [Producer clientId=console-producer] Bootstrap broker vagrant-10:9092 (id: -1 rack: null) disconnected (org.apache.kafka.clients.NetworkClient)*</p>
  </blockquote>