Connection Refused When Connecting to Elasticsearch Remotely
<p>I'm trying to use elasticsearch-py to connect to my server, but I'm having some serious issues. For whatever reason, when I pass in the credentials through python my connection is being refused.</p>

<p>Initially, I thought it could be a result of nginx configurations or bad certificates, but updating these did not improve the situation. I can log into the server from the browser, curl, or my phone using RFC-1738 formatted URLs (<a href="http://user:pass@111.222.333.444/space" rel="nofollow">http://user:pass@111.222.333.444/space</a>)</p>

<p>What else can I try?</p>

<p>In <code>config/elasticsearch.yml</code> put</p>

<pre><code>network.host: 0.0.0.0
</code></pre>

<p>to allow access from remote system. OR, replace <code>0.0.0.0</code> with the IP of the network/sub-network you would be using for accessing the Elastic Search.</p>

python elasticsearch connection