tonic
tonic copied to clipboard
Do tonic clients accept in-bound traffic?
I'm running a tonic client in a docker container & I'm getting the error:
Could not spawn client: transport error: error trying to connect: tcp connect error: Cannot assign requested address (os error 99)
I'm a bit confused. I know docker containers allow outbound traffic. For example, I can make HTTP requests to websites without issue. And I assumed tonic clients were roughly the same, where they only initiate outbound traffic & aren't servers.
But it seems like I'm wrong. Do tonic clients also act like servers?
I don't know for sure but feels like it could be related to server to client (or bidirectional) streams. So the client is able to receive data from the server.