# Connect to the Deployment with MQTT.fx

This article will take MQTT.fx (opens new window) as MQTT client (opens new window) test tool to connect the deployment of EMQX Cloud.

MQTT.fx (opens new window) is the most popular MQTT desktop client tool currently. The major version of MQTT.fx 1.0 is developed by Jens Deters (opens new window) using JavaFX (opens new window) technology, which is a Java virtual machine application. Unfortunately, the maintenance of MQTT.fx has now stopped maintenance and Softblade company has sponsored the development and released its commercial version MQTT.fx® 5.0, which is operated with a fee-based license. MQTT.fx in this article refers to version 1.0 without special instructions.

TCP and TLS protocols are supported but WebSocket.

# Preconditions

  1. Install (opens new window) MQTT.fx client
  2. Already Create Deployment in EMQX Cloud, and the deployment status is running

# Connection configuration

# Broker information

Get the connection address and port in the Deployment Overview (the following xxxxx represents a random port, the specific port information please refer to the information on the deployment overview page).

  • Professional plan address: IP; port: 1883(mqtt), 8083(ws) is enabled by default, you can enable port 8883(mqtts) and 8084(wss) by configuring TLS/SSL
  • Standard plan address: domain name ending with emqx.cloud suffix; port: xxxxx (mqtt), xxxxx (ws), xxxxx (mqtts), xxxxx (wss)

# Authentication

All deployments of EMQX Cloud have user authentication enabled, so when using MQTT.fx to test the connection, you need to fill in the Username and Password fields.

Set the Username and Password in Authentication & ACL > Authentication, which can be added one by one, or can be imported at once

# Connect

  1. Open connection profile

    Open connection profile of MQTT.fx

  2. Create a new connection configuration and fill in the relevant configuration

    Connection configuration of MQTT.fx

  3. Connect to MQTT broker

    Use MQTT.fx to connect MQTT broker

# More

For more subscription, publishing and other functions, please refer to: Using MQTT.fx to connect to EMQX Cloud (opens new window).