[TransCodeSetup] fix set port fail issue.