# Ray Dashboard cannot be accessed in the host browser

**URL:** <https://discuss.ray.io/t/ray-dashboard-cannot-be-accessed-in-the-host-browser/6326>\
**Category:** Ray Core\
**Created:** [May 30, 2022, 2:49am UTC](https://discuss.ray.io/t/ray-dashboard-cannot-be-accessed-in-the-host-browser/6326 "2022-05-30T02:49:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![shivanraptor](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/shivanraptor/32/2609_2.png) [@shivanraptor](https://discuss.ray.io/u/shivanraptor)\
**Post date:** [May 30, 2022, 2:49am UTC](https://discuss.ray.io/t/ray-dashboard-cannot-be-accessed-in-the-host-browser/6326/1 "2022-05-30T02:49:26Z")

</div>

**How severe does this issue affect your experience of using Ray?**

- High: It blocks me to complete my task.

I used the Docker image `rayproject/ray` from the official website, and start the container with:

docker run --shm-size=3G -dit -p 8265:8265 -p 8888:8888 --name raytest001 rayproject/ray

I run this script in the container machine:

```auto
import ray
ray.init()

```

It said Ray is launched successfully, but I cannot reach the dashboard in the Host browser: [http://172.17.0.2:8265](http://172.17.0.2:8265) (I confirmed the IP is correct).

I also tried this command:

```
ray start --head --dashboard-host "0.0.0.0"

```

The output said:

> Usage stats collection will be enabled by default in the next release. See (github link) for more details.  
> Local node IP: 172.17.0.2  
> 2022-05-29 19:40:44,187 INFO services.py:1462 – View the Ray dashboard at [http://172.17.0.2:8265](http://172.17.0.2:8265)
> 
> * * *
> 
> ## Ray runtime started.
> 
> Next steps  
> To connect to this Ray runtime from another node, run  
> ray start --address=‘172.17.0.2:6379’
> 
> Alternatively, use the following Python code:  
> import ray  
> ray.init(address=‘auto’)
> 
> To connect to this Ray runtime from outside of the cluster, for example to  
> connect to a remote cluster from your laptop directly, use the following  
> Python code:  
> import ray  
> ray.init(address=‘ray://\<head\_node\_ip\_address\>:10001’)
> 
> If connection fails, check your firewall settings and network configuration.
> 
> To terminate the Ray runtime, run  
> ray stop

Looks fine for me, but still the dashboard is not accessible outside the container. What should I do?

---

<div class="post-metadata">

**Author:** ![blshao84](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/blshao84/32/1010_2.png) [@blshao84](https://discuss.ray.io/u/blshao84)\
**Post date:** [May 31, 2022, 2:41am UTC](https://discuss.ray.io/t/ray-dashboard-cannot-be-accessed-in-the-host-browser/6326/2 "2022-05-31T02:41:00Z")

</div>

guess you should use ‘–dashboard-host=0.0.0.0’

---

<div class="post-metadata">

**Author:** ![shivanraptor](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/shivanraptor/32/2609_2.png) [@shivanraptor](https://discuss.ray.io/u/shivanraptor)\
**Post date:** [May 31, 2022, 3:11am UTC](https://discuss.ray.io/t/ray-dashboard-cannot-be-accessed-in-the-host-browser/6326/3 "2022-05-31T03:11:27Z")

</div>

Invalid syntax. In the `ray start --help`, it said:

```auto
--dashboard-host TEXT the host to bind the dashboard server to,
                                  either localhost (127.0.0.1) or 0.0.0.0
                                  (available from all interfaces). By default,
                                  thisis localhost.

```

---

<div class="post-metadata">

**Author:** ![dudeperf3ct](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/dudeperf3ct/32/2305_2.png) [@dudeperf3ct](https://discuss.ray.io/u/dudeperf3ct)\
**Post date:** [May 31, 2022, 8:18am UTC](https://discuss.ray.io/t/ray-dashboard-cannot-be-accessed-in-the-host-browser/6326/4 "2022-05-31T08:18:59Z")

</div>

@shivanraptor I tried the docker approach and was able to access the dashboard as well. Reference: [GitHub - dudeperf3ct/16-rayserve-deploy](https://github.com/dudeperf3ct/16-rayserve-deploy)

> 127.0.0.1:8265 to access ray dashboard.

---

<div class="post-metadata">

**Author:** ![shivanraptor](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/shivanraptor/32/2609_2.png) [@shivanraptor](https://discuss.ray.io/u/shivanraptor)\
**Post date:** [May 31, 2022, 9:28am UTC](https://discuss.ray.io/t/ray-dashboard-cannot-be-accessed-in-the-host-browser/6326/5 "2022-05-31T09:28:51Z")

</div>

Tried [http://127.0.0.1:8265](http://127.0.0.1:8265), empty response.

[http://172.17.0.2:8265](http://172.17.0.2:8265), connection timed out.

---

<div class="post-metadata">

**Author:** ![yic](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/yic/32/437_2.png) [@yic](https://discuss.ray.io/u/yic)\
**Post date:** [May 31, 2022, 9:59pm UTC](https://discuss.ray.io/t/ray-dashboard-cannot-be-accessed-in-the-host-browser/6326/6 "2022-05-31T21:59:18Z")

</div>

@shivanraptor I tried it locally with

```auto
ray start --head --dashboard-host "0.0.0.0"

```

and I can access the dashboard from my host browser. I think maybe there is some config issue in your docker env.

---

<div class="post-metadata">

**Author:** ![raino\_wang](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/raino_wang/32/6249_2.png) [@raino\_wang](https://discuss.ray.io/u/raino_wang)\
**Post date:** [June 22, 2024, 5:32pm UTC](https://discuss.ray.io/t/ray-dashboard-cannot-be-accessed-in-the-host-browser/6326/7 "2024-06-22T17:32:34Z")

</div>

How’s the command helps, I still got time out using ‘–dashboard-host “0.0.0.0”’
