title: How does Visual Studio decide which port to run applications on?
body: <p>When you run an application from within visual studio, it seems to pick a random port on localhost.  For example, running an application right now, I get </p>
  
  <blockquote>
    <p><a href="http://localhost:3240/ApplicationStuffHere" rel="noreferrer">http://localhost:3240/ApplicationStuffHere</a></p>
  </blockquote>
  
  <p>I realize this port gets loaded into the solution file, via </p>
  
  <blockquote>
    <p>VWDPort = "3240"</p>
  </blockquote>
  
  <p>How does this get decided on?  it seems fairly random.</p>