B4J Question MqttBroker problem

uniplan

Active Member
Licensed User
Longtime User
I have realized a MQTT brokers using the MQTT library.
I used the following code:

B4X:
broker.Initialize("", 51042)            
broker.SetUserAndPassword("xxxxx","yyyyyy")

and

B4X:
broker.Start

The broker works properly.

The problems have arisen when I tried to move the broker to another server.

On the new server, when I run:

B4X:
broker.Start

I have this error:


I checked and the port is not in use.

I have also tried it on other servers. Some work and some do not.

What could be the problem?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…