title: For Kafka,what IP values need to be setup in listeners & advertised.listeners value?
body: <p>I have created an multi-node Azure Databricks cluster inside a VNET &amp; I have created a multi-node Kafka HDInsight cluster inside different VNET. I have peered this 2 VNETs. After peering, my 2 machines are able to ping each other.</p>
  
  <p>I am trying to dump messages to Kafka topic from Databricks cluster using Spark Structured Streaming &amp; I am getting socket timeout error.</p>
  
  <p>Upon research, I found that in Kafka we need to setup <code>listeners</code> &amp; <code>advertised.listeners</code> in <code>server.properties</code> file. </p>
  
  <p>In my scenario, what should I put the values for <code>listeners</code> &amp; <code>advertised.listeners</code>?  Would be very helpful if anyone can suggest me what all changes I need to make in <code>server.properties</code> file.</p>