import socket


def validate_unused_port(port: int, host: str = '0.0.0.0') -> bool:
    """
    Validate that a specific network port is unused.

    Args:
        port (int): the integer port number to check
        host (str): hostip
    """
    with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
        # Try to bind to a port, if it raises a socket error, 
        # then return False; otherwise, return True
        try:
            s.bind((host, port))
            return True
        except socket.error:
            return False