@Override
    public int hashCode() {
      final String thisHost = gp.getHost();
      final int thisPort = gp.getPort();
      final String thisMemberId = getMemberId().getUniqueId();
      final int thisMemberIdHashCode = (thisMemberId != null) ? thisMemberId.hashCode() : 0;
      return thisHost != null ? (thisHost.hashCode() ^ thisPort) + thisMemberIdHashCode
          : thisPort + thisMemberIdHashCode;
    }
Basic idea is to base id off of host and port of GridProfile
geode-core/src/main/java/org/apache/geode/internal/cache/GridAdvisor.java