static string ApplyLocalMachineConventions(string machineName) { if ( machineName == "." || machineName.ToLower() == "localhost" || machineName == IPAddress.Loopback.ToString() ) { return RuntimeEnvironment.MachineName; } return machineName; }