title: Kill a Delphi app based on which socket it is using
body: <p>Lets assume you have a app that opens a socket port for communication purposes. How can I get the path of this app only by knowing its port?</p>
  <p>I want to do what <code>netstat -b</code> does. It lists all socket ports opened and the app that opened the socket.</p>
  <p>I am using delphi 2010.
  By knowing which app opened which port I am able to kill the app.</p>
  <p>Note that I need a delphi code, not an Dos command or an explanation of how to use netstat.</p>