Maybe here:
http://www.wilsonc.demon.co.uk/delphi_6.htm -> IP Port Analyzer
The program is with source code...
thank you so much, it seems just what i was looking for
I'd say that "netstat -o" is it.. 
this is also a neat solution, i already implemented it now, but will think if i should prefer it to the one above