use ip address has endpoint_id

Change-Id: I3e362dd9ee67c92f17f88b6b1f932699ceb0d523