Not able to change server.host to 0.0.0.0

I have elasticsearch running on a vm. I am trying to access it outside the vm. when i tired to assign the server.host to either the vm's ip or 0.0.0.0 elasticsearch service doesn't start. any tips?

I see the issue here, once i change the server.host, dev config automatically changes to production. how can i put it back to dev settings?

If this is for testing purpose and running as a single node, you can set discovery.type: single-node in elasticsearch.yml file while binding to a non-loopback interface. See details at https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html#single-node-discovery

Please note this is only useful for developement and testing purposes and not suitable for production.