Convert port number