title: Elasticsearch: Failed to connect to localhost port 9200 - Connection refused
body: <p>When I tried connecting to Elasticsearch using the 
  <code>curl http://localhost:9200</code> it is working fine.</p>
  
  <p>But when I run the <code>curl http://IpAddress:9200</code> it is throwing an error saying </p>
  
  <blockquote>
    <p>Failed to connect to localhost port 9200: Connection refused</p>
  </blockquote>
  
  <p>How to resolve this error?</p>