# Accessing ES deployed at EC2 via Transport Client

**URL:** <https://discuss.elastic.co/t/accessing-es-deployed-at-ec2-via-transport-client/3648>\
**Category:** Elasticsearch\
**Created:** [December 10, 2010, 2:34pm UTC](https://discuss.elastic.co/t/accessing-es-deployed-at-ec2-via-transport-client/3648 "2010-12-10T14:34:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan\_Fiedler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jan_fiedler/32/2518_2.png) [@Jan\_Fiedler](https://discuss.elastic.co/u/Jan_Fiedler)\
**Post date:** [December 10, 2010, 2:34pm UTC](https://discuss.elastic.co/t/accessing-es-deployed-at-ec2-via-transport-client/3648/1 "2010-12-10T14:34:38Z")

</div>

I deployed 2 ES instances at Amazon EC2 with the cloud-aws plugin  
installed and configured. The two nodes form a cluster as expected.

I now try to access the cluster from my local development machine via  
the transport client (using the public DNS name of the EC2 instance).  
I also opened TCP port 9300 in the Amazon security group for this to  
work. When trying to access something like cluster status via the  
transport client I always get exceptions (on the client side)  
indicating that no node is available.

Is there something conceptually wrong in this setup? Should it be  
possible to access an ES node running at EC2 remotely ?

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [December 11, 2010, 12:05am UTC](https://discuss.elastic.co/t/accessing-es-deployed-at-ec2-via-transport-client/3648/2 "2010-12-11T00:05:13Z")

</div>

I think that what happens is that the nodes formed on the transport client side use the private ip addresses and not the public ip address of the machines. This is what you want when you are within amazon, but not what you want when you go outside it.

Can you open an issue for this? I will think of a way to solve this...

-shay.banon  
On Friday, December 10, 2010 at 4:34 PM, Jan Fiedler wrote:

> I deployed 2 ES instances at Amazon EC2 with the cloud-aws plugin  
> installed and configured. The two nodes form a cluster as expected.
> 
> I now try to access the cluster from my local development machine via  
> the transport client (using the public DNS name of the EC2 instance).  
> I also opened TCP port 9300 in the Amazon security group for this to  
> work. When trying to access something like cluster status via the  
> transport client I always get exceptions (on the client side)  
> indicating that no node is available.
> 
> Is there something conceptually wrong in this setup? Should it be  
> possible to access an ES node running at EC2 remotely ?

---

<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:** [July 6, 2017, 4:15am UTC](https://discuss.elastic.co/t/accessing-es-deployed-at-ec2-via-transport-client/3648/3 "2017-07-06T04:15:26Z")

</div>


