def listen_port(self):

        # Find a random free port
        local_addr = ('localhost', int(random.uniform(1100, 20000)))
        self.log.debug('Finding free port starting at %s', local_addr)
        # return local_addr
        return sockutil.find_free_port(local_addr)
Returns the hostname and TCP/IP port number to listen on.
dataset/ETHPy150Open onitu/onitu/drivers/flickr/onitu_flickr/flickrapi/auth.py/OAuthTokenHTTPServer.listen_port