Click here to Skip to main content
15,848,157 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi guys.

I´m trying to solve a problem on my C# project.

I want to ping a remote computer or server using - Ping - class but I don´t know how to use it.

Project type: ping remote computer or server (console app).

1 solution

If you included the definition of the class here, we might be able to help, else, all I can say is

Input : The class will probably take some form of IP address (perhaps as a string) or 'target server Name' which it will lookup/resolve via DNS

Output : Hard to say - maybe a boolean to say if the target address is reachable using ICMP Protocol (ie ping), or maybe a string or array of strings meant to be written to the console

But this is guesswork without more info from you

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900