Dot Net Trick
Easy trick for solving a problem in Dot Net, C#, ASP .Net
Pages
Home
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment