Does anybody know a way to find out what port a application is using? ... Lets say if i know the caption or name of the application running, can i figure out the port its using if any???

I really need some help with this! I cant figure it out!