# Database Connection Setup

There are **three ways** to connect a database:

1. Connection on a port via data (optionally via whitelisted IP)
2. SSH connection
3. Reverse SSH tunnel&#x20;

### 1. Whitelisting Locoia IP

An easy way to connect to a database is to whitelist Locoia static IP. Reach out to a solutions consultant to retrieve it.

### 2. SSH connection

Ask a solutions consultant.

### 3. Reverse SSH tunnel

Ask a solutions consultant.
