Generally in Elasticsearch people face this issue when trying to access elasticsearch related url from browser by using IP address while everything working fine with localhost.
Suppose your System IP is 10.0.0.31 and trying to run below query in browser.You will get below screen on different browsers
Go to command prompt and use below command to get ipv4 address as mentioned in below screen.
Update Your IPV4 address in config/elasticsearch.yml file for property
if your IP is static IP then you can update same as above or if it’s dynamic then update it as below.
For testing above configuration restart your eleasticsearch and try in elasticsearch on your browser address bar after updating server ip. You will get result like below.
http://localhost:9200/_cluster/health?pretty or as below if network.host configured http://elasticseverIp:9200/_cluster/health?pretty
For more Elasticsearch issues solution follow link Common Elasticsearch Issues.
Integrate Filebeat, Kafka, Logstash, Elasticsearch and Kibana
2 thoughts on “Elasticsearch working fine with localhost but not able to connect over Browser by using IP address”