Configure ports using config file