Getting Client Ip address and computer name in c#

 using system .net;


 /* host address */

            string strHostName = System.Net.Dns.GetHostEntry(Request.UserHostAddress).HostName;

            lblip.Text = Request.UserHostAddress.ToString();

when you upload your code on server then in website you'll get your exact value.

Comments

Popular posts from this blog

how to get files from google drive

Delete Duplicate Records in DataBase sql server