Link to home
Start Free TrialLog in
Avatar of jedistar
jedistarFlag for Singapore

asked on

Ping a server to check if its alive

I wish to write a checkserverstatus.aspx that will run "ping IP" and if it has a reply, it means
its alive. I wish to also check if telnet/ftp service is running..

How can i code .aspx to send dDos commands such as ping/ftp/telnet to ip
and receive a response and write to the lbl.txt in VB.NET

Thanks.
Avatar of jedistar
jedistar
Flag of Singapore image

ASKER

or even how do i make this into a webservice
Avatar of fizch
fizch

Here's an idea:

http://www.eggheadcafe.com/articles/20020209.asp

Like suggested in the article, you will have to create a socket to test your ping. You just create the socket, send it the information you want, and wait for your response.
.net 2.0 makes ping easy with the new System.Net.NetworkInformation namespace, check out this article

http://msdn.microsoft.com/coding4fun/inthebox/netutils/default.aspx
i need .net 1.0
I used this article to get the same functionality in my application.

http://support.microsoft.com/default.aspx?scid=kb;en-us;828993

I was using 1.1 but this should work on 1.0
tried doesnt seem to work.
do u have a simplified one for 1.1?
just a small script
all i need is to be able to ping a server with ip as input
as output to show if the server is alive
ASKER CERTIFIED SOLUTION
Avatar of tpwells
tpwells

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
for asp.net works?