开发者

The simplest way to check if host is online (listening on a port) in C#

What's the simple开发者_开发百科st way to check if anything is listening on net.tcp://localhost:8801/ Preferably using WCF


I don't think WCF is the best way to do that. Simply open a Socket (or TcpClient) and try connecting to that endpoint.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜