# Unicast configuration with a range of ports

**URL:** <https://discuss.elastic.co/t/unicast-configuration-with-a-range-of-ports/20110>\
**Category:** Elasticsearch\
**Created:** [October 7, 2014, 10:54am UTC](https://discuss.elastic.co/t/unicast-configuration-with-a-range-of-ports/20110 "2014-10-07T10:54:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alberto\_Martinez\_Bal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alberto_martinez_bal/32/1226_2.png) [@Alberto\_Martinez\_Bal](https://discuss.elastic.co/u/Alberto_Martinez_Bal)\
**Post date:** [October 7, 2014, 10:54am UTC](https://discuss.elastic.co/t/unicast-configuration-with-a-range-of-ports/20110/1 "2014-10-07T10:54:10Z")

</div>

Hi.

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: "192.168.0.10[9405-9414]"

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

- discovery.zen.ping.unicast.hosts: "192.168.0.12[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 192.168.0.10:_9406_, the  
second node is not able to find it. But, if my first node is running on  
192.168.0.10:9405 (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  
node?

If I am wrong, whats the difference between:

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

and

- discovery.zen.ping.unicast.hosts: "192.168.0.10:9405"

Thanks in advance.

Best Regards,  
Alberto.

--  
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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/cf40a4d2-6bec-4968-96cb-f90649f99610%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:57am UTC](https://discuss.elastic.co/t/unicast-configuration-with-a-range-of-ports/20110/2 "2017-07-06T00:57:55Z")

</div>


