How to connect to databases that are not exposed to the internet or that restrict source IP addresses.
When you run cloudflared on a machine in your network, it opens an outbound connection to Cloudflare, and Scandock reaches your database through it. You do not need to expose the database to the internet or open inbound firewall ports.
Under "Connections" in the console, click "Create tunnel" and enter a display name and the database's host name or IP address as seen from cloudflared. You can use an internal address (10.x, 192.168.x and so on), a name from your internal DNS, or the host name of an Amazon RDS, Aurora, Cloud SQL or Azure database, or 127.0.0.1 if cloudflared runs on the database server, together with the port the database listens on.
Run the displayed command on that machine (Docker, Linux or Windows). On Linux and Windows it is installed as a service and keeps running after restarts.
When the tunnel shows "Connected", click "Add connection", choose this tunnel as the route, and register the connection string. Scandock ignores the host and port in the connection string and connects to the tunnel's target, using the user, password and database name from the connection string.
The container must be able to reach the database. If the database runs on the Docker host itself, create the tunnel with the host's LAN IP address instead of 127.0.0.1, or on Linux start the container with --network host.
For anything not covered here, contact support@scandock.ai.
Last updated: October 31, 2026