# Custom transport port

**URL:** https://discuss.elastic.co/t/custom-transport-port/56689
**Category:** Elasticsearch
**Created:** [July 29, 2016, 1:44am UTC](https://discuss.elastic.co/t/custom-transport-port/56689 "2016-07-29T01:44:17Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![zozo6015](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zozo6015/32/12117_2.png) [@zozo6015](https://discuss.elastic.co/u/zozo6015)
#### Post date: [July 29, 2016, 1:44am UTC](https://discuss.elastic.co/t/custom-transport-port/56689/1 "2016-07-29T01:44:17Z")

</div>

Hello,

I have an es cluster and I need to use custom transport path for various reasons. I have set transport.tcp.port: 19300:19400 on all nodes but the nodes cannot discover eachother.

Any help how to get it running?

cheers,  
Peter

---

<div class="post-metadata">

### Author: ![Joshua\_Rich](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joshua_rich/32/44953_2.png) [@Joshua\_Rich](https://discuss.elastic.co/u/Joshua_Rich)
#### Post date: [July 29, 2016, 5:04am UTC](https://discuss.elastic.co/t/custom-transport-port/56689/2 "2016-07-29T05:04:28Z")

</div>

I don't think Elasticsearch accepts a colon separating the port range. Did it throw an exception on start-up?

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [July 29, 2016, 8:27am UTC](https://discuss.elastic.co/t/custom-transport-port/56689/3 "2016-07-29T08:27:45Z")

</div>

You need to define the nodes as unicast list.

Elasticsearch tries only to connect to ports from 9300-9399 if port is not set in unicast list.

---

<div class="post-metadata">

### Author: ![zozo6015](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zozo6015/32/12117_2.png) [@zozo6015](https://discuss.elastic.co/u/zozo6015)
#### Post date: [July 29, 2016, 1:54pm UTC](https://discuss.elastic.co/t/custom-transport-port/56689/4 "2016-07-29T13:54:42Z")

</div>

Actually auto discovery is working with custom ports. It was firewall blocking the nodes from talking to eachother.

Thanks all for you help.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [July 29, 2016, 6:57pm UTC](https://discuss.elastic.co/t/custom-transport-port/56689/5 "2016-07-29T18:57:54Z")

</div>

Oh? Really?

I guess all nodes are using the same range then???

---

<div class="post-metadata">

### Author: ![zozo6015](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zozo6015/32/12117_2.png) [@zozo6015](https://discuss.elastic.co/u/zozo6015)
#### Post date: [July 30, 2016, 11:34am UTC](https://discuss.elastic.co/t/custom-transport-port/56689/6 "2016-07-30T11:34:44Z")

</div>

Yes, all nodes using the same exact same range and we are also using the gce plugin for the autodiscovery.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [July 30, 2016, 11:48am UTC](https://discuss.elastic.co/t/custom-transport-port/56689/7 "2016-07-30T11:48:53Z")

</div>

Ha! So you changed es-port in GCE metadata then?

---

<div class="post-metadata">

### Author: ![zozo6015](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zozo6015/32/12117_2.png) [@zozo6015](https://discuss.elastic.co/u/zozo6015)
#### Post date: [July 30, 2016, 12:12pm UTC](https://discuss.elastic.co/t/custom-transport-port/56689/8 "2016-07-30T12:12:15Z")

</div>

No, not touched any metadata on GCE, only thing I did I set up the transport.tcp.port: and http:port inside the elasticsearch configuration and modified the firewall settings on GCE to allow traffic on the configured ports. And added the gce related configuration in the elasticsearch.yml. Anything else worked out of the box if I can say that.

---

<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 5, 2017, 10:31pm UTC](https://discuss.elastic.co/t/custom-transport-port/56689/9 "2017-07-05T22:31:33Z")

</div>


