本文介绍了如何知道连接的客户端IP.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
谁能告诉我如何将连接的客户端的IP地址检索到TCP服务器.
例如,我启动了一个TCP服务器.然后,客户端程序向服务器发送了建立连接的请求.服务器接受客户端程序并建立连接.现在,我需要知道所连接客户端的IP地址.
关于这个问题,有人可以帮我吗?
谢谢.
Hi,
Can anybody tell me, how to retrieve IP address of the Connected client to the TCP Server.
Like for example, I started a TCP server. Then a client program sent a request to server for establishing connection. And Client program is accepted by server and connection is established. Now I need to know the IP address of the connected client.
Can anybody help me regarding this issue.
[edit: email address removed.]
Thanks you.
推荐答案
YourTCPClient.Client.RemoteEndPoint
应该就是您要寻找的东西.
should be the thing, you''re looking for.
这篇关于如何知道连接的客户端IP.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!