Reputation: 1
Anyways, in C# I'm trying to get the IP address of the remote connection of a TcpClient, similar to how you can with a socket (and its my understanding that a TcpClient is just a wrapper around a socket). How might I do that?
Upvotes: 4
Views: 6065
Reputation: 101166
myClient.Client.RemoteEndPoint
http://msdn.microsoft.com/en-us/library/system.net.sockets.tcpclient.client.aspx
Upvotes: 7