How to get IP address in a connected grpc client?

33 views
Skip to first unread message

xx1207...@gmail.com

unread,
Jul 18, 2020, 4:47:44 AM7/18/20
to grpc.io
I've tried to build a grpc channel like this:

grpc::CreateCustomChannel(serverIP + ":" + serverPort, grpc::SslCredentials(sslOptions), args);

I guess that grpc internally bind a IP for grpc client.

Now, how can I prossibly get the binded IP of client?

Lidi Zheng

unread,
Jul 22, 2020, 1:26:13 PM7/22/20
to grpc.io
Currently, this functionality is not supported. But there is an ongoing effort to do so in gRPC Core: https://github.com/grpc/grpc/pull/23489. Feel free to comment on the thread for your need.
Reply all
Reply to author
Forward
0 new messages