Finding clients location in an ASP.NET page

后端 未结 3 1712
无人及你
无人及你 2020-12-15 14:37

How to find clients location in my ASP.NET page? In fact I used System.Globalization.RegionInfo.CurrentRegion, but it is showing the setting in the control pane

3条回答
  •  情歌与酒
    2020-12-15 15:17

    You can guess country that the IP address belongs to by doing a lookup to client IP address. There are some pages that provide databases containing IP to country mapping tables., see here for example

提交回复
热议问题