Edit port setting