change ref check, use ipv4 public address

Change-Id: I374151be90607bde9b43520cf911af943713a85b