# Want to ask what should i do to make my elastic cluster since it is not working upon changing network.host to 0.0.0.0

**URL:** <https://discuss.elastic.co/t/want-to-ask-what-should-i-do-to-make-my-elastic-cluster-since-it-is-not-working-upon-changing-network-host-to-0-0-0-0/377118>\
**Category:** Elastic Search\
**Tags:** docker\
**Created:** [April 14, 2025, 6:28pm UTC](https://discuss.elastic.co/t/want-to-ask-what-should-i-do-to-make-my-elastic-cluster-since-it-is-not-working-upon-changing-network-host-to-0-0-0-0/377118 "2025-04-14T18:28:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phia1](https://avatars.discourse-cdn.com/v4/letter/p/eb9ed0/32.png) [@Phia1](https://discuss.elastic.co/u/Phia1)\
**Post date:** [April 14, 2025, 6:28pm UTC](https://discuss.elastic.co/t/want-to-ask-what-should-i-do-to-make-my-elastic-cluster-since-it-is-not-working-upon-changing-network-host-to-0-0-0-0/377118/1 "2025-04-14T18:28:40Z")

</div>

So i'm trying to deploy a sharepoint connector that is deployed in docker in another vm.  
I cant find the connector so im configuring the yaml file earlier. then I came across an answer in the internet saying to change the network.host value to 0.0.0.0 rather than setting it in a specific ip only. #Elastic Stack > Elasticsearch

this is my yaml file config btw

```auto
* cluster.name: elasticsearch-demo
* node.name: node-1
* node.roles: [data, data_content, data_hot, ingest, master, remote_cluster_client, transform]
* path.data: /var/lib/elasticsearch
* path.logs: /var/log/elasticsearch
* network.host: 192.168.51.24
* discovery.seed_hosts: ["192.168.51.24"]
* cluster.initial_master_nodes: ["node-1", "192.168.51.24"]
* xpack.security.enabled: true
* xpack.security.enrollment.enabled: true
* xpack.security.http.ssl:
  enabled: true
  keystore.path: certs/http.p12
* xpack.security.transport.ssl:
  enabled: true
  verification_mode: certificate
  keystore.path: certs/transport.p12
  truststore.path: certs/transport.p12

* http.host: 0.0.0.0
* transport.host: 0.0.0.0

```

```auto
connectors:
-
  connector_id: "f5wHM5YBRKkInU47WQM-"
  service_type: "sharepoint_online"
  api_key: "aUp3S001WUJSS2tJblU0N2VSRE06LU1XUTFGTm1RZFNSWDU4UElYNHpoQQ=="
elasticsearch:
  host: "http://localhost:9200"
  api_key: "aUp3S001WUJSS2tJblU0N2VSRE06LU1XUTFGTm1RZFNSWDU4UElYNHpoQQ=="

```

---

<div class="post-metadata">

**Author:** ![Artem\_Shelkovnikov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/artem_shelkovnikov/32/134322_2.png) [@Artem\_Shelkovnikov](https://discuss.elastic.co/u/Artem_Shelkovnikov)\
**Post date:** [April 15, 2025, 8:49am UTC](https://discuss.elastic.co/t/want-to-ask-what-should-i-do-to-make-my-elastic-cluster-since-it-is-not-working-upon-changing-network-host-to-0-0-0-0/377118/2 "2025-04-15T08:49:36Z")

</div>

Hi @Phia1,

Since you're deploying connectors in Docker you need to make sure your docker is configured to have access to your Elasticsearch.

Alternatively, you'll need to change the configuration for connectors to point not to `localhost`, but to endpoint specific for your OS - for example, for MacOS it would be `http://host.docker.internal:9200` instead of `http://localhost:9200`. For linux for it to work you might need to add `--add-host=host.docker.internal:host-gateway` to your docker run command.
