Unicast configuration with a range of ports


I have found some problems/doubts while configuring ES to use unicast
discovery in my cluster.

I have 2 nodes and this is the configuration that I am using:

  • transport.tcp.port: 9405-9414
  • discovery.zen.ping.multicast.enabled: false
  • discovery.zen.ping.unicast.hosts: "[9405-9414]"

(the second node has the same configuration, but pointing to the IP of the
first one);

  • discovery.zen.ping.unicast.hosts: "[9405-9414]"

My problems appears with the range of ports for unicast discovery. It looks
like ES is only scanning the first port, but not the whole range.

For instance, if my first node is running on, the
second node is not able to find it. But, if my first node is running on (first port of the range), everything works as expected.

Maybe I have a missundertanding about how this range of ports works but, as
far as 9406 is within the range 9405-9414, why is not finding the other

If I am wrong, whats the difference between:

  • discovery.zen.ping.unicast.hosts: "[9405-9414]"


  • discovery.zen.ping.unicast.hosts: ""

Thanks in advance.

Best Regards,

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/cf40a4d2-6bec-4968-96cb-f90649f99610%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.