Connect your application

Endpoints, encrypted connections, IP access and useful troubleshooting.

Allow your application's address

Add the public outbound IP used by your application server. Your laptop and your application can have different addresses. For changing outbound addresses, Network access also offers Allow from anywhere. It opens only the database port to all IPv4 and IPv6 clients after you confirm the warning; TLS and authentication remain required. Prefer specific application IPs, and replace the public ranges with your client IPs to restrict access again.

Use TLS and verify the certificate

Your connection details include the endpoint, port and CA certificate. Enable certificate verification in your client. Database endpoints use a dedicated hostname under db.staticweb.space. These DNS-only endpoints reach your database server, or the TCP load balancer for an HA deployment; the web portal’s Cloudflare CDN does not proxy database TCP traffic. Keep credentials in a secret store or server-side environment variables. The examples below contain placeholders, not real credentials.

psql "host=YOUR_ENDPOINT port=5432 dbname=app user=app_user sslmode=verify-full sslrootcert=./ca.pem"

mysql --host=YOUR_ENDPOINT --port=3306 --user=app_user --password \
  --ssl-mode=VERIFY_IDENTITY --ssl-ca=./ca.pem

Copy credentials or use a desktop client

Open your deployment’s Connection tab and reveal credentials for a copyable connection URL. Terminal and Node.js examples use your actual hostname and include CA verification settings. For PostgreSQL or MySQL in DataGrip, add the appropriate data source, enter the hostname, port, database and credentials, then enable SSL under SSH/SSL with the downloaded CA and Full Verification. Test the connection after allowing your computer’s public IP.

If the connection fails

Check the deployment is ready, the source IP is allowed, the database name and password are correct, and the client uses the supplied hostname and CA. A timeout commonly indicates a network rule; an authentication error commonly indicates the user, password or permissions.

Change the connection port

In Network access, enter a new port from 1024 to 65535 and confirm it. A standard database briefly restarts. For HA, the endpoint ports change while internal replication ports stay fixed. The hostname, credentials and allowed IPs remain the same; your connection URL and client examples refresh after the change completes. Update your application and desktop clients to the new port. Ports already in use are rejected, and a failed restart restores the previous settings.

Use a connection pool

Your plan limits concurrent connections. Reuse connections through your framework's pool, and budget for all application replicas, background jobs and administrative tools together.

Read nextDatabases, users & permissions