public static String getIpPort(SocketAddress socketAddress) {
        if (socketAddress instanceof InetSocketAddress) {
            InetSocketAddress inetSocketAddress = (InetSocketAddress) socketAddress;
            String address = SocketAddressUtils.getAddressFirst(inetSocketAddress);
            if (address == null) {
                return ThriftConstants.UNKNOWN_ADDRESS;
            }
            return HostAndPort.toHostAndPortString(address, inetSocketAddress.getPort());
        }
        return ThriftConstants.UNKNOWN_ADDRESS;
    }
Returns the ip and port information retrieved from the given {@link SocketAddress}.

@param socketAddress the <tt>SocketAddress</tt> instance to retrieve the ip/port information from
@return the ip/port retrieved from the given <tt>socketAddress</tt>,
     or {@literal ThriftConstants.UNKNOWN_ADDRESS} if it cannot be retrieved
agent-module/plugins/thrift/src/main/java/com/navercorp/pinpoint/plugin/thrift/ThriftUtils.java