Skip to content

How to enable the port 1883 in ActiveMQ?

0

Hi,

I am going to execute a MQ migration from Linux MQTT broker to ActiveMQ. However, the default MQ port in ActiceMQ is port 8883. And my existing Linux MQTT broker's port is 1883.

Is there any methods to change port to 1883 to port 8883?

Thanks.

asked a year ago195 views
1 Answer
3

Please follow on below:

  1. Locate the activemq.xml Configuration File:

This file is typically found in the conf directory of your ActiveMQ installation.

  1. Edit the MQTT Transport Connector:
  • Open the activemq.xml file in a text editor.

  • Look for the <transportConnector> tag that defines the MQTT protocol:

<transportConnector name="mqtt" uri="mqtt://0.0.0.0:8883?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>

  • Change the port from 8883 to 1883:
<transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>

Save and Restart ActiveMQ:

Save the changes to the activemq.xml file.

Restart the ActiveMQ service to apply the new configuration.

Verify the Change:

Use a tool like netstat or an MQTT client to confirm that ActiveMQ is now listening on port 1883.

EXPERT
answered 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.