How to bind Elasticsearch 2.0 on both Loopback and Non-Loopback interfaces?
As of ElasticSearch 7.x, this configuration has changed yet again. for a simple single node cluster bound to loopback, local and external IPs, you essentially do this:
network.host: [_local_, _site_, _global_]cluster.initial_master_nodes: node-1
The cluster node setting is explained here while the network host setting is in the documentation here, although it doesn't say how you would assign multiple values to network.host
.
Go to
'<path_to_elasticsearch>/elasticsearch-2.3.4/config'
Open elasticsearch.yml
Add network.host: 0.0.0.0
Now check which port elasticsearch is using (9200
is default), go to firewall inbound rules and add those ports.