Hi all,
I'm new to network programming in general and gRPC, so sorry if this is a daft question...
I'm using the C# implementation of gRPC and noticed something: I create a server project (lets say with one service method) and a client project. When I create more than one Channel to the server in the client project and call the rpc method that's on the server, it seems that the ServerCallContext.Peer property shows that the port use by both channels are the same.
To clarify, I have the following setup:
- one server with one service method, always listening.
- a client project that creates 2 channels to the server.
When I print the ServerCallContext.Peer :
peer is ipv6:[::1]:51048 // print from the first channels call
peer is ipv6:[::1]:51048 // print from the second channels call
The port is the same. I tried executing the project twice (adding a for loop + a delay to have both working parallel) to see what happens, it seems that the port changes. I assume it's because they are from two different processes.
Anyway I'm just curious about why this is happening and what documentation I should read to understand this (if any exists ofc) ?
Sam