Checking if random port is available.