Add ipaddress method to host type