绑定连接的Socket中有个属性可取远程计算机IP
Socket newSocket = socket.Accept(); IPEndPoint clientipe = (IPEndPoint)newSocket.RemoteEndPoint;Console.WriteLine("[" + clientipe.Address.ToString() + "] Connected");