Fix for “Unable to bind to the underlying transport for [::]:<PortNumber>. The IP Listen-Only list may contain a reference to an interface which may not exist on this machine.

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 Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters\ListenOnlyList
image

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

image

You may also like

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.