network-host.asciidoc 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. [[network.host]]
  2. [discrete]
  3. === Network host setting
  4. By default, {es} binds to loopback addresses only such as `127.0.0.1`
  5. and `[::1]`. This binding is sufficient to run a single development node on a
  6. server.
  7. TIP: more than one node can be started from the same `$ES_HOME`
  8. location on a single node. This setup can be useful for testing {es}'s
  9. ability to form clusters, but it is not a configuration recommended for
  10. production.
  11. To form a cluster with nodes on other servers, your
  12. node will need to bind to a non-loopback address. While there are many
  13. <<modules-network,network settings>>, usually all you need to configure is
  14. `network.host`:
  15. [source,yaml]
  16. --------------------------------------------------
  17. network.host: 192.168.1.10
  18. --------------------------------------------------
  19. The `network.host` setting also understands some special values such as
  20. `_local_`, `_site_`, `_global_` and modifiers like `:ip4` and `:ip6`. See
  21. <<network-interface-values>>.
  22. IMPORTANT: When you provide a custom setting for `network.host`,
  23. {es} assumes that you are moving from development mode to production
  24. mode, and upgrades a number of system startup checks from warnings to
  25. exceptions. See the differences between <<dev-vs-prod,development and production modes>>.