To connect your application to the EMQX Cloud, you need to create and configure a deployment.

#### Serverless Deployment

1. [Create a Serverless deployment](../create/serverless.md) in the EMQX Cloud Console.

2. Once the deployment is created and running, go to the deployment **Overview** page to find the MQTT connection information, including:

   - Broker address

   - Port number (only TLS ports are supported in Serverless)

3. Serverless deployments require TLS connections. Make sure to download the CA certificate from the **Overview** page and use port `8883` for TLS.

4. Configure the [default authentication](../deployments/default_auth.md) (username/password) under **Access Control** -> **Client Authentication** in the deployment.

For more details, refer to the [Serverless Port Guide](../deployments/port_guide_serverless.md).

#### Dedicated Flex or BYOC Deployment

1. You can create a [Dedicated Flex](../create/dedicated.md) or [BYOC](../create/byoc.md) deployment in the EMQX Cloud Console.
2. After creation, go to the deployment **Overview** page to retrieve MQTT connection information, including:
   - Broker address
   - TCP and TLS port numbers for MQTT and WebSocket (Both TCP and TLS connections are supported).
3. Configure the [default authentication](../deployments/default_auth.md) (username/password) under **Access Control** -> **Client Authentication** in the deployment.

For detailed port configurations, see the [Dedicated & BYOC Port Guide](../deployments/port_guide_dedicated.md).