Elasticsearch 6.0 on ubuntu 16.04 will only start if network.host is set to 192.168.0.1 and not the actual IP address bound to the adaptor or hostname in hosts file.
not need to mention bind host and publish host parameter.
For running Elasticsearch only need to mention network.host IP and http.port and also make sure 9200 and 9300 port should be in open state. for remote connection it is necessary to communicate with all nodes if cluster are forming in ES.
Also mention your nodes IP in discovery parameter
I figured this out. I had to set the machine to run in single-node mode and then I had to set the parameters in the elasticsearch.yml to bind the IP address to the network.host
discovery.type: single-node
network.host: 10.0.2.15
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.