tags:

views:

73

answers:

3

i would like to code an ip tracer program in c , but i am not able to get a head start in it . Any e book , links or sample code would be of much needed help !!

A: 

Here's an excellent writeup for Windows sockets with code:

http://www.codeproject.com/KB/IP/Ping_and_Traceroute.aspx

It covers both ping and traceroute (which is what you're interested in).

Epsilon Prime
A: 

you will send icmp (ping) to the address, each time you extend the ttl (time to live) by 1 - and that's how you get the trace.

here some library that helps you use ping in c#

http://www.mentalis.org/soft/class.qpx?id=4

Dani
if you want to get the names of the ip's on the way.. you should use other libraries to make rdns calls...
Dani
+1  A: 

Lots of examples on this site for how to implement this sort of thing in c

Chris Ballance