> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dcdeploy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# TCP Proxy & Public URLs

> The **TCP Proxy** in DCDeploy allows you to expose workloads that communicate over **raw TCP protocols** (non-HTTP). This is especially useful for **databases, message brokers, and custom TCP-based services**. With **TCP Public URLs**, you can also securely connect to these services from outside DCDeploy.

***

## When to use TCP Proxy?

* **Databases** – Expose PostgreSQL, MySQL, or Mongodb for internal/external access.
* **Message Brokers** – Kafka, RabbitMQ, or custom TCP services.
* **Custom Protocols** – Any app or service that doesn’t use HTTP/HTTPS.

***

### Example: Mongo-db with TCP Proxy

<img height="200" src="https://mintcdn.com/dcdeploy-9454b28e/pB_4WKNF_G09F_LI/docs/deploy/images/db-form.png?fit=max&auto=format&n=pB_4WKNF_G09F_LI&q=85&s=efde481bb03bdbd195b83340d2e25c21" data-path="docs/deploy/images/db-form.png" />

### TCP Public URLs for Databases

When you set protocol: tcp, DCDeploy provisions a public TCP endpoint so you can connect to your database or TCP service from anywhere.

### PostgreSQL Example

<img height="200" src="https://mintcdn.com/dcdeploy-9454b28e/pB_4WKNF_G09F_LI/docs/deploy/images/db-pg-form.png?fit=max&auto=format&n=pB_4WKNF_G09F_LI&q=85&s=b229ca18577c8022435eacbc860db36c" data-path="docs/deploy/images/db-pg-form.png" />

Mysql Example

<img height="200" src="https://mintcdn.com/dcdeploy-9454b28e/pB_4WKNF_G09F_LI/docs/deploy/images/db-mysql-form.png?fit=max&auto=format&n=pB_4WKNF_G09F_LI&q=85&s=d61aba07f39426e61e3a71f550bd6300" data-path="docs/deploy/images/db-mysql-form.png" />

### Best practices

* Secure your database – Never leave databases open without authentication. Always set strong passwords.
* Restrict access – Use firewall rules or allow-list IPs if possible.
* Prefer private networking – For production workloads, use DCDeploy’s private VPC or service-to-service networking instead of exposing databases publicly.
* Use secrets to store credentials rather than hardcoding them in your worhload form.

***
