获取Android的无线IP位置 [英] Get location of wifi ip in android

查看:139
本文介绍了获取Android的无线IP位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这将有可能采取的是无线路由器的IP地址,Android手机将连接到并确定应用程序的IP的相对位置?

Would it be possible to take the ip address of a wireless router that an android phone would connect to and determine in the app the relative location of the ip?

推荐答案

有很多网上的API可用于确定基于IP地址,例如位置这里,的此处,或这里
你可以做一个请求,其中的一个服务,传递适当的面向互联网的IP地址(这比通常开始与内部的IP地址不同的 192.168。此处的解释)。

There's lots of online APIs available to determine a location based on an IP address, e.g. here, here, or here.
You could make a request to one of those services, passing in the appropriate "Internet-facing" IP address (which is different than the internal IP address that usually starts with 192.168., see here for an explanation).

这篇关于获取Android的无线IP位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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