Adjust port settings