# Unable to connect ES cloud

**URL:** <https://discuss.elastic.co/t/unable-to-connect-es-cloud/121160>\
**Category:** Elasticsearch\
**Created:** [February 23, 2018, 4:25am UTC](https://discuss.elastic.co/t/unable-to-connect-es-cloud/121160 "2018-02-23T04:25:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![chhavi\_bahekar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chhavi_bahekar/32/82809_2.png) [@chhavi\_bahekar](https://discuss.elastic.co/u/chhavi_bahekar)\
**Post date:** [February 23, 2018, 4:25am UTC](https://discuss.elastic.co/t/unable-to-connect-es-cloud/121160/1 "2018-02-23T04:25:55Z")

</div>

Hi All,

I am unable to connect ES cloud using transport client with below code.I have created   
transport\_client user using kibana but application throwing exception shown below.  
Could you please help me to resolve this issue.I am using ES 5.7 version.

**Exception:**  
(NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}) .

**This is my code.**

```
     Settings settings = Settings.builder()
                    .put("cluster.name", "tesclustername")
                    .put("xpack.security.user", "testuser:testpassword")
                    .build();

            TransportClient client = new PreBuiltXPackTransportClient(settings)
                     .addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("test.eu-west-1.aws.found.io"), 9300)); 

```

Regards,  
Chhavi

---

<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:** [February 23, 2018, 8:22am UTC](https://discuss.elastic.co/t/unable-to-connect-es-cloud/121160/2 "2018-02-23T08:22:11Z")

</div>

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
```

````

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

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.  
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.  
Please update your post.

I think (but unsure though) that the transport port is 9343 on cloud.  
Note that the TransportClient will probably be removed in the feature. You should use the REST Client instead.

---

<div class="post-metadata">

**Author:** ![chhavi\_bahekar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chhavi_bahekar/32/82809_2.png) [@chhavi\_bahekar](https://discuss.elastic.co/u/chhavi_bahekar)\
**Post date:** [February 23, 2018, 9:15am UTC](https://discuss.elastic.co/t/unable-to-connect-es-cloud/121160/3 "2018-02-23T09:15:24Z")

</div>

Hi Dadoonet,

Sorry for the trouble.I will try to format my code next time.  
Also I have tried for 9343 but its throwing same exception.And regarding REST Client We are using elastic search in our application many places and planing to migrate ES clod service in short time.Because of this regions we are not moving from TrasaportClient to REST Client(because again to much testing effort is required).  
But in next version of ES may 6 we will migrate to REST Client.But t present to move i need this help from your side.

Regards,  
Chhavi

---

<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:** [February 23, 2018, 12:44pm UTC](https://discuss.elastic.co/t/unable-to-connect-es-cloud/121160/4 "2018-02-23T12:44:31Z")

</div>

Here is some documentation that might help:

> **[elastic/found-shield-example](https://github.com/elastic/found-shield-example)**
>
> found-shield-example - Elastic Cloud Shield Transport Example

This class for instance:

> <https://github.com/elastic/found-shield-example/blob/master/src/main/java/org/elasticsearch/cloud/transport/example/TransportExample.java>

---

<div class="post-metadata">

**Author:** ![chhavi\_bahekar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chhavi_bahekar/32/82809_2.png) [@chhavi\_bahekar](https://discuss.elastic.co/u/chhavi_bahekar)\
**Post date:** [March 6, 2018, 1:01pm UTC](https://discuss.elastic.co/t/unable-to-connect-es-cloud/121160/5 "2018-03-06T13:01:48Z")

</div>

Hi Dadoonet,

Sorry for late reply But After using above Link code Also I am getting same exception as **None of the configured nodes are available**

Regards,  
Chhavi

---

<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:** [March 12, 2018, 9:34am UTC](https://discuss.elastic.co/t/unable-to-connect-es-cloud/121160/6 "2018-03-12T09:34:26Z")

</div>

May be contact your cloud support?  
Please see [https://www.elastic.co/cloud/as-a-service/support](https://www.elastic.co/cloud/as-a-service/support) on how to raise a support ticket for Elastic Cloud 🙂

---

<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:** [April 9, 2018, 9:34am UTC](https://discuss.elastic.co/t/unable-to-connect-es-cloud/121160/7 "2018-04-09T09:34:43Z")

</div>

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