How to check client Machine or local Machine Name and IP address using C-sharp, See the below simple example code. CODE: 1 : using System.Net; 2 : 3 : string hostName = Dns.GetHostName(); 4 : IPHostEntry ie = Dns.GetHostByName(hostName); 5 : IPAddress[] ia= ie.AddressList; 6 : 7 : MessageBox.Show("Local Machine Name : "+hostName.ToString()); 8 : MessageBox.Show("IP address Of Local Machine "+ipAddress[0].ToString());
Code & help 4 PHP, JavaScript, HTML, DHTML, CSS, Flex, Dot Net, SharePoint, C-Sharp, Java, ReactJs, NextJs, Node, Web Tools, Blockchain