根据WiFi确定笔记本电脑的位置
比如说,我想确定连接到我的网络的本地计算机 192.168.1.2 的位置。我想找到笔记本电脑的“相对”/“绝对”(任何都可以,但相对更好)。
有办法做到吗?基于 WiFi 的位置搜索(当我搜索此内容时出现的最常见答案)基于位置三角测量,这意味着我将运行的代码将告诉我我的位置,而不是我想要搜索的任何 IP。
可以以某种方式使用 Traceroute 吗?我的意思是,它确实给出了平均 RTT。我可以用它来找到位置吗?
我正在尝试用 Python 来做这件事(有人知道任何 API 吗?),不,这不是学校作业(无论如何,我只是在寻求想法)。
编辑:我只想通过我连接的单个网络来执行此操作。 (如果不清楚的话)。我不想探究其他网络。
Say, I want to determine the location of the local machine 192.168.1.2 connected on my network. I want to find the "relative"/"absolute" ( any would do, relative is better though) of the laptop.
Is there a way to do it? WiFi based location searching (the most common answer that popped up when I searched for this) is based on position triangulation which means, the code I will run will tell me my location and not of any IP I want to search for.
Can Traceroute be used somehow? I mean, it does give me the average RTT. can I somehow use that to find the location?
I am trying to do this in Python (anyone knows of any APIs?) and no this is not a school homework ( anyhow, I am just asking for ideas).
EDIT: I want to do this over a SINGLE network only, the one I am connected to. ( if that wasn't clear). I don't want to probe into other networks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要使用外部服务,例如来自 Google 的服务。
看看 http://samy.pl/androidmap/ - 当提供 MAC 地址/BSSID 时附近的无线局域网接入点,它很可能为您提供一个相当准确的位置(对于我家的无线局域网,它甚至有正确的地址+门牌号)。
然而,要找到房子里的实际位置(如果这是你想要的),你就很不走运了。您需要测试多个位置的信号强度,然后计算位置 - 然而,墙壁等会使这变得更加困难。
You need to use an external service, e.g. from Google.
Have a look at http://samy.pl/androidmap/ - when feeding the MAC address / BSSID of a nearby wireless LAN access point, it is likely to give you a pretty exact location (for my home's wireless lan it even has the correct address + house number).
However, finding the actual location in the house (if that's what you want), you are pretty much out of luck. You'd need to test the signal strength from multiple locations and then calculate the location - however, walls etc. would make this even harder.