I am currently working on a firewall project using VB6

Can any body help me as to how i can view the applications that are using my internet connection and the IP address to which they are connected.