获取访问您网站的每个用户的ip地址和位置
问题描述:
如何通过Asp.Net获取网站的每个网站访问者的ip地址和位置?
How do you get the ipaddress and location of every website vistor of your website through Asp.Net?
谢谢
答
要获取用户的IP,请使用:
To get the user's IP use:
Request.UserHostAddress
您可以使用此Web服务获取其地理位置. http://iplocationtools.com/ip_location_api.php
You can use this webservice to get their geographic location. http://iplocationtools.com/ip_location_api.php