Update the ports used in the config