# Resolving database hostname and managing your IP address

## Finding your database hostname

Your database's hostname is crucial for establishing a direct connection. It resolves to the underlying IP address of your database.

To find your hostname, navigate to the dashboard and click [Connect](https://supabase.com/dashboard/project/_?showConnect=true). Look at the Direct connection string and click the View parameters under it to see the hostname.

Example Hostname: `db.zcjtzmeifsoteyjytnbc.supabase.co`

![Screenshot 2024-04-02 at 11 38 28 AM](/docs/img/troubleshooting/565c96e0-cbb9-4e7a-b0aa-5b423afc0ada.png)

## Managing your IP address

To determine your current IP address, you can use an [IP address lookup](https://whatismyipaddress.com/hostname-ip) website or the terminal command:

- Type `nslookup hostname` and press Enter.
- This command queries the domain name servers to find the IP address of the given hostname.

Example IPv6 Address: `2a05:d014:1c06:5f0c:d7a9:8616:bee2:30df`

## IPv6 address

Upon project creation, a static IPv6 address is assigned. However, it's essential to understand that this IPv6 address can change due to specific actions:

- When a project is paused or resumed.
- During database version upgrades.

## IPv4 address

Opting for the static [IPv4 add-on](https://supabase.com/docs/guides/platform/ipv4-address) provides a more stable connection address. The IPv4 address remains constant unless:

- The project is paused or resumed.
- Unlike the IPv6 address, upgrading your database does not affect the IPv4 address.
