I am setting up a MQTT architecture in my local network whose broker and one client are on a Rpi and another client is on a Parrot OS virtual machine (VM) located in a PC.
The broker and the client of the Rpi work properly but when I try to connect the VM to the Rpi's broker by mosquitto_pub -h RpiIP -t mytopic -q 0 -m try, I get the following error:
I have also tried to do a nmap of the VM' static IP address in the Rpi and a nmap of the Rpi's IP address in the VM and in both cases it doesn't detect any device in both IP addresses.
I think the problem is related to the IP addresses of both the Rpi and the VM.
Thanks!
The broker and the client of the Rpi work properly but when I try to connect the VM to the Rpi's broker by mosquitto_pub -h RpiIP -t mytopic -q 0 -m try, I get the following error:
In the VM I have set up a NAT adapter and a Host-only Adapter with the static IP address 192.168.1.203 and the Rpi has the static IP 192.168.1.254.Error: No route to host
I have also tried to do a nmap of the VM' static IP address in the Rpi and a nmap of the Rpi's IP address in the VM and in both cases it doesn't detect any device in both IP addresses.
I think the problem is related to the IP addresses of both the Rpi and the VM.
Thanks!