I'm looking to start a server that listens to a port. I can easily specify port explicitly and it's working. But I'm looking find a port in an automatic way. What port numbers should I search for? (I've used 12345, 12346 and 12347) How can I see if a port is actually being used by another software?