I installed elasticsearch following the article on https://www.howtoforge.com/tutorial/how-to-install-elastic-stack-on-ubuntu-16-04/. I manage to run it successfully on my local machine because I was accessing it from my local environment.
I have installed it on my dev server and I want to access it from another server. I can access it with localhost:9200 in my dev server but not from outside the server. I tried updating the elasticsearch.yml file with following settings:
Enabled port 9200 to be accessed publicly with "ufw enable"
sudo netstat -plnt shows the port is listening.
But still I am not able to access the URL publicly.
Can you please suggest me what I need to do to make it work?