I understand that you are trying to make the cloud cluster connect to a parallel license server on the public network by opening specific ports on the cloud cluster.
To establish connections between servers and the parallel license server on the public network, it is necessary to open specific ports on the cloud cluster.
The ports that need to be opened will depend on the configuration of your license server and network setup.
By default, the MATLAB license manager uses port 27000, but it can also utilize a range of ports starting from 27000.
For more detailed information on changing the port and checking the port currently being used by your license manager, please refer to the following MathWorks document:
I hope these suggestions help you resolve the issue you are facing.