如何通过跟踪IP地址跟踪用户的位置数据? [英] how can i trace user's location data by tracing ip address?

查看:88
本文介绍了如何通过跟踪IP地址跟踪用户的位置数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想得到用户的好话



地址,

city,

州,
国家,

经度和

纬度



在我的网站上载入时,



然后我怎样才能获得这些数据....



请帮帮我...



想要来源....

thnx

i want to get user's

Ip address,
city,
state,
country,
longitude and
latitude

when loged in in my website,

then how can i get that data....

please help me...

want source....
thnx

推荐答案

我同意Marcus并在这里帮助OP一个链接:



http://www.mycsharpcorner.com/Post.aspx?postID=27 [ ^ ]
I agree with Marcus and to help the OP a bit here is one link:

http://www.mycsharpcorner.com/Post.aspx?postID=27[^]


你不能。 IP地址与客户端的物理位置之间没有固有的相关性。



您可以获得的最佳信息是IP地址的注册供应商的地理位置。这通常会解决到一个城市,但它可能距离客户的实际位置几百英里。



但是,它有可能,但大多数供应商会花你的钱。 Google [ ^ ]我建议你先检查一下。因为信息的质量差异很大。 (我的IP在某些地方解析到大约25英里,在其他地方解析为未知城市。)
You can't. There is no inherent correlation between an IP address and the physical location of the client.

The best you can get is the geographic location of the registered supplier of the IP address. That will generally resolve to a city, but it may be several hundred miles from the actual location of the client.

However, it is possible, but most of the suppliers will cost you money. Google[^] And I suggest you check first,. as the quality of the information varies a lot. (My IP resolves to about 25 miles away on some, "Unknown city" on others.)


使用 HostIp .Info [ ^ ]并获取Geo API。

或者使用任何可用的网络服务。





这个 [ ^ ]可能有所帮助。
Use HostIp.Info[^] and get the Geo API.
Or use any of the webservices available.


This[^] may help.


这篇关于如何通过跟踪IP地址跟踪用户的位置数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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