Often the fastest way of finding the TCP port numbers is the application's documentation. One way of finding out the TCP port numbers is using the netstat command available in all supported Windows platforms. The procedure starts with opening a plain text connection with the application to be tunneled and examining the port numbers with netstat command.
For example, examining FTP connection to 10.1.60.67 during a data transfer produces following output:
TCP 10.1.52.41:1354 10.1.60.67:21 ESTABLISHED TCP 10.1.52.41:1360 10.1.60.67:20 ESTABLISHED
There are a number of other windows tools such as tcpview from Microsoft that will show the same information graphically
answered Dec 14 '10 at 20:18
SSH KB ♦