Hi All
As per MQTT specs TCP ports 8883
and 1883
are reserved for MQTT TLS and non TLS communication respectively.
TLS communication or secure connection i.e on TCP port 8883
, MQTT messages are encrypted by TLS security layer before transmission.
So I try to start VerneMQ Broker
docker run -p 8883:8883 -p 8888:8888 -v /opt/scats/:/opt/scats/ -e “DOCKER_VERNEMQ_LISTENER__TCP__ALLOWED_PROTOCOL_VERSIONS=3,4,5” -e “DOCKER_VERNEMQ_ACCEPT_EULA=yes” -e “DOCKER_VERNEMQ_ALLOW_ANONYMOUS=on” -e “SHARED_SUBSCRIPTION_POLICY=prefer_local” -e “DOCKER_VERNEMQ_VMQ_WEBHOOKS__POOL_timeout=6000” -e “DOCKER_VERNEMQ_LEVELDB__MAXIMUM_MEMORY__PERCENT=40” -e “DOCKER_VERNEMQ_LISTENER__TCP__DEFAULT__MAX_CONNECTIONS=200000” -e DOCKER_VERNEMQ_LOG__CONSOLE=both -e “DOCKER_VERNEMQ_LOG__CONSOLE__LEVEL=info” -e “LOG_CONSOLE_FILE=/opt/scats/log/vernemq.log” -e “LOG_ERROR_FILE=/opt/scats/log/vernemq_error.log” -d vernemq/vernemq &
VerneMQ Broker start fine, but my Java publish and subscribe test program failed to connect VerneMQ Broker.
Can you please let me know what I am doing wrong.
Thank you for your help and support
Regards, Bao