Hi I am trying to connect to elasticsearch from browser of my local machine and elastic search installed into my ubuntu server 16.04 but i cannot connect to it.
i have network.host: 0
and elastic search is being running correctly and i can run curl command on terminal of ubuntu successfully. curl -X GET "localhost:9200" is running fine and even curl -X GET "private_ip:9200" is also running fine. however, curl -X GET "public_ip:9200" is throwing error connection timeout and from browser of my local machine when i am hitting http://privatee_ip:9200 or http://public_ip:9200 , both are not working. Can you please help me here on this what i am doing wrong.