Click here to Skip to main content
15,893,923 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello, pls how can i write a simple client/server application using ICMP protocol in VB.NET. The client sends "Hello Server" to the server and the server replies with "Hello Client". I know how this can be done using tcpclient and tcplistener, but i need to do this using ICMP protocol. Pls help.

Thanks in advance
Posted
Comments
[no name] 29-Sep-13 9:02am    
http://www.google.com/search?q=ICMP+vb.net
Joeadeoye 29-Sep-13 9:21am    
i have google search but all i saw was ping examples using ICMP. What i need to do is to send data from client to server and also from server to client.

You apparently have no idea what (I)nternet (C)ontrol (M)essage (P)rotocol is or what it's used for.

ICMP is used by network devices and diagnostic applications to send error messages between devices, such as "Destination network unreachable" and the like.

It's NOT designed to be used in end-user applications.

ICMP is also filtered to some extent in some corporate networks (that I've been at anyway) for security reasons so your application won't work in those environments anyway.
 
Share this answer
 
Comments
Joeadeoye 30-Sep-13 4:13am    
thank you for your response sir! I kw what icmp is, but I believe that there is nothing impossible when it comes to technology. I believe there will be a way to do this using icmp. I read some articles in google describing this using raw socket in vb.net but i don't really understand them.

This is an assignment given to me in college which i have to submit on the 15th of october.

Pls help me
Dave Kreskowiak 30-Sep-13 7:25am    
If you can't understand the articles, what makes you think you'll understand an even smaller description from a couple of form posts ?

The client is the easy part as there are tons of examples of writing a easy PING application, which just sends a message to am ICMP listener on a target machine.

The hard part is the server as nobody does this using ICMP in any practical application. This you'll have to adapt aTCP/IP server example for your own use.

He he. I have to hand it to your prof. He found a way to keep people from cheating by turning in a copy'n'paste job.
Here is a simple step, just refer
1.Create Database.
2.Create Web Service to write data to database.
3.Create Web Site.
4.Create web page to display data.
5.Create web page to post data to web service.
Optionally, create desktop application to post data to web service.
Creating a desktop application is optional because you can do what you need through a web site.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900