For the ping, you'd need to lookup the specs for that. I'm sorry I can't help you there. Try looking for RFC and 'ICMP echo' in google. I know people have created a published programs that can ping in .net.
For detecting a service though, the easiest way would probably be to create a TcpClient and connect to the IP and the port of the service. If an exception is thrown, the service probably doesn't exist on the specified IP.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.