HI,
please use the below function to get the client ip address.
private string IppAddress()
{
string strIpAddress;
strIpAddress = Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
if (strIpAddress == null)
strIpAddress = Request.ServerVariables["REMOTE_ADDR"];
return strIpAddress;
}
Interviews4 answers
How to get a client system IP address
4 Answers
Gangadhar VennapuPosted Oct 11, 2010, 3:12 AM EDT
1) use the System.DateTime.DaysInMonth() method to find the same
2) DateTime.DaysInMonth(2010,10).ToString();
Dhiraj KumarPosted Oct 3, 2010, 11:05 PM EDT
Request.UserHostAddress
Dhiraj KumarPosted Oct 3, 2010, 11:03 PM EDT
1) Opend Url --- Request.Url.AbsoluteUri,
2) For Ip Address -- Request.UserHostAddress
Goud
Pompana GoudPosted Oct 3, 2010, 10:17 PM EDT
