Bind to both localhost and local network adapter

Trying to setup elasticsearch 2.1.0 from scratch

It can bind to localhost, or a network adapter, but not both.

Can you configure elasticsearch to listen on multiple interfaces? I believe elasticsearch 1.x could do this.

Here is every configuration I have tried.

network.host: _non_loopback_ #works against 10.x.x.x
network.host: _local_  #works against localhost
network.host: _local_,_non_loopback_ #doesn't work
network.host: [_local_,_non_loopback_] #only works on localhost
network.host: [ _local_, _non_loopback_ ] #only works on localhost

network.host: #Only works on local
  - _local_
  - _non_loopback_

network.host: #Only works on local
-
  - _local_
  - _non_loopback_

network.host: #Only works on local
-
  _local_
  _non_loopback

Will be supported in 2.2

1 Like