# Exposing 'transport.tcp.port' to outside world

**URL:** https://discuss.elastic.co/t/exposing-transport-tcp-port-to-outside-world/102232
**Category:** Elasticsearch
**Created:** [September 29, 2017, 9:33am UTC](https://discuss.elastic.co/t/exposing-transport-tcp-port-to-outside-world/102232 "2017-09-29T09:33:35Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![NikhilJoshi2](https://avatars.discourse-cdn.com/v4/letter/n/bbce88/32.png) [@NikhilJoshi2](https://discuss.elastic.co/u/NikhilJoshi2)
#### Post date: [September 29, 2017, 9:33am UTC](https://discuss.elastic.co/t/exposing-transport-tcp-port-to-outside-world/102232/1 "2017-09-29T09:33:35Z")

</div>

In elasticsearch.yml file of version 5.5.0, I have below:

> http.port: 1180  
> transport.tcp.port: `1183`

Then I went through various Elasticsearch documentation ([this](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html) and [this](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-transport.html)) and able to expose port 1180 to outside world by configuring below two:

> network.host: 127.0.0.1  
> http.host: 0.0.0.0

**Problem** : I am not able to expose port `1183` to outside world (it's only accessible inside localhost). Tried below:

> transport.publish\_port: `1183`

Please guide.

---

<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: [September 29, 2017, 11:43am UTC](https://discuss.elastic.co/t/exposing-transport-tcp-port-to-outside-world/102232/2 "2017-09-29T11:43:35Z")

</div>

Could you share your logs please?

Use

````
```
CODE
```

````

To format your code instead of

```
> CODE

```

Thanks

---

<div class="post-metadata">

### Author: ![NikhilJoshi2](https://avatars.discourse-cdn.com/v4/letter/n/bbce88/32.png) [@NikhilJoshi2](https://discuss.elastic.co/u/NikhilJoshi2)
#### Post date: [September 29, 2017, 12:09pm UTC](https://discuss.elastic.co/t/exposing-transport-tcp-port-to-outside-world/102232/3 "2017-09-29T12:09:49Z")

</div>

**Logs** :

> [2017-09-29T08:04:00,412][INFO][o.e.n.Node] [node2] initializing ...  
> [2017-09-29T08:04:00,491][INFO][o.e.n.Node] [node2] node name [node2], node ID [abc-R-sdfjk32]  
> [2017-09-29T08:04:00,491][INFO][o.e.n.Node] [node2] version[5.5.0], pid[15866], build[123], OS[Linux/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8]  
> [2017-09-29T08:04:01,419][INFO][o.e.p.PluginsService] [node2] loaded module [aggs-matrix-stats]  
> [2017-09-29T08:04:01,419][INFO][o.e.p.PluginsService] [node2] loaded module [ingest-common]  
> [2017-09-29T08:04:01,420][INFO][o.e.p.PluginsService] [node2] loaded module [lang-expression]  
> [2017-09-29T08:04:01,420][INFO][o.e.p.PluginsService] [node2] loaded module [lang-groovy]  
> [2017-09-29T08:04:01,420][INFO][o.e.p.PluginsService] [node2] loaded module [lang-mustache]  
> [2017-09-29T08:04:01,420][INFO][o.e.p.PluginsService] [node2] loaded module [lang-painless]  
> [2017-09-29T08:04:01,420][INFO][o.e.p.PluginsService] [node2] loaded module [parent-join]  
> [2017-09-29T08:04:01,420][INFO][o.e.p.PluginsService] [node2] loaded module [percolator]  
> [2017-09-29T08:04:01,420][INFO][o.e.p.PluginsService] [node2] loaded module [reindex]  
> [2017-09-29T08:04:01,421][INFO][o.e.p.PluginsService] [node2] loaded module [transport-netty3]  
> [2017-09-29T08:04:01,421][INFO][o.e.p.PluginsService] [node2] loaded module [transport-netty4]  
> [2017-09-29T08:04:01,421][INFO][o.e.p.PluginsService] [node2] no plugins loaded  
> [2017-09-29T08:04:02,742][INFO][o.e.d.DiscoveryModule] [node2] using discovery type [zen]  
> [2017-09-29T08:04:03,314][INFO][o.e.n.Node] [node2] initialized  
> [2017-09-29T08:04:03,314][INFO][o.e.n.Node] [node2] starting ...  
> [2017-09-29T08:04:03,523][INFO][o.e.t.TransportService] [node2] publish\_address {127.0.0.1: **1183** }, bound\_addresses {127.0.0.1: **1183** }  
> [2017-09-29T08:04:06,593][INFO][o.e.c.s.ClusterService] [node2] new\_master {node2}{abc-R-sdfjk32}{n233jcd\_23nXCad}{127.0.0.1}{127.0.0.1: **1183** }, reason: zen-disco-elected-as-master ([0] nodes joined)  
> [2017-09-29T08:04:06,627][INFO][o.e.h.n.Netty4HttpServerTransport] [node2] publish\_address {168.72.195.179:1180}, bound\_addresses {0.0.0.0:1180}  
> [2017-09-29T08:04:06,627][INFO][o.e.n.Node] [node2] started

**Code** :  
# --- Network ---  
# Set the bind address to a specific IP (IPv4 or IPv6):  
#  
network.host: 127.0.0.1  
http.host: 0.0.0.0  
#  
# Set a custom port for HTTP:  
#  
http.port: 1180  
transport.tcp.port: **1183**  
transport.publish\_port: **1183**

---

<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: [September 29, 2017, 12:55pm UTC](https://discuss.elastic.co/t/exposing-transport-tcp-port-to-outside-world/102232/4 "2017-09-29T12:55:56Z")

</div>

Please use the right format for code. PREFORMATTED TEXT and not BLOCKQUOTE.

Thanks.

So 0.0.0.0:1180 is the REST layer accessible from another workstation.  
But as you defined `network.host: 127.0.0.1`, Transport layer is only available from localhost `127.0.0.1:1183`.

If you want to make both transport and http accessible from outside, do this:

```auto
network.host: 0.0.0.0
http.port: 1180
transport.tcp.port: 1183

```

---

<div class="post-metadata">

### Author: ![NikhilJoshi2](https://avatars.discourse-cdn.com/v4/letter/n/bbce88/32.png) [@NikhilJoshi2](https://discuss.elastic.co/u/NikhilJoshi2)
#### Post date: [September 29, 2017, 1:07pm UTC](https://discuss.elastic.co/t/exposing-transport-tcp-port-to-outside-world/102232/5 "2017-09-29T13:07:55Z")

</div>

Configuration `network.host: 0.0.0.0` doesn't work as it throws:

```
[2017-09-29T09:01:19,368][INFO][o.e.n.Node] [node2] starting ...
[2017-09-29T09:01:19,602][INFO][o.e.t.TransportService] [node2] publish_address {MY_VALID_IP:1183}, bound_addresses {0.0.0.0:1183}
[2017-09-29T09:01:19,614][INFO][o.e.b.BootstrapChecks] [node2] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
ERROR: [3] **bootstrap checks failed**...
[2017-09-29T09:01:19,708][INFO][o.e.n.Node] [node2] closed

```

I have tried setting below to _true and false_, no luck:  
`bootstrap.system_call_filter: true`

Can you please help further?

---

<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: [September 29, 2017, 1:38pm UTC](https://discuss.elastic.co/t/exposing-transport-tcp-port-to-outside-world/102232/6 "2017-09-29T13:38:35Z")

</div>

You need to fix the 3 problems you have here:

```auto
[2017-09-29T09:01:19,614][INFO][o.e.b.BootstrapChecks] [node2] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
ERROR: [3] **bootstrap checks failed**...

```

Sadly you did not share the full logs so I can't help.

But please read [https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html)

That should help.

---

<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: [October 27, 2017, 1:39pm UTC](https://discuss.elastic.co/t/exposing-transport-tcp-port-to-outside-world/102232/7 "2017-10-27T13:39:30Z")

</div>

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