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

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

* 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
connectors:
-
  connector_id: "f5wHM5YBRKkInU47WQM-"
  service_type: "sharepoint_online"
  api_key: "aUp3S001WUJSS2tJblU0N2VSRE06LU1XUTFGTm1RZFNSWDU4UElYNHpoQQ=="
elasticsearch:
  host: "http://localhost:9200"
  api_key: "aUp3S001WUJSS2tJblU0N2VSRE06LU1XUTFGTm1RZFNSWDU4UElYNHpoQQ=="

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.