TCP Traceroute in C#

webly picture webly · Aug 21, 2009 · Viewed 7k times · Source

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

Answer

Joshua picture Joshua · Aug 21, 2009

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.