def METHOD_NAME(self):
    if self._fp:
        return self._fp
    ip, port = self.get_web_port_and_ip()
    wc = webclient.SecureHTTPConnection(ip, verifycallback=self._savecert, port=port)
    try:
        wc.connect()
    except IOError as ie:
        if ie.errno == errno.ECONNREFUSED:
            self._certfailreason = 1
            return None
        elif ie.errno == errno.EHOSTUNREACH:
            self._certfailreason = 2
            return None
        self._certfailreason = 2
        return None
    except Exception:
        self._certfailreason = 2
        return None
    return self._fp