View all network traffic with PID...

If you want to view all your network connections with a PID so you can see which process is making the connection then you can use the command shown below, bear in mind that this requires XP or greater...

netstat -ano

If you want to search for a certain port then use the command:

netstat -ano | find /i "LISTEN"