Hi,
I have a server with multiple listening ports:
for (auto &address : addresses) {
builder.AddListeningPort(address, credentials);
}
I would like to identify on which listening port of server a client is connected.
We can get a connected client address by using: ServerContext::peer()
Similarly, I tried to get server address by using FromServerContext(*m_serverContext)->peer() after successful authentication, but the string was empty.
Is there any way to get server address ?