# Can I have cluster formation with AWS node and local server node (with public IP)?

**URL:** <https://discuss.elastic.co/t/can-i-have-cluster-formation-with-aws-node-and-local-server-node-with-public-ip/202505>\
**Category:** Elasticsearch\
**Created:** [October 7, 2019, 9:06am UTC](https://discuss.elastic.co/t/can-i-have-cluster-formation-with-aws-node-and-local-server-node-with-public-ip/202505 "2019-10-07T09:06:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sahidul](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sahidul/32/55477_2.png) [@sahidul](https://discuss.elastic.co/u/sahidul)\
**Post date:** [October 7, 2019, 9:06am UTC](https://discuss.elastic.co/t/can-i-have-cluster-formation-with-aws-node-and-local-server-node-with-public-ip/202505/1 "2019-10-07T09:06:09Z")

</div>

Hello,

I wanted to have a cluster formation where one node in AWS (EC2 instance) and the other node in a local server with public IP assigned. I have installed Elasticsearch-7.4.0 on both servers (Ubuntu server).

Local node configuration:

> cluster.name: Fosholi  
> node.name: node-local  
> path.data: /var/lib/elasticsearch  
> path.logs: /var/log/elasticsearch  
> network.host: 0.0.0.0  
> http.port: 9200  
> discovery.seed\_hosts: ["119.148.3.138:9300", "3.1.42.87:9300"]  
> cluster.initial\_master\_nodes: ["node-local", "node-aws"]

AWS node configuration:

> cluster.name: Fosholi  
> node.name: node-aws  
> path.data: /var/lib/elasticsearch  
> path.logs: /var/log/elasticsearch  
> network.host: 0.0.0.0  
> http.port: 9200  
> discovery.seed\_hosts: ["119.148.3.138:9300", "3.1.42.87:9300"]  
> cluster.initial\_master\_nodes: ["node-local", "node-aws"]

- Both nodes are running fine but they are not finding each other.
- 9200 and 9300 ports are open. Can ping from each other.
- 119.148.3.138 is the local server and 3.1.42.87 is AWS

Please let me know if I am missing something here.

Thanks in advance.

---

<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:** [November 4, 2019, 9:06am UTC](https://discuss.elastic.co/t/can-i-have-cluster-formation-with-aws-node-and-local-server-node-with-public-ip/202505/2 "2019-11-04T09:06:13Z")

</div>

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