# Telnet on 9200 doesn't work elasticsearch

**URL:** <https://discuss.elastic.co/t/telnet-on-9200-doesnt-work-elasticsearch/119588>\
**Category:** Elasticsearch\
**Created:** [February 13, 2018, 7:22am UTC](https://discuss.elastic.co/t/telnet-on-9200-doesnt-work-elasticsearch/119588 "2018-02-13T07:22:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![niraj\_pandey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/niraj_pandey/32/44034_2.png) [@niraj\_pandey](https://discuss.elastic.co/u/niraj_pandey)\
**Post date:** [February 13, 2018, 7:22am UTC](https://discuss.elastic.co/t/telnet-on-9200-doesnt-work-elasticsearch/119588/1 "2018-02-13T07:22:31Z")

</div>

Hi ,

I am not able to telnet on the machine having elasticsearch is running using the hostname/ipaddr, while the telnet through localhost is working fine.

telnet localhost 9200  
Trying 127.0.0.1...  
Connected to localhost.  
Escape character is '^]'.  
^]  
telnet\> quit

telnet xyz 9200  
Trying 172.23.16.19...  
telnet: connect to address 172.23.16.19: Connection refused

Here is my elasticsearch conf file:

cluster.name: abc  
node.name: xyz  
path.data: /servers/scratch03/ES\_DATA  
path.logs: /var/log/elasticsearch

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 13, 2018, 7:34am UTC](https://discuss.elastic.co/t/telnet-on-9200-doesnt-work-elasticsearch/119588/2 "2018-02-13T07:34:04Z")

</div>

By default Elasticsearch only listens to localhost, you need to change that and you will be ok.

---

<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:** [February 13, 2018, 7:35am UTC](https://discuss.elastic.co/t/telnet-on-9200-doesnt-work-elasticsearch/119588/3 "2018-02-13T07:35:57Z")

</div>

Change `network.host` that is.

You might see some errors then. If so, 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)

---

<div class="post-metadata">

**Author:** ![niraj\_pandey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/niraj_pandey/32/44034_2.png) [@niraj\_pandey](https://discuss.elastic.co/u/niraj_pandey)\
**Post date:** [February 13, 2018, 8:18am UTC](https://discuss.elastic.co/t/telnet-on-9200-doesnt-work-elasticsearch/119588/4 "2018-02-13T08:18:53Z")

</div>

Thanks the following settings work:

transport.host: localhost  
transport.tcp.port: 9300  
http.port: 9200  
network.host: 0.0.0.0

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 13, 2018, 8:27am UTC](https://discuss.elastic.co/t/telnet-on-9200-doesnt-work-elasticsearch/119588/5 "2018-02-13T08:27:46Z")

</div>

> [@niraj\_pandey](#):
>
> transport.tcp.port: 9300
> 
> http.port: 9200

These are the defaults, there's not a lot of value in setting them like this.

---

<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:** [March 13, 2018, 8:27am UTC](https://discuss.elastic.co/t/telnet-on-9200-doesnt-work-elasticsearch/119588/6 "2018-03-13T08:27:48Z")

</div>

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