# How can i connect to my elasticsearch cluster from another machine?

**URL:** <https://discuss.elastic.co/t/how-can-i-connect-to-my-elasticsearch-cluster-from-another-machine/74808>\
**Category:** Elasticsearch\
**Created:** [February 12, 2017, 1:56pm UTC](https://discuss.elastic.co/t/how-can-i-connect-to-my-elasticsearch-cluster-from-another-machine/74808 "2017-02-12T13:56:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yaswanth](https://avatars.discourse-cdn.com/v4/letter/y/94ad74/32.png) [@Yaswanth](https://discuss.elastic.co/u/Yaswanth)\
**Post date:** [February 12, 2017, 1:56pm UTC](https://discuss.elastic.co/t/how-can-i-connect-to-my-elasticsearch-cluster-from-another-machine/74808/1 "2017-02-12T13:56:39Z")

</div>

Hi,

I want to connect my elasticsearch cluster from another machine i went through some documentation where they had mentioned that i had change the`network.bind_host : 0` .But i didn't find the `network.bind_host` in my elasticsearch.yml . I got only `network.host` Even i tried it by giving as  
`network.host :0` but i cant able to connect from another machine. And i also tried removing ## before `network.host :0` which throws an error when starting elasticsearch cluster.

When i am connecting from another machine i have to give `http://clustermachingip:9200` right?  
Can anyone please help on this problem?

Thanks..

---

<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:** [February 12, 2017, 4:32pm UTC](https://discuss.elastic.co/t/how-can-i-connect-to-my-elasticsearch-cluster-from-another-machine/74808/2 "2017-02-12T16:32:21Z")

</div>

Beware of spaces.

Read: [https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html#network.host](https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html#network.host)

---

<div class="post-metadata">

**Author:** ![Yaswanth](https://avatars.discourse-cdn.com/v4/letter/y/94ad74/32.png) [@Yaswanth](https://discuss.elastic.co/u/Yaswanth)\
**Post date:** [February 12, 2017, 4:40pm UTC](https://discuss.elastic.co/t/how-can-i-connect-to-my-elasticsearch-cluster-from-another-machine/74808/3 "2017-02-12T16:40:01Z")

</div>

Thanks..for your suggestion..  
That means you are saying that by giving `network.host :0` in elasticsearch.yml i can able to connect from remote machines .

> [@Yaswanth](#):
>
> When i am connecting from another machine i have to give [http://clustermachingip:9200](http://clustermachingip:9200) right?

Is the above command for connecting to elasticsearch cluster from remote machine is correct?  
Correct me if i am wrong..

Thanks

---

<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:** [February 12, 2017, 8:03pm UTC](https://discuss.elastic.co/t/how-can-i-connect-to-my-elasticsearch-cluster-from-another-machine/74808/4 "2017-02-12T20:03:48Z")

</div>

Something like:

```auto
network.host: 0.0.0.0

```

Should work. But look at your logs. It will tell you why it can't start in case you are missing some important configuration settings.

---

<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:** [March 12, 2017, 8:04pm UTC](https://discuss.elastic.co/t/how-can-i-connect-to-my-elasticsearch-cluster-from-another-machine/74808/5 "2017-03-12T20:04:01Z")

</div>

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