check possible duplicates from GetRandomPort