# Open ports between nodes an main configuration

**URL:** <https://discuss.elastic.co/t/open-ports-between-nodes-an-main-configuration/15336>\
**Category:** Elasticsearch\
**Created:** [January 21, 2014, 7:29am UTC](https://discuss.elastic.co/t/open-ports-between-nodes-an-main-configuration/15336 "2014-01-21T07:29:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justas\_Balcas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/justas_balcas/32/1856_2.png) [@Justas\_Balcas](https://discuss.elastic.co/u/Justas_Balcas)\
**Post date:** [January 21, 2014, 7:29am UTC](https://discuss.elastic.co/t/open-ports-between-nodes-an-main-configuration/15336/1 "2014-01-21T07:29:36Z")

</div>

Hello All,

I have configured elasticsearch with ports 9200 and 9300. Everything works  
fine, as expected, but one configuration I haven`t founded:

elasticsearch 0.90.10  
3 indexes, each with 5 nodes without replicas

Then I do 'lsof -i' , I get a huge list with open ports (ESTABLISHED) from  
39619 - to 39634, and on another server running for experiments it makes  
ESTABLISHED connections from these ports : 43010 - 43025.

Is it available to say in configuration, that it would use ports from 9301  
to 9400? O maybe how I could know which ports it would take always ?

Thanks.

--  
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/bedf0990-65a8-4469-aed1-cd9e32af5828%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bedf0990-65a8-4469-aed1-cd9e32af5828%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 21, 2014, 8:46am UTC](https://discuss.elastic.co/t/open-ports-between-nodes-an-main-configuration/15336/2 "2014-01-21T08:46:25Z")

</div>

9200 and 9300 are the bindings for inbound traffic.  
Linux uses the higher ports for outgoing connections (eg from the node to  
other cluster members on 9200/9300).

Regards,  
Mark Walkom

Infrastructure Engineer  
Campaign Monitor  
email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
web: [www.campaignmonitor.com](http://www.campaignmonitor.com)

On 21 January 2014 18:29, Justas Balcas [juztas@gmail.com](mailto:juztas@gmail.com) wrote:

> Hello All,
> 
> I have configured elasticsearch with ports 9200 and 9300. Everything works  
> fine, as expected, but one configuration I haven`t founded:
> 
> elasticsearch 0.90.10  
> 3 indexes, each with 5 nodes without replicas
> 
> Then I do 'lsof -i' , I get a huge list with open ports (ESTABLISHED) from  
> 39619 - to 39634, and on another server running for experiments it makes  
> ESTABLISHED connections from these ports : 43010 - 43025.
> 
> Is it available to say in configuration, that it would use ports from 9301  
> to 9400? O maybe how I could know which ports it would take always ?
> 
> Thanks.
> 
> --  
> 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/bedf0990-65a8-4469-aed1-cd9e32af5828%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bedf0990-65a8-4469-aed1-cd9e32af5828%40googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/CAEM624ZooVnEcCsP0Yr3gFxw7e7%2B\_S%2Bn5EXsO6W2zOCv8qZmdA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624ZooVnEcCsP0Yr3gFxw7e7%2B_S%2Bn5EXsO6W2zOCv8qZmdA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Justas\_Balcas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/justas_balcas/32/1856_2.png) [@Justas\_Balcas](https://discuss.elastic.co/u/Justas_Balcas)\
**Post date:** [January 21, 2014, 9:18am UTC](https://discuss.elastic.co/t/open-ports-between-nodes-an-main-configuration/15336/3 "2014-01-21T09:18:33Z")

</div>

Maybe I was misunderstood

This is what I am getting :

TCP XXX.XXX.XXX.XXX:39619-\>XXX.XXX.XXX.XXX:9300 (ESTABLISHED)  
TCP XXX.XXX.XXX.XXX:9300-\>XXX.XXX.XXX.XXX:39619 (ESTABLISHED)  
TCP XXX.XXX.XXX.XXX:39620-\>XXX.XXX.XXX.XXX:9300 (ESTABLISHED)  
TCP XXX.XXX.XXX.XXX:39621-\>XXX.XXX.XXX.XXX:9300 (ESTABLISHED)  
TCP XXX.XXX.XXX.XXX:9300-\>XXX.XXX.XXX.XXX:39620 (ESTABLISHED)

Is it available somehow to control in elasticsearch configuration these  
port range 39619 - XXXXX ?

2014 m. sausio 21 d., antradienis 09:29:36 UTC+2, Justas Balcas rašė:

> Hello All,
> 
> I have configured elasticsearch with ports 9200 and 9300. Everything works  
> fine, as expected, but one configuration I haven`t founded:
> 
> elasticsearch 0.90.10  
> 3 indexes, each with 5 nodes without replicas
> 
> Then I do 'lsof -i' , I get a huge list with open ports (ESTABLISHED) from  
> 39619 - to 39634, and on another server running for experiments it makes  
> ESTABLISHED connections from these ports : 43010 - 43025.
> 
> Is it available to say in configuration, that it would use ports from 9301  
> to 9400? O maybe how I could know which ports it would take always ?
> 
> Thanks.

--  
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/6986d023-3b9e-4527-a5bf-473bcd719c1e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6986d023-3b9e-4527-a5bf-473bcd719c1e%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 21, 2014, 9:53am UTC](https://discuss.elastic.co/t/open-ports-between-nodes-an-main-configuration/15336/4 "2014-01-21T09:53:15Z")

</div>

No, linux uses a random port for outgoing connections.  
I'm not sure what the range is or how it's allocated, but my guess would be  
it uses ports from 32768-65535.

Regards,  
Mark Walkom

Infrastructure Engineer  
Campaign Monitor  
email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
web: [www.campaignmonitor.com](http://www.campaignmonitor.com)

On 21 January 2014 20:18, Justas Balcas [juztas@gmail.com](mailto:juztas@gmail.com) wrote:

> Maybe I was misunderstood
> 
> This is what I am getting :
> 
> TCP XXX.XXX.XXX.XXX:39619-\>XXX.XXX.XXX.XXX:9300 (ESTABLISHED)  
> TCP XXX.XXX.XXX.XXX:9300-\>XXX.XXX.XXX.XXX:39619 (ESTABLISHED)  
> TCP XXX.XXX.XXX.XXX:39620-\>XXX.XXX.XXX.XXX:9300 (ESTABLISHED)  
> TCP XXX.XXX.XXX.XXX:39621-\>XXX.XXX.XXX.XXX:9300 (ESTABLISHED)  
> TCP XXX.XXX.XXX.XXX:9300-\>XXX.XXX.XXX.XXX:39620 (ESTABLISHED)
> 
> Is it available somehow to control in elasticsearch configuration these  
> port range 39619 - XXXXX ?
> 
> 2014 m. sausio 21 d., antradienis 09:29:36 UTC+2, Justas Balcas rašė:
> 
> > Hello All,
> > 
> > I have configured elasticsearch with ports 9200 and 9300. Everything  
> > works fine, as expected, but one configuration I haven`t founded:
> > 
> > elasticsearch 0.90.10  
> > 3 indexes, each with 5 nodes without replicas
> > 
> > Then I do 'lsof -i' , I get a huge list with open ports (ESTABLISHED)  
> > from 39619 - to 39634, and on another server running for experiments it  
> > makes ESTABLISHED connections from these ports : 43010 - 43025.
> > 
> > Is it available to say in configuration, that it would use ports from  
> > 9301 to 9400? O maybe how I could know which ports it would take always ?
> > 
> > Thanks.
> > 
> > --  
> > 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/6986d023-3b9e-4527-a5bf-473bcd719c1e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6986d023-3b9e-4527-a5bf-473bcd719c1e%40googlegroups.com)  
> > .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/CAEM624biw%3DzQjGmzLCkUL9U-8jUNzrq695w4%2B-6Vr%2BduxGHnsQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624biw%3DzQjGmzLCkUL9U-8jUNzrq695w4%2B-6Vr%2BduxGHnsQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 1:55am UTC](https://discuss.elastic.co/t/open-ports-between-nodes-an-main-configuration/15336/5 "2017-07-06T01:55:40Z")

</div>


