All you have to do is type “netstat a” on Command Prompt and hit the Enter button. This will populate a list of your active TCP connections. The port numbers will be shown after the IP address and the two are separated by a colon.
What is it & How do I Find My Port Number?