the host's network interfaces are configured for all of its IP
you are running the "test" code on the host itself,
then you can resolve the hostnames to IP addresses, and compare them
against all of the addresses bound to the
objects returned by
If either of those assumptions is incorrect, then I don't think there is
an easy way to do this.