Learn how to check what ports are used by an application.
For Linux
netstat -anpe | grep LISTEN | grep sshd
For Microsoft Windows.
1) netstat
netstat -ano | find "LISTENING" | find "135"
2) tasklist
tasklist /fi "PID eq 42996"
#microsoft #windows #linux #ubuntu #port