String getHostnameOrIP() {
        if (peerHostname != null) {
            return peerHostname;
        }

        InetAddress peerAddress = getInetAddress();
        if (peerAddress != null) {
            return Platform.getOriginalHostNameFromInetAddress(peerAddress);
        }

        return null;
    }
For the purposes of an SSLSession, we want a way to represent the supplied hostname
or the IP address in a textual representation. We do not want to perform reverse DNS
lookups on this address.
common/src/main/java/org/conscrypt/AbstractConscryptSocket.java