.NET 3.5 Console Application: Ping a Server

Sep 29 2009 8:40 PM
Hello all!
Iam a very newbie new person here :)
I want to ping a server, (checking availability) from the console application. If it answers then the program continues, if not, displays error message. Can anybody tell me how to do this?

SO again:

1.)     The program asks for server address. (e.g.: eu.logon.com)

2.)     Then its pings it.           

3.)     And if the server answers the the program continues, if its doesnt, then error message.


Source code would be the best, thanks!




Answers (2)