# Elasticsearch Handshake

**URL:** <https://discuss.elastic.co/t/elasticsearch-handshake/108186>\
**Category:** Elasticsearch\
**Created:** [November 17, 2017, 6:58pm UTC](https://discuss.elastic.co/t/elasticsearch-handshake/108186 "2017-11-17T18:58:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![grantcurell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grantcurell/32/23813_2.png) [@grantcurell](https://discuss.elastic.co/u/grantcurell)\
**Post date:** [November 17, 2017, 6:58pm UTC](https://discuss.elastic.co/t/elasticsearch-handshake/108186/1 "2017-11-17T18:58:15Z")

</div>

I'm trying to set up elasticsearch in a docker container across multiple hosts and cannot for the life of me get these guys to talk to each other. Most lately, I'm getting a handshake failed, but the IP address / port combos are completely correct for the target host so I don't know what it's looking for.

Where is the handshake process documented? I'm looking for something like EIGRP has. The algorithm looks at X things and they have to line up for success to happen.

---

<div class="post-metadata">

**Author:** ![Tim\_Brooks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tim_brooks/32/52051_2.png) [@Tim\_Brooks](https://discuss.elastic.co/u/Tim_Brooks)\
**Post date:** [November 17, 2017, 7:38pm UTC](https://discuss.elastic.co/t/elasticsearch-handshake/108186/2 "2017-11-17T19:38:33Z")

</div>

Do you have an exception stack trace or a log message or something?

There is a generic elasticsearch handshake request (and response) that occurs when two nodes attempt to connect to each other. However, the handshake request should only be made after tcp connections have been established. Additionally if a handshake fails, there is often an underlying exception explaining why the handshake failed. And that exception should be logged.

---

<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:** [December 15, 2017, 7:38pm UTC](https://discuss.elastic.co/t/elasticsearch-handshake/108186/3 "2017-12-15T19:38:38Z")

</div>

Closed on December 15, 2017, 7:38pm UTC

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