Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hi all,
can anyone help me an algorithm to implement the traceroute in vb.net
Posted
Updated 11-Aug-15 1:21am
v2

1 solution

trace route works on Ping an IP with a TTL (Time To Live)
With each hub/hop or what ever you name it the TTL adds 1 value.

So:
- Resolve the webaddress/ipaddress
- Use the PING class in .NET (HERE[^]) and use the TimeOut option.

Loop from 1 to maximum 254 (for the timeout value), but get out of the loop as soon as the IPADDRESS matches the desired. That's all.

Have fun coding. This is so easy you should be able to do it yourself.

Example from Code Project -> How to PING Server in C#[^]
 
Share this answer
 
v3

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