title: Getting URL without port when running from VS, or without application name when running in IIS
body: <p>My application's URL looks like that when I run from debugger </p>
  
  <pre><code>http://localhost:52230/
  </code></pre>
  
  <p>And in IIS:</p>
  
  <pre><code>http://localhost/MyApp
  </code></pre>
  
  <p>Or, when I'm browsing from another PC, </p>
  
  <pre><code>http://192.168.168.11/MyApp
  </code></pre>
  
  <p>Where MyApp = my application's name.</p>
  
  <p>Is there a way, using razor syntax, to get <code>http://localhost</code> or <code>http://192.168.168.11</code> only?</p>
  
  <p>I tried <code>@Url.Content("~/)</code> but it returns me <code>http://localhost:52230/</code></p>