Search code examples
c#tcptraceroute

TCP Traceroute in C#


How can you perform a TCP traceroute in C#? Is it even possible?


Solution

  • You will need raw ethernet frames to generate TCP packets by hand as Windows won't let you send TCP packets over raw sockets.

    See how nmap gets raw ethernet frames. Repeat it.