I'm newbie on Node-Red and MQTT paradigm. My setup is host PC Windows 10 with two VMs on Virtual Box running Ubuntu 18.04. I've installed mosquitto and node-red in both VMs.
I've successfully publish and subscribe in one of the VMs in the same flow. However, I want to subscribe in one VMs and publish in the other one. One VMs has the IP 192.168.1.45 (publisher) and the other one 192.168.1.99 (subscriber). I've tried the following:
- Configure server in publisher with .99 and the subscriber with .45
- Configure server both in publisher and subscriber with .45
- Configure server both in publisher and subscriber with public IP 79.158.X.X
Unfortunately, non of the above configurations worked.
How should I do it?
Thanks in advanced