28
Views
2
Comments
[MQTT Web Client] MQTT on LAN
mqtt-web-client
Web icon
Forge asset by Barduino
Application Type
Traditional Web
Service Studio Version
11.53.28 (Build 61664)

Hi all!
I'm trying to connect to my MQTT broker in my home LAN.
The connection fails but I don't understand why.
I attach a screenshot of what I see on my laptop.
Please, can anyone help me?

Thanks


Screenshot 2022-12-09 121659.jpg
UserImage.jpg
Barduino

Hi Giovanni, from your screenshot, it looks like you are trying to use an SSL connection to a private IP address.

If you have indeed configured your MQTT broker to use SSL, generated valid SSL certificates, then use the domain name for which those certificates have been created, not the IP address, otherwise it will always be rejected by your browser. 

There are public available MQTT brokers for testing purposes configured with SSL certificates, take a look at this example https://test.mosquitto.org/

If you haven't configured your private MQTT broker to use valid SSL certificates, then you must switch to HTTP on your browser (not https) and try to connect again. It is possible however that your outsystems server is configured to use only HTTPS, in which case you'll be forced to configure proper SSL certificates iin your broker since the browser wont let you open an insecure connection via javascript if your original connection is HTTPS. 

UserImage.jpg
Giovanni-T

Hi Barduino! (like italian "Arduino"? ;-) )

I state two things:
1) My MQTT broker has not been configured to use SSL;
2) I connect, on the fly and without problems, to my broker with other MQTT clients, even via smartphone.

In this case, after your message:
- I unchecked the "SSL" check;
- I removed the "s" in the browser url (therefore from "https://" to "http://") but...

The exact same problem occurs again

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.