For C++, the bound port is available in the `selected_port` parameter of 
the `AddListeningPort` API.

On Wednesday, September 1, 2021 at 10:39:11 AM UTC-7 Yuri Golobokov wrote:

> Hi,
>
> Which language are you using for gRPC server?
>
> On Friday, August 27, 2021 at 12:44:50 PM UTC-7 sumuk...@gmail.com wrote:
>
>> After creating a server and adding a listen port with "0.0.0.0:1111", is 
>> it possible to figure out which interface grpc picked to bind and query 
>> that ?
>>
>> This is similar to using port 0 and then querying the port number that 
>> was dynamically assigned, except for the IP address.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/bd690d25-4f5c-4221-ba70-d5ba1a4d6275n%40googlegroups.com.

Reply via email to