def ip_address_to_string(ip_list, inverted=False):
    """Returns a IP address string.
    """
    fn = lambda x:x
    if inverted:
        fn = reversed
    return '.'.join(['%d' % b for b in fn(ip_list)])