# Not able to change server.host to 0.0.0.0

**URL:** <https://discuss.elastic.co/t/not-able-to-change-server-host-to-0-0-0-0/226467>\
**Category:** Elasticsearch\
**Created:** [April 3, 2020, 7:41pm UTC](https://discuss.elastic.co/t/not-able-to-change-server-host-to-0-0-0-0/226467 "2020-04-03T19:41:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bikramsingh](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@bikramsingh](https://discuss.elastic.co/u/bikramsingh)\
**Post date:** [April 3, 2020, 7:41pm UTC](https://discuss.elastic.co/t/not-able-to-change-server-host-to-0-0-0-0/226467/1 "2020-04-03T19:41:06Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![bikramsingh](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@bikramsingh](https://discuss.elastic.co/u/bikramsingh)\
**Post date:** [April 3, 2020, 8:01pm UTC](https://discuss.elastic.co/t/not-able-to-change-server-host-to-0-0-0-0/226467/2 "2020-04-03T20:01:53Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Yang\_Wang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yang_wang/32/48857_2.png) [@Yang\_Wang](https://discuss.elastic.co/u/Yang_Wang)\
**Post date:** [April 4, 2020, 9:31am UTC](https://discuss.elastic.co/t/not-able-to-change-server-host-to-0-0-0-0/226467/3 "2020-04-04T09:31:39Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 2, 2020, 9:31am UTC](https://discuss.elastic.co/t/not-able-to-change-server-host-to-0-0-0-0/226467/4 "2020-05-02T09:31:44Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
