I was determined to have a more elegant solution in case the container IPs change in future; I stopped the containers, deleted the bridging network, recreated the network, started the containers again and it stopped working again.