Arduino IDE - Maximum serial COM ports

What is the maximum number of serial ports (com) can Arduino IDE detect ?

I need to connect 6 Arduino UNO Wi-Fi at a time to make a small network and I use a 7 port USB hub for the same. The device manager shows 6 com ports detected but Arduino shows only 4 serial ports detected.

Is there a limitation on the serial ports interfaced with the Arduino IDE ?

I know I've had 5 in my Tools > Port menu, I'm sure more are possible but it definitely proves there isn't a limit of 4: |500x110


I found the solution. Inside the My computer -> Properties -> Device manager under ports I found that multiple Arduino's where assigned same COM values. Therefore, just go to properties of the COM and change them to COM values that are not used.