【发布时间】:2016-02-08 17:34:04
【问题描述】:
在 Wifi Direct 中,组所有者地址始终为 192.168.49.1 或更改?
我是安卓新手。请帮帮我。
提前致谢。
干杯.....
【问题讨论】:
标签: android eclipse android-studio wifi-direct
在 Wifi Direct 中,组所有者地址始终为 192.168.49.1 或更改?
我是安卓新手。请帮帮我。
提前致谢。
干杯.....
【问题讨论】:
标签: android eclipse android-studio wifi-direct
虽然我坚信不应该有需要直接依赖GroupOwner的IP Address的实现,根据Android Source Code(在文件中搜索SERVER_ADDRESS)IP Address GroupOwner 是 192.168.49.1 和 final and static。
注意事项:这可能会在将来随时更改,因此,您绝不能依赖值本身。您应该始终使用isGroupOwner 来确定设备是否为GroupOwner。
【讨论】:
这似乎是 IP 地址 192.168.49.1。由于 DHCP,它会改变 - 除非您有静态 IP。
【讨论】:
USB is 192.168.42.1 and 255.255.255.0、Wifi hotspot is 192.168.43.1 and 255.255.255.0、BT is limited to max default of 5 connections. 192.168.44.1 to 192.168.48.1 with 255.255.255.0、P2P is 192.168.49.1 and 255.255.255.0