What is the maximum number of COM ports I can have inside Windows?

It is 255. Windows will not able be to assign any com number greater than 255, to the new com device.