In a scenario where the gRPC server doesn't know the URLs of clients in general, but clients know the URL of the (single) server, it would be useful to be able to initiate connections to client endpoints from the server, once a client connects to us.
It might be necessary to actually extract the URL from a connecting client and manually initiate the connection as usual from server-to-client (where server is client in the secondary connection). But there may be a way to connect which abstracts the URL, given that we already have a TCP connection from client to server and some object we could get a handle on.
I don't know which part of the tonic
API this functionality would be contained in - if it exists - but it seems it should be possible in principle.
Edit: fwiw client and server will always be in the same network. So NAT considerations don't apply and we can assume any URL would be usable.