# Struggling to connect via publicip:8000

**URL:** <https://discuss.dgraph.io/t/struggling-to-connect-via-publicip-8000/19687>\
**Category:** Dgraph\
**Tags:** kind:question, dgraph\
**Created:** [January 6, 2025, 7:31am UTC](https://discuss.dgraph.io/t/struggling-to-connect-via-publicip-8000/19687 "2025-01-06T07:31:29Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![goku97](https://avatars.discourse-cdn.com/v4/letter/g/bb73d2/32.png) [@goku97](https://discuss.dgraph.io/u/goku97)\
**Post date:** [January 6, 2025, 7:31am UTC](https://discuss.dgraph.io/t/struggling-to-connect-via-publicip-8000/19687/1 "2025-01-06T07:31:29Z")

</div>

HI ,

I need help. I am new to dgraph and i am trying to install dgraph via ec2 to connect it to create a cluster.

The issue is that i am able to access dgraph via localhost:8000. From there i use my publickey:8080 to connect it. There is no issue for that. I am able to connect it. But when i try to run my publicley:8000 via another browser,I am struggling to get access . I tried to troubleshoot the issue but still no luck.  
I stiil dont get any access using my publick key via publickey:8000

---

<div class="post-metadata">

**Author:** ![goku97](https://avatars.discourse-cdn.com/v4/letter/g/bb73d2/32.png) [@goku97](https://discuss.dgraph.io/u/goku97)\
**Post date:** [January 6, 2025, 7:35am UTC](https://discuss.dgraph.io/t/struggling-to-connect-via-publicip-8000/19687/2 "2025-01-06T07:35:13Z")

</div>

[Steps i follwed](https://docs.google.com/document/d/1FSLYyT66Vd2KxoyNCriqcaXyGBVdLGTlSmTb0wcnkq8/edit?usp=sharing)

---

<div class="post-metadata">

**Author:** ![Raphael](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/raphael/32/10075_2.png) [@Raphael](https://discuss.dgraph.io/u/Raphael)\
**Post date:** [January 6, 2025, 3:39pm UTC](https://discuss.dgraph.io/t/struggling-to-connect-via-publicip-8000/19687/3 "2025-01-06T15:39:45Z")

</div>

8000 is not a Dgraph port by default. Dgraph basic cluster has one zero and one alpha process.  
You can see the default port at [Ports Usage - Deploy](https://dgraph.io/docs/deploy/security/ports-usage/#default-ports-used-by-different-nodes)

8000 is used by Ratel which is a UI application.  
Ratel connects to Dgraph Alpha and has Dgraph Server Connexion configuration panel ( click on the connection URL on the top left of the UI).  
I hope that helps else could you clarify the different servers you are setting up?

---

<div class="post-metadata">

**Author:** ![goku97](https://avatars.discourse-cdn.com/v4/letter/g/bb73d2/32.png) [@goku97](https://discuss.dgraph.io/u/goku97)\
**Post date:** [January 8, 2025, 1:23pm UTC](https://discuss.dgraph.io/t/struggling-to-connect-via-publicip-8000/19687/4 "2025-01-08T13:23:03Z")

</div>

I tried connection URL from UI (localhost:8000) . i am still getting connection visa 8080 but 8000 is still not connecting .

---

<div class="post-metadata">

**Author:** ![Raphael](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/raphael/32/10075_2.png) [@Raphael](https://discuss.dgraph.io/u/Raphael)\
**Post date:** [January 8, 2025, 5:15pm UTC](https://discuss.dgraph.io/t/struggling-to-connect-via-publicip-8000/19687/5 "2025-01-08T17:15:06Z")

</div>

What is supposed to reply on 8000?  
Are you trying yo use Ratel?  
have you started the Ratel docker image?

---

<div class="post-metadata">

**Author:** ![goku97](https://avatars.discourse-cdn.com/v4/letter/g/bb73d2/32.png) [@goku97](https://discuss.dgraph.io/u/goku97)\
**Post date:** [January 12, 2025, 10:05am UTC](https://discuss.dgraph.io/t/struggling-to-connect-via-publicip-8000/19687/6 "2025-01-12T10:05:19Z")

</div>

sorry for that . i meant it try to connect to [http://publickey:8000](http://publickey:8000) . i am not able to connect it.  
Yes i am trying to use ratel and i have started the docker image

---

<div class="post-metadata">

**Author:** ![vnium](https://avatars.discourse-cdn.com/v4/letter/v/e56c9b/32.png) [@vnium](https://discuss.dgraph.io/u/vnium)\
**Post date:** [January 12, 2025, 11:34am UTC](https://discuss.dgraph.io/t/struggling-to-connect-via-publicip-8000/19687/7 "2025-01-12T11:34:13Z")

</div>

what is `publickey`? Is it a host name you configured? Are you trying to connect to Ratel from another machine? If so, you might have to configure some port forwarding on the docker container so it is accessible from outside your machine.

---

<div class="post-metadata">

**Author:** ![goku97](https://avatars.discourse-cdn.com/v4/letter/g/bb73d2/32.png) [@goku97](https://discuss.dgraph.io/u/goku97)\
**Post date:** [January 12, 2025, 1:21pm UTC](https://discuss.dgraph.io/t/struggling-to-connect-via-publicip-8000/19687/8 "2025-01-12T13:21:23Z")

</div>

Yes i am trying to connect to dgraph via my aws ec2. I am getting connection via [http://publickey:8080](http://publickey:8080) but not for the [http://publickey:8000](http://publickey:8000)

---

<div class="post-metadata">

**Author:** ![goku97](https://avatars.discourse-cdn.com/v4/letter/g/bb73d2/32.png) [@goku97](https://discuss.dgraph.io/u/goku97)\
**Post date:** [January 15, 2025, 6:18am UTC](https://discuss.dgraph.io/t/struggling-to-connect-via-publicip-8000/19687/9 "2025-01-15T06:18:56Z")

</div>

now i am able to connect to my [http://publickey:8000](http://publickey:8000) but its showing status as connection error. any idea how this can be resolved

 ![Screenshot from 2025-01-15 11-46-56](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/8/80088bba7c97d2de9dcb39b7aa64a676a99c899d.png)

---

<div class="post-metadata">

**Author:** ![matthewmcneely](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/matthewmcneely/32/4774_2.png) [@matthewmcneely](https://discuss.dgraph.io/u/matthewmcneely)\
**Post date:** [January 15, 2025, 10:50pm UTC](https://discuss.dgraph.io/t/struggling-to-connect-via-publicip-8000/19687/10 "2025-01-15T22:50:43Z")

</div>

Is the ip and port (16.171.110.111:8080) available from the computer from which you’re accessing Ratel?

Try

```auto
curl http://16.171.110.111:8080/query

```

If not, then you need to solve the network access issue to your Dgraph cluster.
