• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 761
  • Last Modified:

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.
0
jedistar
Asked:
jedistar
1 Solution
 
jedistarAuthor Commented:
or even how do i make this into a webservice
0
 
fizchCommented:
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.
0
 
rstraderCommented:
.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
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
jedistarAuthor Commented:
i need .net 1.0
0
 
tpwellsCommented:
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
0
 
jedistarAuthor Commented:
tried doesnt seem to work.
0
 
jedistarAuthor Commented:
do u have a simplified one for 1.1?
just a small script
0
 
jedistarAuthor Commented:
all i need is to be able to ping a server with ip as input
as output to show if the server is alive
0
 
tpwellsCommented:
Here are links to two other projects that have another solution for VB.NET

http://www.developerfusion.co.uk/show/2857/
http://www.codeproject.com/vb/net/PINGCONTROL.asp
0
 
jedistarAuthor Commented:
for asp.net works?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now