# Connection refused errror for python elasticsearch client 6.8.22

**URL:** <https://discuss.elastic.co/t/connection-refused-errror-for-python-elasticsearch-client-6-8-22/314504>\
**Category:** Elasticsearch\
**Created:** [September 15, 2022, 11:41am UTC](https://discuss.elastic.co/t/connection-refused-errror-for-python-elasticsearch-client-6-8-22/314504 "2022-09-15T11:41:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![febryjose](https://avatars.discourse-cdn.com/v4/letter/f/cc9497/32.png) [@febryjose](https://discuss.elastic.co/u/febryjose)\
**Post date:** [September 15, 2022, 11:41am UTC](https://discuss.elastic.co/t/connection-refused-errror-for-python-elasticsearch-client-6-8-22/314504/1 "2022-09-15T11:41:54Z")

</div>

Hello Team,

I am facing issues related to python elasticsearch client, we have 3 VMs where elasticsearch is installed and we are using python to create elasticsearch client with host [ip1,ip2,ip3]. But connection refused error is happening when we create client for the same. 1. urllib3.exceptions.ConnectTimeoutError: (\<urllib3.connection.HTTPConnection object at 0x3e44e2a85dd0\>, 'Connection to \<host\_ip\> timed out. (connect timeout=10)').

Also we are able to connect to the VMs and we are getting curl -X GET "localhost:9200" details. What could be the reason of connection refusal while creating python client ? we have added 'network.host: 0.0.0.0' and 'discovery.zen.ping.unicast.hosts: [vm\_name1, vm\_name2, vm\_name3]'.

Can somebody give some hints to fix it?

We did elasticsearch upgrade from 6.7.0 to 6.8.22,

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 20, 2022, 12:03am UTC](https://discuss.elastic.co/t/connection-refused-errror-for-python-elasticsearch-client-6-8-22/314504/2 "2022-09-20T00:03:06Z")

</div>

Welcome to our community! 😃

6.8 is [EOL](https://www.elastic.co/support/eol) and no longer supported. You should really be looking to upgrade to a current version.

It'd be useful if you shared your Elasticsearch config and logs please.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 18, 2022, 12:03am UTC](https://discuss.elastic.co/t/connection-refused-errror-for-python-elasticsearch-client-6-8-22/314504/3 "2022-10-18T00:03:23Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
