Issues with External Mqtt Broker

Hi,
Currently I’m running with 2 units of Rpi 3, 1 for openhab and the other for snip. I have tested my assistant on localhost:1883 and got the expected action played out.

Subsequently, I tried to use external mqtt broker which is the other rpi3 running the openhab. I have amended the mqtt key in snips.toml as well as the mqtt hostname in my action code. Rebooted the system. But this time the action was not played out. I typed Sam watch and found that it is still watching the mqtt on local host. Is there anything that I had left out?