title: Kibana startup fails with License information and later with Unable to retrieve version information
body: <p>I'm tried to follow this <a href="https://phoenixnap.com/kb/install-elk-stack-centos-8" rel="nofollow noreferrer">guideline</a> for installing <code>ELK</code> on Centos 8 (on top of one AWS cluster).</p>
  <p>After installing <code>elastic</code> and <code>kibana</code>, the <code>kibana</code> startup failed with:</p>
  <pre><code>*&quot;message&quot;:&quot;License information could not be obtained from Elasticsearch
  </code></pre>
  <p>I googled it, and realized I should use OSS version (latest is 7.10.2)
  so make sure to install only OSS version. you can use this <a href="https://www.itzgeek.com/how-tos/linux/centos-how-tos/how-to-install-elk-stack-on-rhel-8.html" rel="nofollow noreferrer">guideline</a></p>
  <p>after that, I got new error from <code>kibana.log</code></p>
  <pre><code>-08T07:19:32Z&quot;,&quot;tags&quot;:[&quot;error&quot;,&quot;savedobjects-service&quot;],&quot;pid&quot;:62767,&quot;message&quot;:&quot;Unable to retrieve version information from Elasticsearch nodes.&quot;}
  </code></pre>
  <p>I tried to google it, but no solution worked for me.</p>
  <p>my <code>kibana.yaml</code>:</p>
  <pre><code>server.port: 5601
  server.host: &quot;0.0.0.0&quot;
  elasticsearch.hosts: &quot;[my public AWS instance ip:9200]&quot;
  </code></pre>
  <p>my <code>elasticsearch.yaml</code>:</p>
  <pre><code>path.data: /var/lib/elasticsearch
  path.logs: /var/log/elasticsearch
  network.host: 0.0.0.0
  http.port: 9200
  discovery.seed_hosts: &quot;[my private AWS instance ip]&quot;
  cluster.initial_master_nodes: &quot;[my private AWS instance ip]&quot;
  </code></pre>
  <p><strong>Update:</strong></p>
  <p>If I'm changing this line in <code>kibana.yaml</code> file to:</p>
  <pre><code>elasticsearch.hosts: &quot;http://localhost:9200&quot;
  </code></pre>
  <p>Then it works. what is the root cause? why it can't access elastic public IP but only local?</p>