I have web site (coded in ASP.NET,c#) and I want to show IP based statistic information of it's pages. I don't want to use other analysis tools (like Google Analytics) .
In your ASP.NET page you can use Request.UserHostAddress property to get the user's IP address.
Also, you can use IIS logs (by default in C:\\Windows\\System32\\LogFiles\\W3SVCxxxxx....)
HttpContext.Current.Request.UserHostAddress
将以字符串形式返回用户的IP地址。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.