System.Net query
-
How do I simulate a ping command ?? And My need is to know IP "156.72.1.30" is reachable or not , if yes, port 3962 opened or not. I do not know which service is running on that port. love2code
softty wrote: How do I simulate a ping command ?? And My need is to know IP "156.72.1.30" is reachable or not To Send Ping Message You need to use ICMP (Internet Control Message Protocol ) With raw Scocket .Net dosn't have class to do that so you need to do it Yourself but this solved problem you can look at Ping Utility in C#[^] http://www.eggheadcafe.com/articles/20020209.asp[^] http://www.codeproject.com/dotnet/CSharpPing.asp[^] softty wrote: if yes, port 3962 opened or not Try to open it you succeeded th port is Not Open If not the port was Opend MCAD