Category: Supabase and databases

Supabase: IPv4 Client Cannot Use Direct Database Connection

Read this guide in Polish

The driver outside the host reports a timeout at direct connection, even though the credentials are correct.

How to identify the source of the problem

Check IPv6 support in the client environment and available connection types in the project panel.

Compare the result for the authorized and unauthorised user, project name and exact error code.

Repair steps

Use the recommended IPv4 pooler if the environment does not have compatible IPv6 routing.

How to Test Solution

The connection works on the right route, without exposing the base publicly beyond the need.

Security and restrictions

Change permissions and scheme first on test data with backup. Do not put service role in your browser.