public void release() {
      try {
        if (ss != null) {
          ss.close();
        }
      } catch (IOException ignore) {
      }
    }
Once you call this the socket will be freed and can then be reallocated by someone else.
geode-membership/src/main/java/org/apache/geode/internal/membership/utils/AvailablePort.java