Test for valid ip address in host test instead of equals to other ip.