Fully qualified domain name and port #
<p>I am trying to create a link in an email so our users can have a shortcut into the subject of interest. However, I need the link to contain the FDQN and the port number to be part of the link?</p>

<p>I am aware of the following statement but not sure if applicable or not because it doesn't show the port:</p>

<pre><code>System.Net.Dns.GetHostByName("localhost").HostName  
</code></pre>

<p>I've seen the following forum link:</p>

<p><a href="http://stackoverflow.com/questions/804700/does-anyone-know-a-way-to-get-the-fqdn-of-local-machine-in-c">Does anyone know a way to get the FQDN of local machine in C#?</a></p>

<p>Does the port number need to be hard-coded?</p>
