Skip to content

This C# program uses the Ping class to trace the route to a specified host, and Dns class to resolve IP addresses. It takes command line arguments and runs until stopped manually.

Notifications You must be signed in to change notification settings

KianRistori/TracerouteNetFramework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

TracerouteNetFramework

This program is written in C# and uses the .NET Ping class to perform a traceroute to a specified host. The program starts by declaring some static variables, including a boolean "d" and two integers "maxTTL" and "maxMS", which represent the maximum number of hop points and maximum timeout in milliseconds for each response, respectively. In the Main method, the user is prompted to enter a command, which is then processed by a method called "CommandReserch". The main method of the program is "GetTraceRoute", which uses the Ping class to send ICMP packets to a specified host and print the routing path to the host. The program also uses the Dns class to resolve IP addresses to hostnames, unless the "-d" parameter is specified at runtime. The program continues to repeat command processing until it is manually interrupted.

About

This C# program uses the Ping class to trace the route to a specified host, and Dns class to resolve IP addresses. It takes command line arguments and runs until stopped manually.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages