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?
I am aware of the following statement but not sure if applicable or not because it doesn't show the port:
System.Net.Dns.GetHostByName("localhost").HostName
I've seen the following forum link:
Does anyone know a way to get the FQDN of local machine in C#?
Does the port number need to be hard-coded?