If two containers are on the same network, they can talk to each other. If they aren’t, they can’t.