开发者

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

开发者 https://www.devze.com 2022-12-19 10:20 出处:网络
What\'s the simple开发者_开发百科st way to check if anything is listening on net.tcp://localhost:8801/

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

精彩评论

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

关注公众号