# Elastic Search as windows service

**URL:** <https://discuss.elastic.co/t/elastic-search-as-windows-service/172439>\
**Category:** Elasticsearch\
**Created:** [March 14, 2019, 10:05pm UTC](https://discuss.elastic.co/t/elastic-search-as-windows-service/172439 "2019-03-14T22:05:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![saxenark](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@saxenark](https://discuss.elastic.co/u/saxenark)\
**Post date:** [March 14, 2019, 10:05pm UTC](https://discuss.elastic.co/t/elastic-search-as-windows-service/172439/1 "2019-03-14T22:05:57Z")

</div>

Hi,

I want to know how to install ElasticSearch as a windows service with the network.host set so that all of my dev machines can access the service over 9200 port.

I figured out that we can do this with the -E network.host=0.0.0.0 using ElasticSearch.bat but can't understand how to do this when used as a windows service.

Thanks,

---

<div class="post-metadata">

**Author:** ![xavierfacq](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xavierfacq/32/8744_2.png) [@xavierfacq](https://discuss.elastic.co/u/xavierfacq)\
**Post date:** [March 15, 2019, 7:56am UTC](https://discuss.elastic.co/t/elastic-search-as-windows-service/172439/2 "2019-03-15T07:56:23Z")

</div>

Hi,

You can set this configuration in the elasticsearch.yml file, in the /conf directory of the installation.

```
network.host: 192.168.0.1

```

Bye,  
Xavier

---

<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:** [April 12, 2019, 7:59am UTC](https://discuss.elastic.co/t/elastic-search-as-windows-service/172439/3 "2019-04-12T07:59:59Z")

</div>

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