I had the problem like many others that Hyper-V and/or Docker randomly reserves port ranges on startup which eventually prevented me from starting my IIS WebApi.
I followed the Answer on this Post: https://stackoverflow.com/a/59610178/7993447 And reserved my API Port myself in the excludedportrange but my API is still unable to connect on the reserved ports.
Does anybody know how I can reserve a range of ports in the excludedportrange so that I can use them with IIS without Hyper-V stealing them from me?