# Can not connect to standalone node using TransportClient with es 5.5

**URL:** <https://discuss.elastic.co/t/can-not-connect-to-standalone-node-using-transportclient-with-es-5-5/107739>\
**Category:** Elasticsearch\
**Created:** [November 15, 2017, 12:06pm UTC](https://discuss.elastic.co/t/can-not-connect-to-standalone-node-using-transportclient-with-es-5-5/107739 "2017-11-15T12:06:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dobrien](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dobrien/32/46162_2.png) [@dobrien](https://discuss.elastic.co/u/dobrien)\
**Post date:** [November 15, 2017, 12:06pm UTC](https://discuss.elastic.co/t/can-not-connect-to-standalone-node-using-transportclient-with-es-5-5/107739/1 "2017-11-15T12:06:48Z")

</div>

Using elasticsearch 5.5.2, I can not connect using the TransportClient. The elasticsearch instance is standalone (My node with 5 indexes look fine using head and Kibana). I have

> transport.type:local, node.master:true, node.data:true, node.name:myCluster

set in the elasticsearch.yml.

In my Settings, I set my cluster.name and node.name. When I call client

> PreBuilTransportClient(settings).addTransportClient(newSocketTransportAddress(InetAddress.getByName(myhost),9300))

I get no errors, when I print out

> client.nodeName()

that is correct, but

> client.connectedNodes().toString()

is empty. The Exception I am getting is

> None of the configured nodes are available: [{transport#-1}{Dlw-DO6RJ-6zuwl2x\_xUw}{myhost}{ipaddress:9300}]  
> Can someone help?

---

<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:** [November 15, 2017, 3:32pm UTC](https://discuss.elastic.co/t/can-not-connect-to-standalone-node-using-transportclient-with-es-5-5/107739/2 "2017-11-15T15:32:05Z")

</div>

I believe your node is only listening on `127.0.0.1` as you did not set `network.host` right?

---

<div class="post-metadata">

**Author:** ![dobrien](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dobrien/32/46162_2.png) [@dobrien](https://discuss.elastic.co/u/dobrien)\
**Post date:** [November 15, 2017, 4:31pm UTC](https://discuss.elastic.co/t/can-not-connect-to-standalone-node-using-transportclient-with-es-5-5/107739/3 "2017-11-15T16:31:04Z")

</div>

I tried setting each of the following to network.host

> machine fqdn - ES wouldn't start BindException cannot assign requested addess  
> internal ip - Es wouldn't start BindException cannot assign requested address  
> external ip - ES starts, but head shows no cluster connected  
> hostname - ES starts, but head shows no cluster connected  
> localhost - ES starts and looks fine in head, but when trying to connect using TransportClient:  
> None of the configured nodes are available: [{transport#-1}{Dlw-DO6RJ-6zuwl2x\_xUw}{myhost}{internalipaddress:9300}]

Is something configured wrong on our system?

---

<div class="post-metadata">

**Author:** ![dobrien](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dobrien/32/46162_2.png) [@dobrien](https://discuss.elastic.co/u/dobrien)\
**Post date:** [November 15, 2017, 4:39pm UTC](https://discuss.elastic.co/t/can-not-connect-to-standalone-node-using-transportclient-with-es-5-5/107739/4 "2017-11-15T16:39:12Z")

</div>

I also changed my call to

> PreBuilTransportClient(settings).addTransportClient(newSocketTransportAddress(InetAddress.getByName(myhost),9300)) to

PreBuilTransportClient(settings).addTransportClient(newSocketTransportAddress(InetAddress.getLocalHost(),9300))

> Blockquote

---

<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 13, 2017, 4:39pm UTC](https://discuss.elastic.co/t/can-not-connect-to-standalone-node-using-transportclient-with-es-5-5/107739/5 "2017-12-13T16:39:28Z")

</div>

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