This drives me crazy been searching and testing the whole day. I need a simple traceroute in c#. Ive been through all the major websites but i dont get how to list all the hops!
string hostName = "google.se";
Ping ping = new Ping();
var reply = ping.Send(hostName);
if (reply.Status == IPStatus.Success)
{
Response.Write ("Address: " + reply.Address.ToString() + "<br>");
Response.Write ("RoundTrip time: " + reply.RoundtripTime + "<br>");
Response.Write ("Time to live: " + reply.Options.Ttl + "<br>");
Response.Write ("Don't fragment: " + reply.Options.DontFragment + "<br>");
Response.Write ("Buffer size: " + reply.Buffer.Length + "<br>");
}
else
{
Response.Write (reply.Status);
}
.
EDIT: the q you posted as duplicate is the one ive been sitting with for the last five hours, and cant figure out