def request_ip(self, msg, default_value):
        while True:
            try:
                s = self.request_string(msg, default_value)
                valid_ip(s)
                return s
            except Exception:
                self.out.error("Not a valid IP \n")
Request user to input a ip
dataset/ETHPy150Open biicode/client/shell/userio.py/UserIO.request_ip