Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PING from an ASP.NET / C# webpage? 3

Status
Not open for further replies.

VBRookie

Programmer
Joined
May 29, 2001
Messages
331
Location
US

Hello again,

I'm trying to create a screen on our intranet site that when loaded will ping a specified set of ip addresses and report their statistics back to the web ...

Any clue on how to do this in ASP.NET with C#?

Many Thanks,
- VB Rookie
 
You'll need to use the System.Net.Sockets namespace to Ping another machine from .NET. A search on Google for C# and Ping turns up a lot of articles detailing exactly this and even a few free components to drop in your app to do it for you...


As an aside, I heard of a new "flaming" acronym yesterday, FGI (Think RTFM and the above answer...) Now its not really my thing, I'd rather help (or at least try to) but it seems theres a definite trend at the moment to "ask before you try". As a developer Googles your best friend, its instant and pracitically boundless...;-)

Rob


Every gun that is made, every warship launched, every rocket fired, signifies in the final sense a theft from those who hunger and are not fed, those who are cold and are not clothed - Eisenhower 1953
 
Thanks Rob for the information ...

I googled for hours yesterday on this trying to find a simple way to do it without having to pay for a third party component. My company wants the functionality but its not in the budget to pay for anything.

I didn't find anything simple and was hoping that I could get a lead or two on anything that I may have missed here. Tek-tips is pretty much always my last resort after I've googled myself to death.

Thanks for the tips ... they are much appreciated.

- VB Rookie
 
star for the FGI, Rob.

**makes mental note**

;-)

-p

penny.gif
penny.gif

The answer to getting answered -- faq855-2992
 
Thanks ecreations ... I found this article and this is what I ended up using. A previous one that I ran across didn't work but this one hummed along without a hitch.

Many Thanks,
- VB Rookie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top