# Network.host or http.host - documentation problem?

**URL:** <https://discuss.elastic.co/t/network-host-or-http-host-documentation-problem/64179>\
**Category:** Elasticsearch\
**Created:** [October 27, 2016, 6:25pm UTC](https://discuss.elastic.co/t/network-host-or-http-host-documentation-problem/64179 "2016-10-27T18:25:11Z")\
**Posts on this page:** 10\
**Page:** 2

<div class="post-metadata">

**Author:** ![erictice](https://avatars.discourse-cdn.com/v4/letter/e/ee59a6/32.png) [@erictice](https://discuss.elastic.co/u/erictice)\
**Post date:** [July 3, 2017, 1:46pm UTC](https://discuss.elastic.co/t/network-host-or-http-host-documentation-problem/64179/21 "2017-07-03T13:46:33Z")

</div>

Yun. You didn't say how you solved the problem. Can you elaborate.

---

<div class="post-metadata">

**Author:** ![VIGNESH\_SHANMUGAKANI](https://avatars.discourse-cdn.com/v4/letter/v/b19c9b/32.png) [@VIGNESH\_SHANMUGAKANI](https://discuss.elastic.co/u/VIGNESH_SHANMUGAKANI)\
**Post date:** [September 8, 2017, 3:16am UTC](https://discuss.elastic.co/t/network-host-or-http-host-documentation-problem/64179/22 "2017-09-08T03:16:39Z")

</div>

Yun.. how you solved your problem.. can you please share your yml config file

---

<div class="post-metadata">

**Author:** ![pedrosk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pedrosk/32/9756_2.png) [@pedrosk](https://discuss.elastic.co/u/pedrosk)\
**Post date:** [November 28, 2017, 10:06pm UTC](https://discuss.elastic.co/t/network-host-or-http-host-documentation-problem/64179/23 "2017-11-28T22:06:21Z")

</div>

This worked for me for a single node on my local network :

in elasticsearch.yml  
http.port: 9201  
#http.bind\_host: 192.168.1.172 #works  
http.publish\_host: 192.168.1.172 #by itself does not work  
http.host: 192.168.1.172 #works alone

in /etc/hosts  
192.168.1.172 mytestnode

---

<div class="post-metadata">

**Author:** ![tiantianxi](https://avatars.discourse-cdn.com/v4/letter/t/53a042/32.png) [@tiantianxi](https://discuss.elastic.co/u/tiantianxi)\
**Post date:** [December 6, 2017, 7:11am UTC](https://discuss.elastic.co/t/network-host-or-http-host-documentation-problem/64179/24 "2017-12-06T07:11:12Z")

</div>

I have the same problem:眨眼:

OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N  
[2017-12-06T15:03:49,641][INFO][o.e.n.Node] [] initializing ...  
[2017-12-06T15:03:49,789][INFO][o.e.e.NodeEnvironment] [Cb-ctv8] using [1] data paths, mounts [[/ (rootfs)]], net usable\_space [25.9gb], net total\_space [39.2gb], spins? [unknown], types [rootfs]  
[2017-12-06T15:03:49,789][INFO][o.e.e.NodeEnvironment] [Cb-ctv8] heap size [241.7mb], compressed ordinary object pointers [true]  
[2017-12-06T15:03:49,791][INFO][o.e.n.Node] node name [Cb-ctv8] derived from node ID [Cb-ctv8sSWSpi2c7SbVHmg]; set [[node.name](http://node.name)] to override  
[2017-12-06T15:03:49,794][INFO][o.e.n.Node] version[5.1.1], pid[1914], build[5395e21/2016-12-06T12:36:15.409Z], OS[Linux/3.10.0-693.5.2.el7.x86\_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0\_151/25.151-b12]  
[2017-12-06T15:03:52,429][INFO][o.e.p.PluginsService] [Cb-ctv8] loaded module [aggs-matrix-stats]  
[2017-12-06T15:03:52,429][INFO][o.e.p.PluginsService] [Cb-ctv8] loaded module [ingest-common]  
[2017-12-06T15:03:52,429][INFO][o.e.p.PluginsService] [Cb-ctv8] loaded module [lang-expression]  
[2017-12-06T15:03:52,429][INFO][o.e.p.PluginsService] [Cb-ctv8] loaded module [lang-groovy]  
[2017-12-06T15:03:52,429][INFO][o.e.p.PluginsService] [Cb-ctv8] loaded module [lang-mustache]  
[2017-12-06T15:03:52,430][INFO][o.e.p.PluginsService] [Cb-ctv8] loaded module [lang-painless]  
[2017-12-06T15:03:52,430][INFO][o.e.p.PluginsService] [Cb-ctv8] loaded module [percolator]  
[2017-12-06T15:03:52,436][INFO][o.e.p.PluginsService] [Cb-ctv8] loaded module [reindex]  
[2017-12-06T15:03:52,436][INFO][o.e.p.PluginsService] [Cb-ctv8] loaded module [transport-netty3]  
[2017-12-06T15:03:52,436][INFO][o.e.p.PluginsService] [Cb-ctv8] loaded module [transport-netty4]  
[2017-12-06T15:03:52,437][INFO][o.e.p.PluginsService] [Cb-ctv8] no plugins loaded  
[2017-12-06T15:03:56,783][INFO][o.e.n.Node] initialized  
[2017-12-06T15:03:56,783][INFO][o.e.n.Node] [Cb-ctv8] starting ...  
[2017-12-06T15:03:57,200][INFO][o.e.t.TransportService] [Cb-ctv8] publish\_address {172.17.0.1:9300}, bound\_addresses {0.0.0.0:9300}  
[2017-12-06T15:03:57,224][INFO][o.e.b.BootstrapCheck] [Cb-ctv8] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks  
ERROR: bootstrap checks failed  
**_initial heap size [16777216] not equal to maximum heap size [262144000]; this can cause resize pauses and prevents mlockall from locking the entire heap_**  
[2017-12-06T15:03:57,272][INFO][o.e.n.Node] [Cb-ctv8] stopping ...  
[2017-12-06T15:03:57,330][INFO][o.e.n.Node] [Cb-ctv8] stopped  
[2017-12-06T15:03:57,330][INFO][o.e.n.Node] [Cb-ctv8] closing ...  
[2017-12-06T15:03:57,357][INFO][o.e.n.Node] [Cb-ctv8] closed

---

<div class="post-metadata">

**Author:** ![tiantianxi](https://avatars.discourse-cdn.com/v4/letter/t/53a042/32.png) [@tiantianxi](https://discuss.elastic.co/u/tiantianxi)\
**Post date:** [December 6, 2017, 9:17am UTC](https://discuss.elastic.co/t/network-host-or-http-host-documentation-problem/64179/25 "2017-12-06T09:17:43Z")

</div>

已解决 ，yml 语法错误——前有空格  
-Xms200m  
-Xmx200m

---

<div class="post-metadata">

**Author:** ![Ualter\_Junior](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ualter_junior/32/26191_2.png) [@Ualter\_Junior](https://discuss.elastic.co/u/Ualter_Junior)\
**Post date:** [January 3, 2018, 1:28pm UTC](https://discuss.elastic.co/t/network-host-or-http-host-documentation-problem/64179/26 "2018-01-03T13:28:57Z")

</div>

Thank you, this is exactly what I needed in order to get Elasticsearch working throughout an AWS Instance (very limited, the free one t2.micro). Now, with this configuration I was able to access the ElasticSearch via an Elastic IP.

---

<div class="post-metadata">

**Author:** ![hasanroo10](https://avatars.discourse-cdn.com/v4/letter/h/e9c0ed/32.png) [@hasanroo10](https://discuss.elastic.co/u/hasanroo10)\
**Post date:** [May 9, 2019, 3:58am UTC](https://discuss.elastic.co/t/network-host-or-http-host-documentation-problem/64179/27 "2019-05-09T03:58:20Z")

</div>

> [@Gokhan\_Sahin](#):
>
> 9300

thanks solved my issued

---

<div class="post-metadata">

**Author:** ![shubham\_dixit](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shubham_dixit/32/49446_2.png) [@shubham\_dixit](https://discuss.elastic.co/u/shubham_dixit)\
**Post date:** [July 4, 2019, 2:08pm UTC](https://discuss.elastic.co/t/network-host-or-http-host-documentation-problem/64179/28 "2019-07-04T14:08:47Z")

</div>

Yes that works for me too

---

<div class="post-metadata">

**Author:** ![adensoft](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adensoft/32/79821_2.png) [@adensoft](https://discuss.elastic.co/u/adensoft)\
**Post date:** [November 27, 2020, 5:01pm UTC](https://discuss.elastic.co/t/network-host-or-http-host-documentation-problem/64179/29 "2020-11-27T17:01:04Z")

</div>

thank you

---

<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:** [November 4, 2022, 4:30am UTC](https://discuss.elastic.co/t/network-host-or-http-host-documentation-problem/64179/30 "2022-11-04T04:30:57Z")

</div>



[Previous page](https://discuss.elastic.co/t/network-host-or-http-host-documentation-problem/64179.md?page=1)
