parameters: ()
docstring: Get all ips in list
docstring_summary: Get all ips in list
docstring_tokens: Get all ips in list
function: def get_local_ips():
          """
          Get all ips in list
          """
          import socket
          hostname = socket.gethostname()
          addrs = socket.getaddrinfo(hostname, None)
          ips = re.findall(r"\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}", str(addrs))
          ips = [ip.strip() for ip in set(ips) if ip]
          if ips:
              return ips
          else:
              raise Exception(Errors.EXECUTE_RESULT['gauss_0415'] % 'get local ips.')
function_tokens: def get_local_ips ( ) : import socket hostname = socket . gethostname ( ) addrs = socket . getaddrinfo ( hostname , None ) ips = re . findall ( r"\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}" , str ( addrs ) ) ips = [ ip . strip ( ) for ip in set ( ips ) if ip ] if ips : return ips else : raise Exception ( Errors . EXECUTE_RESULT [ 'gauss_0415' ] % 'get local ips.' )