redefined best match ip.