Netstat

If you have heaps of things running locally in docker containers and other development realted things you may run into port clashes, you can use netstat which should be installed with Windows to identify used ports.

1
netstat -a -n

What do those switches mean?

1
2
-a	Displays all active TCP connections and the TCP and UDP ports on which the computer is listening.
-n Displays active TCP connections, however, addresses and port numbers are expressed numerically and no attempt is made to determine names.

References