Click here to Skip to main content
15,887,337 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I want to Ping on Multiple IP addresses which are stored in dataset or datareader, then i've to show the result in a grid which represents that how many Machines(IP/Host) are Online/Offline.

Please help me I need a code in C#

Regards
Shagun
Posted
Updated 18-Sep-13 2:17am
v2
Comments
[no name] 18-Sep-13 8:15am    
Help you with what?
Shagun Bansal 18-Sep-13 8:16am    
need a code
[no name] 18-Sep-13 8:28am    
And...? Write some code then you will have some code. We do not write code to order here.
ZurdoDev 18-Sep-13 8:17am    
Where are you stuck?
Shagun Bansal 18-Sep-13 8:18am    
for Multiple Ping and storing/displaying this success/Failiour in table/grid

You could take a look on this: How to PING Server in C#[^] or even better this: Simple Ping Utility with GUI[^]

For pinging many servers at the "same" time just... multithread.
 
Share this answer
 
Comments
Shagun Bansal 18-Sep-13 8:33am    
can u please convert it for multiple IP
as mentioned on my Question
V.Lorz 18-Sep-13 8:41am    
I think you better take a look into the articles first so you can widen your programming skills. The code is more than simple and the explanations in the second article are clear enough. For multithreading try: https://www.google.es/#q=multithreading+c%23+codeproject, there are some 'first-aid' kits over there that will guide you step-by-step in all you could eventually need.
 
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