Using the hasIpAddress method