How to determine if an IP address belongs to a country

前端 未结 11 1175
情歌与酒
情歌与酒 2020-12-07 17:55

How would i determine the country that a spcific IP address is originating from using c#. I need to use this to check if connections originate from a specific country.

11条回答
  •  臣服心动
    2020-12-07 18:48

    you can ask google to do it for you.

    • http://googlecode.blogspot.com/2008/08/two-new-ways-to-location-enable-your.html

    there are also services that you can pay for you want:

    • http://www.ip2location.com/
    • http://www.maxmind.com/

提交回复
热议问题