how to make a simple ICMP PING program?

  • Thread starter Thread starter Jason
  • Start date Start date
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
 
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...
 
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.
 
Back
Top