I need to get the host name currently running the application. Any idea?
Something to bear in mind is that
System.Windows.Forms.SystemInformation.ComputerName; will give you the NETBIOS name of the machine (restricted to 15 characters).
If you want the full TCP/IP based host name you can use
string hostName = System.Net.Dns.GetHostName();
Or you can use:
Which will return the full computer name set during installation.
Unless I am mistaken on what you want to do..
To get fully qualified name, use:
The My namespace contains many great “helper” functions like: