Remote database access lets an application on another machine connect to a database in your cPanel account. This guide explains how to allow that machine’s address.

Before you begin

Confirm that your provider permits remote connections. Obtain the connecting machine’s public source IP, the database server address, database name and authorised user’s credentials. A private address behind NAT will not normally match the address seen by the database server.

Add the host

  1. Open Databases > Remote Database Access in cPanel.

    databases

  2. Enter the approved source IP or hostname and optionally a descriptive comment.

  3. Select Add Host.

    add access host

  4. Check the entry under Manage Access Hosts.

    manage host access

Test the connection

Check database privileges, server listening settings and firewalls with your administrator. Allow-listing alone does not authenticate the user or encrypt traffic. Test from the approved machine using encryption where supported, then remove access when no longer needed.