Score:0

MQTT on Ubuntu VM can’t connect to Node-Red

cn flag

I’m attempting to create Mosquitto MQTT Broker on Ubuntu VM. When i use sever localhost or ip 127.0.0.1, i can connect, but with ip 192.168.1.100 is not. This is my first time i create broker and i dont know how to fix it! image description

24601 avatar
in flag
please take the [tour] read [ask] then [edit] accordingly
user535733 avatar
cn flag
Is the VM's IP address really 192.168.1.100. Are you sure? Maybe it changed.
ducle27 avatar
cn flag
i use "ifconfig" in terminal, it has 2 ip "192.168.1.100" and "127.0.0.1". I try using putty with ip "192.168.1.100" and it works. But when i test mqtt it cant. I checked ip VM again
Score:0
us flag

For an example of installing an Mosquitto MQTT, where server and client on the same node, can be seen on this article.

https://otodiginet.com/software/how-to-install-mosquitto-mqtt-on-linux-ubuntu-20-04-lts/

I hope it can help. Thank you.

ChanganAuto avatar
us flag
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/late-answers/1182531)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.