• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 740
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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