If I understood that correctly, you want to use gRPC (server + client) only on the same machine? You can always use ports in the range 1024 to 49151 since they are not reserved by the system and also not dynamically assigned. Do you know what machines this will run on? I usually just have the port configurable but fixed. Other than that, you surely can use a file that is written when the port was dynamically assigned after the server was started. But this will lead to problems when the server restarts and the client still thinks the old port is valid. As long as you do not use any functionallity like GRPCLB (load balancer), channels default to trying to reestablish the connection.
-- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/b805f704-14c9-47bf-9b6e-b12d6fd62fde%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
