Not able to connect elastic search server remotly

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: elasticsearch
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 ) 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/

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.

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

thank you very much for your reply tri-man

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

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