如何使用ip地址获取城市和县名。 [英] how to get city and county name by using ip address.

查看:92
本文介绍了如何使用ip地址获取城市和县名。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,我正在存储

用户IP地址。但现在我想在他们的IP地址的

基础上存储City,

用户的国家和国家代码。所以我能够在ASP.NET中获得

用户的IP地址但是如何获得

其他细节。如果它可能(我不瘦它)然后告诉我别的告诉我一些替代方式

这样做,有没有任何在线免费服务使用

哪个ican得到这些细节

am having an application in which i am storing
user ip address. But now i want to store the City,
Country and Country Code of the user on the
basis of their ip addresses. So I am able to get the
user''s IP Address in ASP.NET but how to get
other details. If its possible (which i don''t thin it is) then tell me else tell me some alternate way to
do this, is there any online FREE service using
which ican get these details

推荐答案

你可以通过使用其中一个IP地址定位服务获得一些信息(声称是位置)(谷歌可以为您找到一些,但这里有一个开头: http://www.ipaddresslocation.org/ [ ^ ]但请注意,它可能并不准确 - 这取决于ISP,因为大多数情况下如果与该物理区域相关联的块用完,则使用动态地址分配,其中一个将从不同的地址块中分配。我看到我过去曾用过英国,德国,荷兰等等,所有这些都是同样的ISP。
You can get some information (which purports to be the location) by using one of the many IP address location services out there (google can find a few for you, but here is one to start with: http://www.ipaddresslocation.org/[^] but be aware that it may not be at all accurate - it depends on the ISP and since most of these use dynamic address allocation if the block associated with that physical area is used up, one will be allocated from a different address block. I have seen mine come up with England, Germany, Holland and so forth in the past, all with the same ISP.


是的,但我很好看使用c#代码或使用java脚本处理它...

如果有人知道请解决此问题。
yeah but i am looking for handle it by using c# code or by using java script...
If any one knows please solve this.


这篇关于如何使用ip地址获取城市和县名。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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