using System.Net;static void Main(string[] args){ //get the name of your systemConsole.WriteLine("Name of the system is: {0}", DNS.GetHostName); IPHostEntry Iplist = Dns.GetHostByName(host);//IPHostEntry class provides a container class for intenet host //address information. It associates a Domain Name System (DNS) host name with an array of aliases and an array of matching IP addresses. foreach (IPAddress ip in iplist.AddressList) //.AddressList gets a list of IP addresses that are associated with a particular host.{Console.WriteLine("Your IP address is: " + ip.ToString());}//get the Nebios computer nameConsole.WriteLine( NetBIOS: {0} ,System.Environment.MachineName);}