The question is - how can I find the IP addresses that accessed a specific address?

  • on the "specific address" hang up the "writer" of the history of calls to him - Gorets

1 answer 1

If the "specific address" is your server, then

public static String GetIP() { String ip = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"]; if(string.IsNullOrEmpty(ip)) { ip = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"]; } return ip; }