How to use different IPs with mqtt

I have two, each on its own pi