ElasticSearch Connect Exception

using curl

curl -XGET "172.29.57.160:9200/_cluster/health?pretty" on the local system does not give a response, the error is:

curl: (7) Failed to connect to 172.29.57.160 port 9200: Timed out

using curl -XGET "localhost:9200/_cluster/health?pretty" gives a pretty json format object