# Elastic exits with network.host set

**URL:** https://discuss.elastic.co/t/elastic-exits-with-network-host-set/195118
**Category:** Elasticsearch
**Created:** [August 13, 2019, 10:40pm UTC](https://discuss.elastic.co/t/elastic-exits-with-network-host-set/195118 "2019-08-13T22:40:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Mezoloth](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mezoloth/32/45613_2.png) [@Mezoloth](https://discuss.elastic.co/u/Mezoloth)
#### Post date: [August 13, 2019, 10:40pm UTC](https://discuss.elastic.co/t/elastic-exits-with-network-host-set/195118/1 "2019-08-13T22:40:11Z")

</div>

I have installed Elastic on the latest ubuntu server. I cannot connect to Elastic from other hosts. I can connect to the server using SSH and I can see in netstat that 9200 is bound to 127.0.0.1.

I can curl to Elastic from the server itself, shown below.

```
root@elk:/etc/elasticsearch# curl -X GET "localhost:9200/?pretty"
{
  "name" : "elk",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "Tsvs-ltLSLWZ8tYpYoI4eg",
  "version" : {
    "number" : "7.3.0",
    "build_flavor" : "default",
    "build_type" : "deb",
    "build_hash" : "de777fa",
    "build_date" : "2019-07-24T18:30:11.767338Z",
    "build_snapshot" : false,
    "lucene_version" : "8.1.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },

```

}

If I set the network.host to anything at all, elastic exits with:

```
Aug 13 22:30:07 elk systemd[1]: elasticsearch.service: Main process exited, code=exited, status=78/n/a
Aug 13 22:30:07 elk systemd[1]: elasticsearch.service: Failed with result 'exit-code'.

```

What causes this?

Any assistance would be greatly appreciated.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [August 14, 2019, 2:11am UTC](https://discuss.elastic.co/t/elastic-exits-with-network-host-set/195118/2 "2019-08-14T02:11:43Z")

</div>

Welcome!

Read elasticsearch logs. They are pretty much explicit.

And then read [https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html)

Please format your code, logs or configuration files using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) and not the citation button. It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

This is the icon to use if you are not using markdown format:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/e/7e6e239431ec2d71cbf1beef741f2e93e7cc762c.jpg)

There's a live preview panel for exactly this reasons.

---

<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: [September 11, 2019, 2:11am UTC](https://discuss.elastic.co/t/elastic-exits-with-network-host-set/195118/3 "2019-09-11T02:11:44Z")

</div>

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