Anders Lindén
Anders Lindén

Reputation: 7323

IIS Express reports all ports already in use

When I try to run IIS Express by debugging an asp.net application in visual studio, I get an error message that the port is being used by another application, regardless of which port I select in the project properties under "Web". Why?

enter image description here

Upvotes: 1

Views: 1668

Answers (1)

Fount the same issue, changing any port was getting the same error but...

after running in a elevated CMD:

netsh http add iplisten ipaddress=::

and then

netsh interface ipv4 show excludedportrange protocol=tcp

Saw some ports being managed in the range I was "randomly selecting"

enter image description here

After changing to a range that was not in the managed ports, I was able to debug again.

Upvotes: 1

Related Questions