How to connect ElasticSearch from other machine or same machine using IP address instead of localhost

Hi ,

I am using ElasticSearch version 6.7.0 and it works fine when I call http://localhost:9200/

{
  "name" : "ea31Cfe",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "K1KpeRbhSYKa0UFEaqVKrg",
  "version" : {
    "number" : "6.7.0",
    "build_flavor" : "default",
    "build_type" : "zip",
    "build_hash" : "8453f77",
    "build_date" : "2019-03-21T15:32:29.844721Z",
    "build_snapshot" : false,
    "lucene_version" : "7.7.0",
    "minimum_wire_compatibility_version" : "5.6.0",
    "minimum_index_compatibility_version" : "5.0.0"
  },
  "tagline" : "You Know, for Search"
}

I want to call the ip address that machine instead of localhost , something like this http://10.160.176.104:9200/

Unfortunately, I changed elasticsearch.yml configuration like this - > #network.host: 0.0.0.0 but nothing happened.

How can I configure this and how can I access this from other machine ?
Currently it is working Virtual machine, I also want to reach my local machine to this link http://10.160.176.104:9200/

Thanks in advance.

Try:

network.host: 10.160.176.104

Thanks for your response .

I forgot to remove # from config file :slight_smile: I removed and it worked
Thanks

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