This method does work, however the method of detection may not be 100% foolproof. It depends entirely on whether or not winsock allows the socket to listen on selected port.
It's best to use a port range that doesn't overlap with another applications.
|