【问题标题】:in Wifi Direct the group owner address always be 192.168.49.1 or it changes?在 Wifi Direct 中,组所有者地址始终为 192.168.49.1 还是会更改?
【发布时间】:2016-02-08 17:34:04
【问题描述】:

在 Wifi Direct 中,组所有者地址始终为 192.168.49.1 或更改?

我是安卓新手。请帮帮我。

提前致谢。

干杯.....

【问题讨论】:

    标签: android eclipse android-studio wifi-direct


    【解决方案1】:

    虽然我坚信不应该有需要直接依赖GroupOwnerIP Address的实现,根据Android Source Code(在文件中搜索SERVER_ADDRESSIP Address GroupOwner192.168.49.1final and static

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

    【讨论】:

    • 感谢您。有没有获取群主IP的代码?
    【解决方案2】:

    这似乎是 IP 地址 192.168.49.1。由于 DHCP,它会改变 - 除非您有静态 IP。

    【讨论】:

    • 这是错误的,不回答问题。 answer below 是正确的 - 特别是 USB is 192.168.42.1 and 255.255.255.0Wifi hotspot is 192.168.43.1 and 255.255.255.0BT is limited to max default of 5 connections. 192.168.44.1 to 192.168.48.1 with 255.255.255.0P2P is 192.168.49.1 and 255.255.255.0
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-08-20
    相关资源
    最近更新 更多