# Publish\_port for Transport profiles

**URL:** https://discuss.elastic.co/t/publish-port-for-transport-profiles/144579
**Category:** Elasticsearch
**Created:** [August 15, 2018, 7:22pm UTC](https://discuss.elastic.co/t/publish-port-for-transport-profiles/144579 "2018-08-15T19:22:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![cappy](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@cappy](https://discuss.elastic.co/u/cappy)
#### Post date: [August 15, 2018, 7:22pm UTC](https://discuss.elastic.co/t/publish-port-for-transport-profiles/144579/1 "2018-08-15T19:22:28Z")

</div>

From my testing, it appears you cannot use `publish_port` in a Transport profile. In my case, I need Elasticsearch to be accessible via a local port that I specify and perform a port forward with (Ex.50000) (I query this from another node using cross cluster search) AND I need to be able to have another node connect to my Elasticsearch instance from external.

I tried doing this with transport profiles likes so:

```
transport.profiles.internal.bind_host: 172.18.0.1
transport.profiles.internal.port: 50000
transport.profiles.external.publish_host: 192.168.1.5

```

The external node is able to connect and join the cluster, etc, but my cross cluster node cannot query this node -- the CCS node's `_cluster/settings` are configured to query `172.18.0.1:50000`

The CCS portion works if I do:

```
transport.bind_host: 0.0.0.0
transport.publish_host: 172.18.0.1
transport.publish_port: 50000

```

The problem comes when I try to combine the two.

Logically, I would like for the transport profiles to work like:

```
transport.profiles.internal.bind_host: 0.0.0.0
transport.profiles.internal.port: 9300
transport.profiles.internal.publish_host: 172.18.0.1
transport.profiles.internal.publish_port: 50000

```

Is something like this possible?

Thanks,  
Cappy

---

<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: [September 12, 2018, 7:22pm UTC](https://discuss.elastic.co/t/publish-port-for-transport-profiles/144579/2 "2018-09-12T19:22:46Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
