import socket


def valid_ipv4_address(addr):
    """Return True if the address is a valid IPv4 address, False otherwise.

    """
    try:
        return bool(socket.inet_pton(socket.AF_INET, addr))
    except socket.error:
        return False