Snapshot - Unable to execute HTTP request

I'm using elasticsearch version 2.2. while creating snapshot from a node using localhost, I'm getting following error.

cluster:admin/snapshot/status]]; nested: NotSerializableExceptionWrapper[amazon_client_exception: Unable to execute HTTP request: connect timed out]; nested: NotSerializableExceptionWrapper[socket_timeout_exception: connect timed out];
Caused by: NotSerializableExceptionWrapper[amazon_client_exception: Unable to execute HTTP request: connect timed out]; nested: NotSerializableExceptionWrapper[socket_timeout_exception: connect timed out];

Please help to understand what is the cause of this issue

Server's internet connectivity was blocked. Resolved this issue by allowing internet connectivity.