Variant 1 : When using TcpListener class for our server there are 2 ways to get the underlying client TcpClient client = listener.AcceptTcpClient(); IPEndPoint remoteEP = ( IPEndPoint ) client.Client.RemoteEndPoint; or Socket client = listener.AcceptSocket();
Read More...