Make sure you have this line in your elasticsearch.yml file
network.host: 192.168.1.1,localhost,hostname
This is the setting that tells the service to bind to an ip address, if it doesnt it binds to 127.0.0.1
Also this warning can come up when you have 3 nodes in a cluster and require minimum 2 master nodes but only 1 is available.