How to obtain Current Machine Name in .NET


If you want to know the machine name on which your .NET application is running you can use MachineName property of Environment class.

Console.WriteLine(Environment.MachineName);​

 

 

About author


User avatar

Waqas Anwar

Founder of EzzyLearning.com, Senior Consultant, Microsoft .NET and Web Technologies

Comments