# Disabling unused ports

**URL:** <https://discuss.elastic.co/t/disabling-unused-ports/63536>\
**Category:** Elasticsearch\
**Created:** [October 20, 2016, 7:11pm UTC](https://discuss.elastic.co/t/disabling-unused-ports/63536 "2016-10-20T19:11:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrisR](https://avatars.discourse-cdn.com/v4/letter/c/ecd19e/32.png) [@ChrisR](https://discuss.elastic.co/u/ChrisR)\
**Post date:** [October 20, 2016, 7:11pm UTC](https://discuss.elastic.co/t/disabling-unused-ports/63536/1 "2016-10-20T19:11:40Z")

</div>

Can the transport ports on elasticsearch be disabled somehow the way http ports can be disabled?

If the http port on a single node elasticsearch instance is being used by kibana and logstash, there should be a way to disable the unused transport ports.

---

<div class="post-metadata">

**Author:** ![msimos](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@msimos](https://discuss.elastic.co/u/msimos)\
**Post date:** [October 21, 2016, 7:19pm UTC](https://discuss.elastic.co/t/disabling-unused-ports/63536/2 "2016-10-21T19:19:31Z")

</div>

Transport port is used for node to node communication. If you have just one node, then you can bind to 127.0.0.1:9300 by using transport.bind\_host.

[https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-transport.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-transport.html)

Otherwise you can block the port using iptables.

---

<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:10pm UTC](https://discuss.elastic.co/t/disabling-unused-ports/63536/3 "2017-07-05T22:10:25Z")

</div>


