473,473 Members | 2,185 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how to make a simple ICMP PING program?

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

Oct 11 '07 #1
2 5952
On Oct 11, 5:40 pm, Jason <paul...@excite.comwrote:
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...

--
Tom Shelton

Oct 12 '07 #2
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.

"Jason" wrote:
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

Oct 13 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Bob Rivers | last post by:
Hi, I was doing a research looking for Java solutions that are able to do "ping". I found old messages (and not so old ones), telling that Java was not able to do that, because the API...
3
by: bernd wegener | last post by:
Hello netties, I coded the following in perl: open(LOGFILE,">&STDOUT") ; if ( $ARGV ) { close(LOGFILE) ; open(LOGFILE,">> $ARGV") or die "Cannot open file $ARGV\n" ;
1
by: Fotis | last post by:
hi there i have two questions 1)Is there a library class for ICMP packet creation ,management etc to use with C# 2)I have created a socket of icmp type and after sending a packet i call the...
1
by: Arsen V. | last post by:
How to get Icmp messages to work with multiple threads. Currently I tried during ReceiveFrom and use Peek to get the fromEndPoint. If this is equals to the EndPoint that I used in SendTo, I do an...
0
by: Ed | last post by:
I've attached some VB.NET code I've hacked together (some taken from MS examples & newsgroup postings) that will perform a ping or IcmpSendEcho using the icmp.dll (see this for more info:...
0
by: huzhangyou2002 | last post by:
If someone wants to ping me,I just want to set no icmp packet back,can anyone tells me how to?? very thanx~~~
12
by: Matt F | last post by:
I'm creating simple ping script that prompts a user for various parameters. However, I would like each line of the ping displayed as it is received. Currently, the result isn't displayed until...
2
by: linuxsrbabu | last post by:
Hi all, can any one please answer this question 1) If i ping to google.com there might be several routers in between let us say R1, R2,R3,R4 what happens when packet visits R1,R2,R3,R4 do we get...
0
bIGMOS
by: bIGMOS | last post by:
I made a GUI ping program, now Im lost on how to do the server end of it Need a simple VB 2005 express program that will listen to ping request and display something like YOU ARE BE PINGED like in...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.