change type of localPort