System.Environment.MachineName or SystemInformation.ComputerName or System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString(); or String hostName = Dns.GetHostName();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)