【发布时间】:2011-05-19 18:47:43
【问题描述】:
做一些计算机识别接口的网络项目。
我喜欢只用 Ping、DNS、TCP 来实现。
例如。我给 google.pl 作为主机名,我获得了 ip。
string host = "google.pl";
IPAddress[] address = Dns.GetHostAddresses(host);
好的,我得到了 IP。现在如何检查它用于通信的女巫接口?
【问题讨论】:
-
用 TCP 连接,失败?使用 UDP 连接,失败? ..等:)?
标签: c# tcp network-programming dns