Getting Remote Client IP Address.

Vishalneeraj-24503
Posted by Vishalneeraj-24503 under Visual Studio category on | Points: 40 | Views : 241
We have to use UserHostAddress property of Request class to get an IP Address. UserHostAddress property is an in-built property:-
string IP_Address = Request.UserHostAddress.ToString();
Response.Write(IP_Address);

Comments or Responses

Login to post response