Feature

Connection Doctor

Most MQTT clients report “connection failed” and stop there. Connection Doctor walks the connection through 14 stages and names the one that broke, with a plain-language cause and a suggested fix.

Why a connection fails, in plain language

A broker that won't connect can fail in a dozen places: DNS, the TCP socket, the WebSocket upgrade, the TLS handshake, the certificate, ALPN/SNI negotiation, the MQTT protocol, or a write your user isn't allowed to make. Connection Doctor checks each one in order and stops at the first problem, so you fix the real cause instead of poking at settings.

Every result carries the technical detail and a concrete next step. Secrets, raw payloads and private hostnames never reach the log, so a result is safe to read on a shared screen. The Pro unlock adds a shareable report with stage names and statuses only, ready for a bug report.

Connection Doctor showing a typed diagnostic for a failed MQTT connection
The stages

Checked in order, stops at the first failure

Configuration

Catches an empty host, an out-of-range port or a malformed address before anything touches the network.

DNS

Resolves the broker hostname, so a typo or a missing record shows up here.

TCP

Opens the socket and tells a refused connection, a timeout and an unreachable network apart.

WebSocket upgrade

On WS and WSS, confirms the broker accepted the upgrade and the path is right.

TLS

Opens the encrypted channel and flags a failed handshake or an unsupported TLS version.

Certificate chain

Checks that the broker's certificate leads to a CA you trust.

Certificate expiry

Flags an expired or not-yet-valid certificate.

Certificate hostname

Matches the broker address against the certificate's SAN and CN.

ALPN / SNI

Checks the negotiated protocol and server name, for example AWS IoT's x-amzn-mqtt-ca.

MQTT CONNACK

Reads the broker's answer, so a rejected Client ID or an unreadable reply gets its own message.

MQTT auth

Separates a bad username or password from other refusals.

MQTT protocol

Spots a broker that refuses your MQTT version, such as a 5.0 profile on a 3.1.1 broker.

Write permission

Publishes a test message, so you catch an ACL problem before you rely on the connection.

Retry

Tells you when the broker or network isn't ready yet and another run later is worth trying.

Connection Doctor FAQ

What does Connection Doctor do?

It walks the connection through 14 stages, from DNS and TCP through TLS and the certificate to MQTT authentication and write permission. It stops at the first failure and tells you which stage broke, the technical detail, and a suggested fix. A profile that connects through SSH adds four stages at the start: SSH server, host key, sign-in and tunnel.

Is Connection Doctor free?

Yes. The free app shows 7 of the 14 stages and always names the stage that failed, with the cause and a suggested fix, TLS stages included. The one-time Pro unlock lists all 14 as their own lines (handshake, chain, expiry, hostname, ALPN/SNI, protocol and retry) and adds a report you can share. On a profile with SSH, every stage is free.

Do the diagnostics leak secrets?

No. Passwords, certificate material, raw payloads and private endpoint hostnames never reach the diagnostic log. The shareable report in Pro lists stage names and statuses only, so you can send it to a colleague or paste it into a ticket as is.

Does it help with TLS and mTLS errors?

That's its strongest area. It names expired certificate chains, hostname mismatches, wrong ALPN protocols (for example AWS IoT's x-amzn-mqtt-ca) and unsupported TLS versions instead of a generic “handshake failed.”

Will it explain an authentication failure?

Yes. It decodes MQTT 5 reason codes from the CONNACK packet, so you read “not authorized” or “bad username or password” instead of an opaque code.

Debug your next MQTT connection

Connection Doctor ships in MQTT Commander for iPhone and iPad.

Free · Pro unlock $4.99, one-time