'Warn if remote controller is not accessible'

def checkListening(self):

    if (self.port is not None):
        self.isListening(self.ip, self.port)
    else:
        for port in (6653, 6633):
            if self.isListening(self.ip, port):
                self.port = port
                info(('Connecting    to    remote    controller    at    %s:%d\n' % (self.ip, self.port)))
                break
    if (self.port is None):
        self.port = 6653
        warn(('Setting    remote    controller    to    %s:%d\n' % (self.ip, self.port)))
