# Error on running Elasticsearch from the command line

**URL:** <https://discuss.elastic.co/t/error-on-running-elasticsearch-from-the-command-line/324305>\
**Category:** Elasticsearch\
**Created:** [January 31, 2023, 8:17am UTC](https://discuss.elastic.co/t/error-on-running-elasticsearch-from-the-command-line/324305 "2023-01-31T08:17:36Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [January 31, 2023, 1:41pm UTC](https://discuss.elastic.co/t/error-on-running-elasticsearch-from-the-command-line/324305/9 "2023-01-31T13:41:45Z")

</div>

#Bydefault Elasticsearch is only accessible on localhost. Set a different address here to expose this node on the network:

Can you try to add `network.host: 0.0.0.0` and restart ES, or `network.host: [_local_, _site_]`

Check [here](https://discuss.elastic.co/t/what-is-network-host/274426/3)

---

_[View the full topic](https://discuss.elastic.co/t/error-on-running-elasticsearch-from-the-command-line/324305)._
