How to find IP Address to the comments made in the blog and Page comments packages

Topics: Standard packages
Jul 24, 2012 at 8:28 AM

I want to know from which IP Address the comments to blog and page came from. Just for information, not to show (like email address). Please help.

This is one of the best CMS on MS Platform!

Jul 24, 2012 at 5:05 PM

From http://compositec1.codeplex.com/discussions/273423

// Look for a proxy address first
ipaddress = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];

// If there is no proxy, get the standard remote address
if (String.IsNullOrWhiteSpace(ipaddress))
ipaddress = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];

I will add this to blog and page comments