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

iphone review

Understanding ASP.NET MVC using real world example, for beginners and intermediate

Unable to add google gmail in iphone