Track the mongo port correctly based on the mirror port.