public static String getIp(SocketAddress socketAddress) {
        if (socketAddress instanceof InetSocketAddress) {
            InetSocketAddress inetSocketAddress = (InetSocketAddress) socketAddress;
            return SocketAddressUtils.getAddressFirst(inetSocketAddress, ThriftConstants.UNKNOWN_ADDRESS);
        }
        return ThriftConstants.UNKNOWN_ADDRESS;
    }
Returns the ip address retrieved from the given {@link SocketAddress}.

@param socketAddress the <tt>SocketAddress</tt> instance to retrieve the ip address from
@return the ip address 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