If I implement a Websocket Server, I can log the Client Info via "context.UserEndpoint...". On CLient Side, I also wanted to log the Port wich was used, but I can only do via reflection:
var tcpc = socket.GetType().GetField("_tcpClient", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(socket) as TcpClient;
var p = ((IPEndPoint)tcpc.Client.LocalEndPoint).Port;
Maybe this can be made accessible in some way?
If I implement a Websocket Server, I can log the Client Info via "context.UserEndpoint...". On CLient Side, I also wanted to log the Port wich was used, but I can only do via reflection:
Maybe this can be made accessible in some way?