如何在C#中通过IP地址查找国家名称 [英] How to find Country Name through IP address in C#

查看:375
本文介绍了如何在C#中通过IP地址查找国家名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过IP地址找出国家名称请给我代码和帮助

I want to find out Country Name through IP Address Please give me code and help

推荐答案

请看这里:使用基于IP的地理定位 - 以及为什么它几乎没用。 [ ^ ] - 但是......请注意它不一定正确!
See here: Using IP based Geolocation - and why it's pretty much useless.[^] - but ... be aware it's not necessarily correct!


没有代码,因为IP地址与地理位置无关。如果您想从IP地址估算国家/地区,则需要使用地理定位服务。谷歌为他们找到你喜欢的,并遵循他们的实施说明。请注意,较好的可能不是免费的。
There is no "code" for this as IP addresses have no relation to geographic locations. If you want to approximate a country from an IP address you'll need to use a geolocation service. Google for them and find one you like and follow their implementation instructions. Note that the better ones might not be free.


这篇关于如何在C#中通过IP地址查找国家名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆