command prompt in dos....type

netstat -an

this will show you all the active ports on your machine....connections that are established, or listening....

then go to:

http://www.google.com

and you will have a wealth of answers to all of your questions, right at your fingertips