在 Wifi Direct 中,群组所有者地址始终是 192.168.49.1 还是会发生变化?

in Wifi Direct the group owner address always be 192.168.49.1 or it changes?

在 Wifi Direct 中,群组所有者地址始终为 192.168.49.1 还是会更改?

我是 android 的新手。请帮助我。

提前致谢。

干杯......

这似乎是 IP 地址 192.168.49。1.Due 到 DHCP 它将改变-除非你有一个静态 IP。

根据 Android Source Code(搜索 SERVER_ADDRESS 在文件中)GroupOwnerIP Address192.168.49.1 并且是 final and static

注意事项:这可能会在未来随时更改,因此,您绝不能依赖该值本身。您应该始终使用 isGroupOwner 来确定设备是否为 GroupOwner