<p dir="auto">Hi,</p>
<p dir="auto">Can elasticsearch be configured to listen on multiple IPs, but not on all?<br>
So I want it to listen on all private ips + localhost, but not on the public ips all present on the same node.</p>
<p dir="auto">Thanks</p>
<p dir="auto">Right now you can bind Elasticsearch to only a single address with either:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="network.bind_host: &quot;some_ip&quot;"><pre class="notranslate"><span class="pl-ent">network.bind_host</span>: <span class="pl-s"><span class="pl-pds">"</span>some_ip<span class="pl-pds">"</span></span></pre></div>
<p dir="auto">or</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="network.host: &quot;some_ip&quot;"><pre class="notranslate"><span class="pl-ent">network.host</span>: <span class="pl-s"><span class="pl-pds">"</span>some_ip<span class="pl-pds">"</span></span></pre></div>
<p dir="auto">It'd be convenient to be able to bind to multiple hosts like so:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="network.bind_host: [ &quot;some_ip&quot;, &quot;some_other_ip&quot; ]"><pre class="notranslate"><span class="pl-ent">network.bind_host</span>: <span class="pl-s">[ "some_ip", "some_other_ip" ]</span></pre></div>
<p dir="auto">In particular it'd allow the convenient configuration:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="network.bind_host: [ &quot;some_data_center_accessible_ip&quot;, &quot;localhost&quot; ]
network.publish_host: &quot;some_data_center_accessible_ip&quot;"><pre class="notranslate"><span class="pl-ent">network.bind_host</span>: <span class="pl-s">[ "some_data_center_accessible_ip", "localhost" ]</span>
<span class="pl-ent">network.publish_host</span>: <span class="pl-s"><span class="pl-pds">"</span>some_data_center_accessible_ip<span class="pl-pds">"</span></span></pre></div>
<p dir="auto">Which would allow elasticsearch to respond to requests to localhost.</p>