[code lang=”csharp”]// get the host IP addressesvar hostIPs = System.Net.Dns.GetHostAddresses(“LocalHost”);
// get the local computer namevar localHostName = System.Net.Dns.GetHostName();