bzforum — 2012-10-30T07:37:30-04:00 — #1
Here is the code for displaying the IP Address of your visitor in ASP.NET
string trueip = string.Empty;
ip = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
string iprange = ip.Split(',');
trueip = iprange.Trim();
trueip = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
Hope this comes handy
system — 2012-11-01T05:22:28-04:00 — #2
thanks for the replay in advance but i need to know what data tye u have selected for ip... u have declared string as trueip .. but what type of data came in ip...
jason__c — 2012-11-02T06:32:33-04:00 — #3
Forgot to declare "ip"?
bzforum — 2012-11-06T08:14:12-05:00 — #4
Sorry for the late reply guys I was busy...
The ip is a String Type
just add this before