# How to access ES install on another machine

**URL:** <https://discuss.elastic.co/t/how-to-access-es-install-on-another-machine/42806>\
**Category:** Elasticsearch\
**Created:** [February 26, 2016, 4:42am UTC](https://discuss.elastic.co/t/how-to-access-es-install-on-another-machine/42806 "2016-02-26T04:42:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandesh](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@sandesh](https://discuss.elastic.co/u/sandesh)\
**Post date:** [February 26, 2016, 4:42am UTC](https://discuss.elastic.co/t/how-to-access-es-install-on-another-machine/42806/1 "2016-02-26T04:42:49Z")

</div>

hi,

i have 2 VM my java application install on VM1 and ES instal on VM2.  
how java application access the ES which install on Vm2 .  
how to specify "index.path"

---

<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 26, 2016, 5:45am UTC](https://discuss.elastic.co/t/how-to-access-es-install-on-another-machine/42806/2 "2016-02-26T05:45:22Z")

</div>

I don't think I understand the question.

You have 2 nodes? One per VM?  
They form a cluster?

You want to connect your Java app to those nodes?

Is it what you meant?

Did you look at the Java client doc?

---

<div class="post-metadata">

**Author:** ![crickes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/crickes/32/18009_2.png) [@crickes](https://discuss.elastic.co/u/crickes)\
**Post date:** [February 26, 2016, 12:53pm UTC](https://discuss.elastic.co/t/how-to-access-es-install-on-another-machine/42806/3 "2016-02-26T12:53:01Z")

</div>

If I understand you right, your Java application on VM1 will have to do a CURL request to VM2 running Elasticsearch. As the 2 applications are running on 2 different logical servers as virtual machines, they would need to communicate with each other as if they were two physically separate machines.

---

<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 5, 2017, 11:13pm UTC](https://discuss.elastic.co/t/how-to-access-es-install-on-another-machine/42806/4 "2017-07-05T23:13:20Z")

</div>


