make sure to return ipaddr.