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.
精彩评论