C#获取socket连接客户端ip地址
C#获取socket连接客户端ip地址
Socket sc = Listener.Accept(); if (sc != null) { IPEndPoint cip = (IPEndPoint)sc.RemoteEndPoint; string ipaddr = cip.Address.ToString();//这个变量值就是客户端ip地址 }
加支付宝好友偷能量挖...
原创文章,转载请注明出处:C#获取socket连接客户端ip地址
C#获取socket连接客户端ip地址
Socket sc = Listener.Accept(); if (sc != null) { IPEndPoint cip = (IPEndPoint)sc.RemoteEndPoint; string ipaddr = cip.Address.ToString();//这个变量值就是客户端ip地址 }
加支付宝好友偷能量挖...