public static String getHostnameOrIP(SSLSocket socket) {
        return toConscrypt(socket).getHostnameOrIP();
    }
This method attempts to create a textual representation of the peer host or IP. Does
not perform a reverse DNS lookup. This is typically used during session creation.
common/src/main/java/org/conscrypt/Conscrypt.java