# EC2 PublicIP:9200

**URL:** <https://discuss.elastic.co/t/ec2-publicip-9200/211704>\
**Category:** Elasticsearch\
**Created:** [December 12, 2019, 5:48pm UTC](https://discuss.elastic.co/t/ec2-publicip-9200/211704 "2019-12-12T17:48:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chintu](https://avatars.discourse-cdn.com/v4/letter/c/cdc98d/32.png) [@chintu](https://discuss.elastic.co/u/chintu)\
**Post date:** [December 12, 2019, 5:48pm UTC](https://discuss.elastic.co/t/ec2-publicip-9200/211704/1 "2019-12-12T17:48:20Z")

</div>

Installed Java 1.8 and elasticsearch 7.x on linux box from EC2 instance.

curl localhost:9200 - gives a response as below which means everything is good from installation point of view

{  
"name" : "ip-172-31-46-49.eu-west-1.compute.internal",  
"cluster\_name" : "elasticsearch",  
"cluster\_uuid" : "fVTPcPrESeKSVpTtTLuI5w",  
"version" : {  
"number" : "7.5.0",  
"build\_flavor" : "default",  
"build\_type" : "rpm",  
"build\_hash" : "e9ccaed468e2fac2275a3761849cbee64b39519f",  
"build\_date" : "2019-11-26T01:06:52.518245Z",  
"build\_snapshot" : false,  
"lucene\_version" : "8.3.0",  
"minimum\_wire\_compatibility\_version" : "6.8.0",  
"minimum\_index\_compatibility\_version" : "6.0.0-beta1"  
},  
"tagline" : "You Know, for Search"  
}

If I try to access through a public ip by putting the command line in terminal I am getting persmission denied

command : sudo echo "network.host: 0.0.0.0" \>\> /etc/elasticsearch/elasticsearch.yml

My question/doubt is how can I access through the browser?

Ex : EC2 PublicIP:9200

Any suggestion/leads would be appreciated.

---

<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:** [January 9, 2020, 5:48pm UTC](https://discuss.elastic.co/t/ec2-publicip-9200/211704/2 "2020-01-09T17:48:29Z")

</div>

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