Pages

Thursday 19 April 2012

Get IP Address of current system



Get IP Address :


string ip_address = HttpContext.Current.Request.UserHostAddress.ToString();

***************************************************

get host name :


string hostName = System.Net.Dns.GetHostName();



No comments:

Post a Comment