i have installed elasticsearch 2.2.3 and configured in cluster of 2 nodes
Node 1 (elasticsearch.yml)
cluster.name: my-cluster node.name: node1 bootstrap.
I resolved with this line:
network.publish_host: ec2-xx-xx-xx-xx.eu-west-1.compute.amazonaws.com
every elasticsearch.yml config file must have this line with your hostname
elasticsearch.yml