def METHOD_NAME(self):
    address = None
    message = "what is the local address? "
    if self.localIP:
        message += "[Enter for '%s' (detected)] " % self.localIP
    valid = None
    while not valid:
        valid = True
        address = readInput(message, default=self.localIP or "")
        try:
            socket.inet_aton(address)
        except socket.error:
            valid = False
        finally:
            valid = valid and re.search(r"\d+\.\d+\.\d+\.\d+", address) is not None
        if conf.batch and not address:
            raise SqlmapDataException("local host address is missing")
        elif address and not valid:
            warnMsg = "invalid local host address"
            logger.warning(warnMsg)
    return address