Figuring out which port is the correct one.