When you already have the connection in your program.
It is not hard go get the remote endpoint IP address.
Check out TcpClient.Client.RemoteEndPoint under
TcpClient [
^] that has been created when you called AcceptTcpClient.
string endPoint = tcpClient.Client.RemoteEndPoint.ToString();
Console.WriteLine("Remote endpoint is: " + endPoint);