ShareDrop(一个网站)如何获得我的局域网IP地址?

时间:2014-03-25 21:50:30

标签: http ip

我刚去了https://www.sharedrop.io/,它说的是我的私有LAN IP地址192.168.0.3,这是正确的。怎么会知道这个?此信息不会通过浏览器发送出去。或者是吗?

我使用的是Chrome,没有安装扩展程序。

1 个答案:

答案 0 :(得分:5)

转到此处查看源代码 - http://net.ipcalf.com/他们在创建WebRTC连接时解析SDP中的元数据。该代码注释了相关RFC的链接。

这可能是ShareDrop也是如此。

编辑:ShareDrop是开源的,他们的工作方式与上面提到的完全相同,请参阅https://github.com/cowbell/sharedrop/blob/master/app/scripts/app/controllers/index_controller.js