# Is it possible to configure ES to listen on 2 different http ports at the same time?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-configure-es-to-listen-on-2-different-http-ports-at-the-same-time/17744>\
**Category:** Elasticsearch\
**Created:** [May 27, 2014, 8:07am UTC](https://discuss.elastic.co/t/is-it-possible-to-configure-es-to-listen-on-2-different-http-ports-at-the-same-time/17744 "2014-05-27T08:07:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lance\_Lakey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lance_lakey/32/1524_2.png) [@Lance\_Lakey](https://discuss.elastic.co/u/Lance_Lakey)\
**Post date:** [May 27, 2014, 8:07am UTC](https://discuss.elastic.co/t/is-it-possible-to-configure-es-to-listen-on-2-different-http-ports-at-the-same-time/17744/1 "2014-05-27T08:07:37Z")

</div>

How do I configure ES to listen on http.port 9200 and 9500 ?

I've tried a couple variations in the config but afaict ES always picks  
only one port

--  
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/d7538aea-ebac-470a-b2b4-75cf66cd52bf%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d7538aea-ebac-470a-b2b4-75cf66cd52bf%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [May 27, 2014, 8:10am UTC](https://discuss.elastic.co/t/is-it-possible-to-configure-es-to-listen-on-2-different-http-ports-at-the-same-time/17744/2 "2014-05-27T08:10:42Z")

</div>

You can not do that.

What is the use case?

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 27 mai 2014 à 10:07:40, Lance Lakey ([lancelakey@gmail.com](mailto:lancelakey@gmail.com)) a écrit:

How do I configure ES to listen on http.port 9200 and 9500 ?

I've tried a couple variations in the config but afaict ES always picks only one port

--  
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/d7538aea-ebac-470a-b2b4-75cf66cd52bf%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d7538aea-ebac-470a-b2b4-75cf66cd52bf%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/etPan.53844882.38437fdb.1e56%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.53844882.38437fdb.1e56%40MacBook-Air-de-David.local).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Lance\_Lakey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lance_lakey/32/1524_2.png) [@Lance\_Lakey](https://discuss.elastic.co/u/Lance_Lakey)\
**Post date:** [May 27, 2014, 8:24am UTC](https://discuss.elastic.co/t/is-it-possible-to-configure-es-to-listen-on-2-different-http-ports-at-the-same-time/17744/3 "2014-05-27T08:24:55Z")

</div>

Leave port 9200 open to everything but only allow search requests so that  
all web clients can access ES but can only search

Configure application servers to use port 9500 to communicate with ES  
Configure firewalls to only allow application servers access to ES port 9500  
Allow all commands on port 9500  
Eventually set up authentication on port 9500

On Tuesday, May 27, 2014 1:10:52 AM UTC-7, David Pilato wrote:

> You can not do that.
> 
> What is the use case?
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> 
> Le 27 mai 2014 à 10:07:40, Lance Lakey ([lance...@gmail.com](mailto:lance...@gmail.com) \<javascript:\>)  
> a écrit:
> 
> How do I configure ES to listen on http.port 9200 and 9500 ?
> 
> I've tried a couple variations in the config but afaict ES always picks  
> only one port
> 
> --  
> 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/d7538aea-ebac-470a-b2b4-75cf66cd52bf%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d7538aea-ebac-470a-b2b4-75cf66cd52bf%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/d7538aea-ebac-470a-b2b4-75cf66cd52bf%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/d7538aea-ebac-470a-b2b4-75cf66cd52bf%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/9f8e47eb-e163-4dde-a079-328d351bd40a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9f8e47eb-e163-4dde-a079-328d351bd40a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![drewr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drewr/32/7803_2.png) [@drewr](https://discuss.elastic.co/u/drewr)\
**Post date:** [May 27, 2014, 9:41pm UTC](https://discuss.elastic.co/t/is-it-possible-to-configure-es-to-listen-on-2-different-http-ports-at-the-same-time/17744/4 "2014-05-27T21:41:27Z")

</div>

Lance Lakey wrote:

> Leave port 9200 open to everything but only allow search  
> requests so that all web clients can access ES but can only  
> search
> 
> Configure application servers to use port 9500 to communicate  
> with ES Configure firewalls to only allow application servers  
> access to ES port 9500 Allow all commands on port 9500  
> Eventually set up authentication on port 9500

Use a proxy listening on different ports (or vhosts, each with  
different authorization) to redirect to the single ES port.

Drew

--  
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/m238fuyk54.fsf%40mid.raines.me](https://groups.google.com/d/msgid/elasticsearch/m238fuyk54.fsf%40mid.raines.me).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:26am UTC](https://discuss.elastic.co/t/is-it-possible-to-configure-es-to-listen-on-2-different-http-ports-at-the-same-time/17744/5 "2017-07-06T01:26:32Z")

</div>


