# Connection refused - elastic search doesnt listen anywhere

**URL:** https://discuss.elastic.co/t/connection-refused-elastic-search-doesnt-listen-anywhere/51977
**Category:** Elasticsearch
**Created:** [June 6, 2016, 3:53pm UTC](https://discuss.elastic.co/t/connection-refused-elastic-search-doesnt-listen-anywhere/51977 "2016-06-06T15:53:22Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![xon](https://avatars.discourse-cdn.com/v4/letter/x/838e76/32.png) [@xon](https://discuss.elastic.co/u/xon)
#### Post date: [June 6, 2016, 3:53pm UTC](https://discuss.elastic.co/t/connection-refused-elastic-search-doesnt-listen-anywhere/51977/1 "2016-06-06T15:53:23Z")

</div>

Straight to my configuration... I edited the `/etc/elasticsearch/elasticsearch.yml` and I have tried the following different options:  
network.host: localhost  
network.host: 127.0.0.1  
network.host: 0.0.0.0

I also tried _local_ instead of localhost!

I also played around with the  
`network.bind_host: 0.0.0.0`  
or  
`network.bind_host: 127.0.0.1`

I havent changed the `http.port`or any other thing in general...

to my surprise when I  
`curl -X GET localhost:9200` I get nothing back.  
By doing `lsof -i TCP` I dont see elasticsearch listening anywhere, and with `service elasticsearch status` I see it running...

Im running Debian 3.16.7.

Any help please?

---

<div class="post-metadata">

### Author: ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)
#### Post date: [June 6, 2016, 4:07pm UTC](https://discuss.elastic.co/t/connection-refused-elastic-search-doesnt-listen-anywhere/51977/2 "2016-06-06T16:07:06Z")

</div>

What version of Elasticsearch is it?

Is Elasticsearch running? Like, does it show up in `ps aux | grep java`?

Has it logged anything in `/var/log/elasticsearch/clustername.log`? It ought to log where it has bound.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [June 6, 2016, 5:39pm UTC](https://discuss.elastic.co/t/connection-refused-elastic-search-doesnt-listen-anywhere/51977/3 "2016-06-06T17:39:52Z")

</div>

Also could you try `curl -X GET 127.0.0.1:9200` instead of localhost?

Not sure it would help but is worth asking 🙂

---

<div class="post-metadata">

### Author: ![xon](https://avatars.discourse-cdn.com/v4/letter/x/838e76/32.png) [@xon](https://discuss.elastic.co/u/xon)
#### Post date: [June 7, 2016, 10:20am UTC](https://discuss.elastic.co/t/connection-refused-elastic-search-doesnt-listen-anywhere/51977/4 "2016-06-07T10:20:55Z")

</div>

The issue was that in version 1.1.0 nothing really works rofl. I am trying 2.2.2 now thanks

---

<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: [July 5, 2017, 10:45pm UTC](https://discuss.elastic.co/t/connection-refused-elastic-search-doesnt-listen-anywhere/51977/5 "2017-07-05T22:45:40Z")

</div>


