I have been developing on Visual studio and IISExpress for sometime when I started getting the following error:
Unable to bind to the underlying transport for [::]:50160. The IP Listen-Only list may contain a reference to an interface which may not exist on this machine.
Deleting the .vs folder in the application or the C:\Users\<UserName>\Documents\IISExpress\config folder, restarting the IISExpress or machine, did not help nor did adding the “::” value to the registry key
What finally worked for me when I ran the following command, I see that the ports from 49697 to 50503 were reserved by Docker. So I changed the application port to 50504 and the application was able to run correctly on IISExpress.
netsh interface ipv4 show excludedportrange protocol=tcp