Find the URL of an application
<p>I am Working on an asp.net c# application.</p>

<p>I wish to find the url of the application. For example, my application is NRCME I want to return <a href="http://localhost:4833/NRCME/" rel="nofollow">http://localhost:4833/NRCME/</a> when running locally. From the server I want to return </p>

<p><a href="http://servername/NRCME/" rel="nofollow">http://servername/NRCME/</a></p>
