For the exclusion range you can use the following command
netsh interface ipv4 show excludedportrange protocol=tcp
This can look like the following, this can differ from your system
Protocol tcp Port Exclusion Ranges
Start Port End Port
---------- --------
53180 53189 *
* - Administered port exclusions.
To remove the listed port ranges from the exclusion range you can use the following command.
This will make sure that starting of 51980 there are 10 ports allowed to be used by other applications.
In some cases you will need to stop winnat before having access to the exclusion range
After updating the exclusion range you need to restart winnat
If the steps above did not solve your issue you can also update the dynamic port range with the following command. This will move the port range to start from 54000 and have 10511 available ports to be used.