بدست آوردن نام سیستم لوکال

string pcName = Environment.MachineName;
using System.Net;
string pcName = Dns.GetHostName();