# 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>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://aws-postgresql-docs.beliciarodriguez.com/remote-server-accessing-server-on-local-computer/remote-overview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
