开发者

Best time to identify geolocation?

I have been tasked with creating a small desktop client that will report to a central web server its location. Could I just capture the incoming IP address when it requests the web page? Will that be enough to identify it? Or should I get 开发者_运维知识库the external IP from the client first and post that? Just want to know at what point in the entire transaction will get me the most accurate location.

Thanks in advance.


I don't think the ipv4 (or ipv6) protocols give any guarantees about the exact location of an ip address.

Geolocation (example) usually works by automatically looking up an IP address on a WHOIS service and retrieving the registrant's physical address.

If you want an accurate location, the client will have to voluntarily sent it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜