Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get IP numbers of guest of our web page

Tags:

c#

asp.net

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) .

like image 204
Sessiz Saat Avatar asked Dec 18 '22 09:12

Sessiz Saat


1 Answers

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....)

like image 72
Brandon Avatar answered Dec 24 '22 02:12

Brandon