Binde Elasticsearch with local Ip

Hi,
I'm using Elasticsearch6.4.1 and I want to access the database from another machine in my local network using my local IP address.
For that I 've made few changes in my elasticsearch.yml file which are shown blow:

# ======================== Elasticsearch Configuration =========================

 cluster.name: demousecase

 node.name: "node-1"

 network.host: 127.0.0.1
 discovery.zen.ping.unicast.hosts: ["127.0.0.1"]
 http.host: 0.0.0.0
 http.port: 9200
 discovery.type: single-node

Only this much line are uncommented in my elasticsearch.yml file.

Suppose my local IP address is 192.168.0.111
So the problem is I'm able to hit Elasticsearch at localhost:9200, 127.0.0.1:9200 and 0.0.0.0:9200 but NOT at 192.168.0.111:9200. How can is access Elasticsearch at 192.168.0.111:9200

Please suggest me how can I do so.

Thanks in Advance.

Hi,

I have resolved the issue by commenting all line and except

 network.host: 0.0.0.0
 http.port: 9200

Thanks.

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