Make sure you are using the public IP of the node to make api call (curl commands). Before that make sure the node is accessible from your desktop by pinging the IP.
I use a tool called "postman" to make api calls. This might come handy if you are a beginner.
Your curl command should look like:
GET http://:9200
{
..
..
}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.