how to make a simple ICMP PING program?

J

Jason

I would like to make a simple PING program that has the following
paremeters:

txtAddress - a text-box that you enter an IP address into
txtinterval - a text box that allows you to enter in an interval as to
when to ping that address. So say I want the values to be between 30
and 420 seconds. So if I enter 30 in the box it will ping every 30
seconds.

also a button btnDoIt - when this is pressed it will send 3 or 4 PINGS
out to the address in txtAddress at an interval of every....however
many seconds are entered into txtInterval


Is this something that would be relatively easy to do? Can someone
show me how to do this? I have no idea where to start

thanks for any help
 
T

Tom Shelton

I would like to make a simple PING program that has the following
paremeters:

txtAddress - a text-box that you enter an IP address into
txtinterval - a text box that allows you to enter in an interval as to
when to ping that address. So say I want the values to be between 30
and 420 seconds. So if I enter 30 in the box it will ping every 30
seconds.

also a button btnDoIt - when this is pressed it will send 3 or 4 PINGS
out to the address in txtAddress at an interval of every....however
many seconds are entered into txtInterval

Is this something that would be relatively easy to do? Can someone
show me how to do this? I have no idea where to start

thanks for any help

Check out the System.Net.NetworkInformation.Ping class...
 
G

Guest

In addition to Tom's answer, do not assume that every firewall will cooperate
with this function. It is a protocol that is almost always disabled.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top