 <p><a href="http://en.wikipedia.org/wiki/Netstat" rel="nofollow noreferrer">netstat</a> information can be retrieved by calling the <a href="http://msdn.microsoft.com/en-us/library/aa366026%28VS.85%29.aspx" rel="nofollow noreferrer">GetTcpTable</a> and <a href="http://msdn.microsoft.com/en-us/library/aa366033%28VS.85%29.aspx" rel="nofollow noreferrer">GetUdpTable</a> functions in the IP Helper API, or IPHLPAPI.DLL. For more information on calling the IPHLPAPI.DLL from Delphi, check out this <a href="http://delphi.about.com/od/fullcodeprojects/l/aa112903a.htm" rel="nofollow noreferrer">Network traffic monitor</a>. There are some <a href="http://www.koders.com/delphi/fidE47BDA7E986603E83E5266F72CC1ADDDAADF3EC9.aspx?s=socket" rel="nofollow noreferrer">wrappers</a> for it too, and it is part of <a href="http://sourceforge.net/projects/jedi-apilib/files/JEDI%20Windows%20API/" rel="nofollow noreferrer">JEDI API Library</a>.</p> <p>I wrote a Delphi version of NetStat long ago, but have since lost the source code. Those resources should get you started though.</p>