Node-Red connection issues

Show us the settings for the mqtt config node. The easiest way may be to select the node, Export it to the clipboard and paste it here. See this post for how to do that.

[Edit] I see you have posted the flow to an external site. For future reference it is easier to post it here. As zenofmud has pointed out, you have specified 192.168.1.1 as the MQTT server. Are you running and MQTT server there?