Info about how to find out what port an application is using.
Can download TCPView off http://technet.microsoft.com/en-us/sysinternals/bb897437.aspx聽
There are more information about the program on the page.

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Another method is to use the command "netstat"聽
"netstat -nb" or "-nab" should give sufficient information.
Typing in Command Prompt,聽"netstat help" will tell you more functions.聽
Displays protocol statistics and current TCP/IP network connections.
NETSTAT [-a] [-b] [-e] [-f] [-n] [-o] [-p proto] [-r] [-s] [-t] [interval]
聽 -a聽聽聽聽聽聽聽聽聽聽聽 Displays all connections and listening ports.
聽 -b聽聽聽聽聽聽聽聽聽聽聽 Displays the executable involved in creating each connection or listening port. In some cases well-known executables host multiple independent聽components, and in these cases the sequence of components involved in creating the connection or listening port is displayed. In this case the executable name is in [ ] at the bottom, on top is the component it called, and so forth until TCP/IP was reached. Note that this option can be time-consuming and will fail unless you have sufficient permissions.
聽 -e聽聽聽聽聽聽聽聽聽聽聽 Displays Ethernet statistics. This may be combined with the -s option.
聽 -f聽聽聽聽聽聽聽聽聽聽聽聽 Displays Fully Qualified Domain Names (FQDN) for foreign addresses.
聽 -n聽聽聽聽聽聽聽聽聽聽聽 Displays addresses and port numbers in numerical form.
聽 -o聽聽聽聽聽聽聽聽聽聽聽 Displays the owning process ID associated with each connection.
聽 -p proto聽聽Shows connections for the protocol specified by proto; proto may be any of: TCP, UDP, TCPv6, or UDPv6.聽 If used with the -s option to display per-protocol statistics, proto may be any of: IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, or UDPv6.
聽 -r聽聽聽聽聽聽聽聽聽聽聽 Displays the routing table.
聽 -s聽聽聽聽聽聽聽聽聽聽聽 Displays per-protocol statistics.聽 By default, statistics are shown for IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, and UDPv6; the -p option may be used to specify a subset of the default.
聽 -t聽聽聽聽聽聽聽聽聽聽聽 Displays the current connection offload state. interval. Redisplays selected statistics, pausing interval seconds between each display.聽 Press CTRL+C to stop redisplaying statistics.聽 If omitted, netstat will print the current configuration information once.