# Not able to connect elastic search server remotly

**URL:** <https://discuss.elastic.co/t/not-able-to-connect-elastic-search-server-remotly/99423>\
**Category:** Elasticsearch\
**Created:** [September 5, 2017, 12:16pm UTC](https://discuss.elastic.co/t/not-able-to-connect-elastic-search-server-remotly/99423 "2017-09-05T12:16:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gauravgarg](https://avatars.discourse-cdn.com/v4/letter/g/e9a140/32.png) [@gauravgarg](https://discuss.elastic.co/u/gauravgarg)\
**Post date:** [September 5, 2017, 12:16pm UTC](https://discuss.elastic.co/t/not-able-to-connect-elastic-search-server-remotly/99423/1 "2017-09-05T12:16:42Z")

</div>

Hi Team,

I am not able to connect to elastic-search server remotely from another machine.

my ES configuration on server side is:

## on my elastic search server: /etc/elasticsearch/elasticsearch.yml

[cluster.name](http://cluster.name): elasticsearch  
[node.name](http://node.name): node1  
network.host: 0.0.0.0  
#transport.tcp.port: 9300  
#network.bind\_host: 0.0.0.0  
http:  
port: 9200

........................................................................

## on my remote machine:

# nmap -p 9200 192.168.178.79

Starting Nmap 7.01 ( [https://nmap.org](https://nmap.org) ) at 2017-09-05 14:00 CEST  
Nmap scan report for 192.168.178.79  
Host is up (0.00066s latency).  
PORT STATE SERVICE  
9200/tcp filtered wap-wsp  
MAC Address: F4:4D:30:62:86:A6 (Elitegroup Computer Systems)

Nmap done: 1 IP address (1 host up) scanned in 0.54 seconds

....

## when i do

curl -XGET [http://192.168.178.79:9200/](http://192.168.178.79:9200/)

from remote machine it say

curl: (7) Failed to connect to 192.168.178.79 port 9200: Connection timed out

I did it successfully for local machine means when client and server both are in the same machine but request is failing for remote machine.

I am also not able to do POST and GET request for ES server.

Any help will be useful.

Thank you very much in advance.

---

<div class="post-metadata">

**Author:** ![thn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thn/32/8061_2.png) [@thn](https://discuss.elastic.co/u/thn)\
**Post date:** [September 5, 2017, 12:58pm UTC](https://discuss.elastic.co/t/not-able-to-connect-elastic-search-server-remotly/99423/2 "2017-09-05T12:58:31Z")

</div>

You should have something similar to the following in the configuration file

- network.host: 0.0.0.0 \<- tells ES to bind to all network interface
- http.port: 9200 \<- tells ES to listen to port 9200

---

<div class="post-metadata">

**Author:** ![gauravgarg](https://avatars.discourse-cdn.com/v4/letter/g/e9a140/32.png) [@gauravgarg](https://discuss.elastic.co/u/gauravgarg)\
**Post date:** [September 5, 2017, 1:05pm UTC](https://discuss.elastic.co/t/not-able-to-connect-elastic-search-server-remotly/99423/3 "2017-09-05T13:05:54Z")

</div>

thank you very much for your reply tri-man

I got it solved. there was some issue in my internal network in my system.

---

<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 3, 2017, 1:06pm UTC](https://discuss.elastic.co/t/not-able-to-connect-elastic-search-server-remotly/99423/4 "2017-10-03T13:06:32Z")

</div>

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