[SOLVED] Mosquito config settings?

I am getting desperate. I can not connect to home assistant via MQTT.fx software or my NodeMcu device… I have the hassio Mosquito addon installed, and in the options I have:

{
“plain”: true,
“ssl”: false,
“anonymous”: true,
“logins”: [
{
“username”: “xxx”,
“password”: “yyy”
}
],
“customize”: {
“active”: false,
“folder”: “mosquitto”
},
“certfile”: “fullchain.pem”,
“keyfile”: “privkey.pem”
}

In configuration.yaml I have

mqtt:
broker: 172.17.0.1
username: xxx
password: yyy

I have no idea why I can not connect to it… Any suggestions what am I missing?

Change your broker IP in configuration.yaml to the external IP of you hassio machine.

or use localhost

2 Likes

Big thanks to you guys! Changed it to py pi:s IP adress and it worked.
For some weird reason I had the assumption that the broker IP should be different than the pis ip, but now that I think about it, that does’t make any sense.

can post the code which you changed

Hey!

mqtt:
broker: 192.168.1.90
username: xxx
password: yyy

Replace the 192.168.1.90 with your IP.

i cloudnt able to communicate wit esp8266 can anyone pls help how to config it.