> For the complete documentation index, see [llms.txt](https://aws-postgresql-docs.beliciarodriguez.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aws-postgresql-docs.beliciarodriguez.com/remote-server-accessing-server-on-local-computer/remote-overview.md).

# Overview

Now that we have spent a lot of time configuring our server, it's time to use it! We will be reviewing two different ways to connect to our server remotely:

1. Using pgAdmin4, PostgreSQL's most popular GUI
2. Using Python API

### Database Server Host Name/Address

Your server host name/address can be found on the "Instances" section of AWS. You will need this address to connect to your server.

1. Click on your PostgreSQL instance
   * Information about your instance should appear below
2. Copy and save your "Public IPv4 DNS", your server's host name and address
   * Your "Public IPv4 DNS" should be written in the following format: ec2-\[your-public-IPv4-address].\[region].compute.amazonaws.com"

![](/files/-MR5iBW10hbjtW2wZbUL)

### References

*Guides*

(1) Better Programming (Medium), *How to Provision a Cheap PostgreSQL Database in AWS EC2*,&#x20;

{% embed url="<https://medium.com/better-programming/how-to-provision-a-cheap-postgresql-database-in-aws-ec2-9984ff3ddaea>" %}

(2) PostgreSQL Tutorial, *PostgreSQL Python: Connect to PostgreSQL Database Server*,

{% embed url="<https://www.postgresqltutorial.com/postgresql-python/connect/>" %}

(3) Towards Data Science (Medium), *Python and PostgreSQL: How to Access A PostgreSQL Database Like a Data Scientist*,

{% embed url="<https://towardsdatascience.com/python-and-postgresql-how-to-access-a-postgresql-database-like-a-data-scientist-b5a9c5a0ea43>" %}
