# How to access YugabByte one node cluster from outside?

**URL:** <https://forum.yugabyte.com/t/how-to-access-yugabbyte-one-node-cluster-from-outside/2744>\
**Category:** General\
**Created:** [June 26, 2024, 4:56pm UTC](https://forum.yugabyte.com/t/how-to-access-yugabbyte-one-node-cluster-from-outside/2744 "2024-06-26T16:56:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![setu1421](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@setu1421](https://forum.yugabyte.com/u/setu1421)\
**Post date:** [June 26, 2024, 4:56pm UTC](https://forum.yugabyte.com/t/how-to-access-yugabbyte-one-node-cluster-from-outside/2744/1 "2024-06-26T16:56:39Z")

</div>

I have installed YugaByte and created a local cluster in one AWS EC2 (RHEL 8) machine by following [this](https://docs.yugabyte.com/preview/quick-start/) tutorial. The yugabyte is running as below:

[![enter image description here](https://canada1.discourse-cdn.com/flex027/uploads/yugabyte/original/1X/6bb792eee53aeb882d02f6159ea6a70204d0a2f8.png)](https://i.sstatic.net/QSCYJpcn.png)

The IP Address of the AWS EC2 machine is: 10.10.23.34

Now, I want to connect to the database using pgAdmin which is installed in my Windows machine and found that the server could be not reached.

[![enter image description here](https://canada1.discourse-cdn.com/flex027/uploads/yugabyte/original/1X/99dc12848f4b1a16527c4c98bd06ee6922e65408.png)](https://i.sstatic.net/zOmhD9N5.png)

[![enter image description here](https://canada1.discourse-cdn.com/flex027/uploads/yugabyte/original/1X/5256a113c1ca6abfa9316738e7ab8101308d7a91.png)](https://i.sstatic.net/lQNB40C9.png)

I tried to run the yugabyte server with **–advertise\_address** flag but still could not connect with pgAdmin.

```
 ./bin/yugabyted start --advertise_address=10.10.23.34

```

I have tried with --listen flag but still could not connect.

> ./bin/yugabyted start --listen 0.0.0.0

How to change the listen address such as to any network so that the connection can be made to the yugabyte ysql server from the outside?

---

<div class="post-metadata">

**Author:** ![dorian\_yugabyte](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/dorian_yugabyte/32/206_2.png) [@dorian\_yugabyte](https://forum.yugabyte.com/u/dorian_yugabyte)\
**Post date:** [June 27, 2024, 7:23am UTC](https://forum.yugabyte.com/t/how-to-access-yugabbyte-one-node-cluster-from-outside/2744/2 "2024-06-27T07:23:34Z")

</div>

Hi @setu1421

Did you read my reply on your stackoverflow post [database - How to connect to YugaByte local cluster from PgAdmin - Stack Overflow](https://stackoverflow.com/questions/78669572/how-to-connect-to-yugabyte-local-cluster-from-pgadmin)?

Have you made sure a firewall isn’t blocking the access to your server from outside?

Did you also try with psql or ysqlsh?

---

<div class="post-metadata">

**Author:** ![FranckPachot](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/franckpachot/32/353_2.png) [@FranckPachot](https://forum.yugabyte.com/u/FranckPachot)\
**Post date:** [June 27, 2024, 8:02am UTC](https://forum.yugabyte.com/t/how-to-access-yugabbyte-one-node-cluster-from-outside/2744/3 "2024-06-27T08:02:57Z")

</div>

What is 10.10.23.34 - the public or local address? The local one is on the VPC and is the one you put in ‘advertise\_address’. The public one exposes it through NAT and is the one you use from your pgAdmin client.  
You can check those addresses from the EC2 VM with:

```auto
grep ipv4s /run/cloud-init/instance-data.json

```
