# Unable to access Elasticsearch outside server

**URL:** https://discuss.elastic.co/t/unable-to-access-elasticsearch-outside-server/80007
**Category:** Elasticsearch
**Created:** [March 25, 2017, 7:45pm UTC](https://discuss.elastic.co/t/unable-to-access-elasticsearch-outside-server/80007 "2017-03-25T19:45:13Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Rupesh\_Ranjan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rupesh_ranjan/32/22283_2.png) [@Rupesh\_Ranjan](https://discuss.elastic.co/u/Rupesh_Ranjan)
#### Post date: [March 25, 2017, 7:45pm UTC](https://discuss.elastic.co/t/unable-to-access-elasticsearch-outside-server/80007/1 "2017-03-25T19:45:13Z")

</div>

I have an openstack server running on linux, where i have installed Elasticsearch 5.2.2. I am able to start elasticsearch locally and while inside server, curl localhost:9200 returns response that elasticsearch is up and running. But while trying to access server-ip:9200 from web browser, it is unable to connect.  
This is my elasticsearch.yml file

```
    # ======== Elasticsearch Configuration ======
    # ---------------- Cluster ---------------
    cluster.name: test

    # ---------------------- Node -------------
    node.name: node-1

    # ------------------- Network -------------
    # Set the bind address to a specific IP (IPv4 or IPv6):
    network.host: 0.0.0.0
    # Set a custom port for HTTP:
    http.port: 9200

    transport.tcp.port: 9300-9400
```

---

<div class="post-metadata">

### Author: ![nugusbayevkk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nugusbayevkk/32/126683_2.png) [@nugusbayevkk](https://discuss.elastic.co/u/nugusbayevkk)
#### Post date: [March 25, 2017, 7:50pm UTC](https://discuss.elastic.co/t/unable-to-access-elasticsearch-outside-server/80007/2 "2017-03-25T19:50:59Z")

</div>

explore this params for configuration file:  
**network.host**  
**network.bind\_host**  
**network.publish\_host**

---

<div class="post-metadata">

### Author: ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)
#### Post date: [March 25, 2017, 9:52pm UTC](https://discuss.elastic.co/t/unable-to-access-elasticsearch-outside-server/80007/3 "2017-03-25T21:52:10Z")

</div>

What interfaces does Elasticsearch show that it is bound to in the startup logs? You can find this in the startup logs between "initializing" and "started".

---

<div class="post-metadata">

### Author: ![Rupesh\_Ranjan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rupesh_ranjan/32/22283_2.png) [@Rupesh\_Ranjan](https://discuss.elastic.co/u/Rupesh_Ranjan)
#### Post date: [March 26, 2017, 5:06am UTC](https://discuss.elastic.co/t/unable-to-access-elasticsearch-outside-server/80007/4 "2017-03-26T05:06:48Z")

</div>

This is what i get for bound address in logs  
bound\_addresses {[::]:9200}

---

<div class="post-metadata">

### Author: ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)
#### Post date: [March 26, 2017, 7:15pm UTC](https://discuss.elastic.co/t/unable-to-access-elasticsearch-outside-server/80007/5 "2017-03-26T19:15:33Z")

</div>

Okay, good. What does ifconfig show for the IP addresses for this machine? What happens if you curl port 9200 on one of those IP addresses from the machine itself?

---

<div class="post-metadata">

### Author: ![Rupesh\_Ranjan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rupesh_ranjan/32/22283_2.png) [@Rupesh\_Ranjan](https://discuss.elastic.co/u/Rupesh_Ranjan)
#### Post date: [March 27, 2017, 3:49am UTC](https://discuss.elastic.co/t/unable-to-access-elasticsearch-outside-server/80007/6 "2017-03-27T03:49:10Z")

</div>

The IP address, that i get by hitting ifconfig, with that i am able to do a curl inside the machine. However, outside the machine, when i hit through browser i get a request timed out **(ERR\_CONNECTION\_TIMED\_OUT)** response.

**EDIT**  
Apparently, seems like I had a firewall issue blocking the particular port. so, as soon as i unblocked the 9200 port, i was able to access ES from outside the machine.

---

<div class="post-metadata">

### Author: ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)
#### Post date: [March 27, 2017, 3:55pm UTC](https://discuss.elastic.co/t/unable-to-access-elasticsearch-outside-server/80007/7 "2017-03-27T15:55:01Z")

</div>

> [@Rupesh\_Ranjan](#):
>
> The IP address, that i get by hitting ifconfig, with that i am able to do a curl inside the machine. However, outside the machine, when i hit through browser i get a request timed out **(ERR\_CONNECTION\_TIMED\_OUT)** response.

If this is the case, the problem is not Elasticsearch but a firewall or other network configuration.

---

<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 24, 2017, 3:55pm UTC](https://discuss.elastic.co/t/unable-to-access-elasticsearch-outside-server/80007/8 "2017-04-24T15:55:27Z")

</div>

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