# Server

**URL:** <https://discuss.elastic.co/t/server/268274>\
**Category:** Elasticsearch\
**Created:** [March 24, 2021, 10:55pm UTC](https://discuss.elastic.co/t/server/268274 "2021-03-24T22:55:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![amazonas\_ecommerce](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amazonas_ecommerce/32/85147_2.png) [@amazonas\_ecommerce](https://discuss.elastic.co/u/amazonas_ecommerce)\
**Post date:** [March 24, 2021, 10:55pm UTC](https://discuss.elastic.co/t/server/268274/1 "2021-03-24T22:55:58Z")

</div>

I installed Elasticsearch 7 on the ubunto AWS Lightsail. It's working perfectly on localhost.  
However, I have Magento2.4 on another EC2 AWS server, but I don't know how to use Elasticsearch on another server, I have already released port 9200 on AWS. I created a fixed IP, but externally you can't get access. How do I connect Lightsail elastiserach servers with EC2 magento2.4.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [March 25, 2021, 2:19am UTC](https://discuss.elastic.co/t/server/268274/2 "2021-03-25T02:19:16Z")

</div>

Take a look at [this](https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html#network.host)

Remember as soon as you bind elasticsearch to the network it will be unprotected data store.

Please secure it, that is why we offer TLS and Auth as a Basic / Free features

---

<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 25, 2021, 8:39am UTC](https://discuss.elastic.co/t/server/268274/3 "2021-03-25T08:39:48Z")

</div>

Adding to this that a very fast and efficient way to have all set in few minutes is by using [Cloud by Elastic](https://www.elastic.co/cloud). It starts from around $16/month.  
Also consider using may be AppSearch for Magento. @Aurelien_Foucret1 wrote some interesting code for this:

> **[elastic/app-search-magento](https://github.com/elastic/app-search-magento)**
>
> A first party module to integrate Elastic App Search in Magento 2.

---

<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 22, 2021, 8:40am UTC](https://discuss.elastic.co/t/server/268274/4 "2021-04-22T08:40:06Z")

</div>

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